#include "pch.h" #include "ClassIdTree.h" // mem for static vars ClassIdTree *ClassIdTree::_instance = NULL; int ClassIdTree::_refCount = 0; ClassIdTree *ClassIdTree::getInstance() { if( !_instance ) { _instance = new ClassIdTree(); _refCount++; } return _instance; } void ClassIdTree::freeInstance() { if( _instance ) { _refCount--; if( _refCount == 0 ) { delete _instance; _instance = NULL; } } } ClassIdTree::ClassIdTree() { int i; for( i=0; i