#include <vm.h>

Definition at line 313 of file vm.h.
Public Types | |
| typedef std::string * | TStringList |
| typedef Token * | TTokenList |
Public Member Functions | |
| CalleeSet () | |
| ~CalleeSet () | |
| void | add (std::string name, Token tCall) |
| bool | isCalled (std::string name) |
| return true if given function is called somewhere | |
| void | getNames (TStringList &) |
| dump all names of function being called to vector of strings | |
| bool | getCalls (std::string name, TTokenList &) |
| dump all call occurrences for function with given name | |
Private Attributes | |
| Private * | d |
Classes | |
| struct | Private |
| typedef std::string* TStringList |
| typedef Token* TTokenList |
| void add | ( | std::string | name, | |
| Token | tCall | |||
| ) |
add function call to container
| name | name of function being called | |
| tCall | token corresponding to function call |
Definition at line 545 of file vm.cc.
References d, ETOKEN_NULL, CalleeSet::Private::map, and Token::type.
Referenced by FncFactory::Private::addDefinition(), VmRunner::Private::chkUnusedFncs(), Builder::fncCall(), and FncFactory::initVm().

| bool isCalled | ( | std::string | name | ) |
return true if given function is called somewhere
Definition at line 565 of file vm.cc.
References d, and CalleeSet::Private::map.
Referenced by VmRunner::Private::chkUnusedFncs().

| void getNames | ( | TStringList & | list | ) |
dump all names of function being called to vector of strings
Definition at line 569 of file vm.cc.
References d, and CalleeSet::Private::map.
Referenced by VmRunner::Private::chkFncRefs().

| bool getCalls | ( | std::string | name, | |
| TTokenList & | list | |||
| ) |
dump all call occurrences for function with given name
Definition at line 577 of file vm.cc.
References d, CalleeSet::Private::map, and CalleeSet::Private::SortableToken::t.
Referenced by VmRunner::Private::chkFncRefs(), and VmRunner::Private::chkUnusedFncs().

Definition at line 337 of file vm.h.
Referenced by add(), getCalls(), getNames(), isCalled(), and ~CalleeSet().
1.5.4