MCPcopy Create free account
hub / github.com/SIPp/sipp / getVar

Method getVar

src/variables.cpp:284–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284CCallVariable *VariableTable::getVar(int i)
285{
286 int thisLevel = i & ((1 << LEVEL_BITS) - 1);
287 assert(thisLevel <= level);
288 if (thisLevel == level) {
289 i = i >> LEVEL_BITS;
290 assert(i > 0);
291 assert(i <= size );
292 return variableTable[i - 1];
293 }
294 assert(parent);
295 return parent->getVar(i);
296}
297
298AllocVariableTable::AllocVariableTable(AllocVariableTable *av_parent) : VariableTable((VariableTable *)av_parent, 0)
299{

Callers 11

compareMethod · 0.80
executeRegExpMethod · 0.80
TESTFunction · 0.80
nextMethod · 0.80
executeMessageMethod · 0.80
runMethod · 0.80
createSendingMessageMethod · 0.80
process_incomingMethod · 0.80
get_rhsMethod · 0.80
executeActionMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected