MCPcopy Create free account
hub / github.com/WheretIB/nullc / AllocParser

Function AllocParser

SupSpi/SupSpi.cpp:26–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 Rule real_P(){ return Rule(new RealNumberP()); }
25
26 unsigned int AllocParser(BaseP* parser){ parserList.push_back(parser); return (unsigned int)parserList.size()-1; }
27 void ReleaseParser(unsigned int ptr){ delete parserList[ptr]; }
28 void SetParser(unsigned int ptr, BaseP* parser){ parserList[ptr] = parser; }
29 BaseP* GetParser(unsigned int ptr){ return parserList[ptr]; }

Callers 1

RuleMethod · 0.85

Calls 2

push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected