MCPcopy Create free account
hub / github.com/dds-bridge/dds / IncrPos

Method IncrPos

library/src/ab_stats.cpp:94–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93
94void ABstats::IncrPos(
95 const ABCountType no,
96 const bool side,
97 const int depth)
98{
99 if (no < 0 || no >= AB_SIZE)
100 return;
101
102 ABplaces[no].list[depth]++;
103 ABplaces[no].sum++;
104 ABplaces[no].sumWeighted += depth;
105 ABplaces[no].sumCum++;
106 ABplaces[no].sumCumWeighted += depth;
107
108 const int iside = (side ? 1 : 0);
109
110 ABsides[iside].list[depth]++;
111 ABsides[iside].sum++;
112 ABsides[iside].sumWeighted += depth;
113 ABsides[iside].sumCum++;
114 ABsides[iside].sumCumWeighted += depth;
115
116}
117
118
119void ABstats::IncrNode(const int depth)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected