diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index 90aaaf54e..c13338958 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -160,6 +160,8 @@ public: void traverse ( pSetMFArg(pCB) ); void traverseConst ( pSetMFArgConst(pCB) ) const; + unsigned numEntriesInstalled () const + private: tsSLList *pTable; unsigned hashIdMask; @@ -338,7 +340,6 @@ resTable::resTable ( unsigned nHashTableEntries ) : this->hashIdNBits = nbits; this->hashIdMask = mask; - this->nInUse = 0u; this->pTable = new tsSLList [1<pTable==0) { throwWithLocation ( dynamicMemoryAllocationFailed () ); @@ -468,6 +469,12 @@ void resTable::traverseConst (pSetMFArgConst(pCB)) const } } +template +inline void resTable::numEntriesInstalled () const +{ + return this->nInUse; +} + // // add a res to the resTable //