32 if (Derived::s_pFirstInstance ==
nullptr)
33 Derived::s_pFirstInstance =
this;
35 Derived::s_pLastInstance->m_pNextInstance =
this;
37 Derived::s_pLastInstance =
this;
38 m_pNextInstance =
nullptr;
39 ++Derived::s_uiInstances;
44 --Derived::s_uiInstances;
53 Derived::s_pFirstInstance = m_pNextInstance;
55 pPrev->m_pNextInstance = m_pNextInstance;
57 if (Derived::s_pLastInstance ==
this)
58 Derived::s_pLastInstance = pPrev;
64 pCur = pCur->m_pNextInstance;
Base class to add the ability to another class to enumerate all active instance of it,...
Definition EnumerableClass.h:28