#include <suif_counter.h>
Inheritance diagram for SuifCounter:
Public Methods | |
SuifCounter (SuifEnv*) | |
Constructor. | |
Walker::ApplyStatus | operator() (SuifObject*) |
This method does the actual work. More... | |
void | count (SuifObject* obj) |
Count the number of instances reachable from the object obj. | |
NodeCounter* | get_node_counter (const MetaClass* mc) |
ostream& | print_result (ostream&) const |
Print the result to out. |
This class works by creating a tree of NodeCounter, mirroring the class tree of the SuifObject class family. Each NodeCounter store the number of instances of a particular subclass.
|
Constructor.
|
Count the number of instances reachable from the object obj.
|
|
|
Print the result to out.