#include <GiGaUtil.h>
Public Member Functions | |
long | increment () |
long | decrement () |
long | count () const |
InstanceCounter () | |
virtual | ~InstanceCounter () |
Private Attributes | |
long | m_count |
Definition at line 160 of file GiGaUtil.h.
GiGaUtil::InstanceCounter< T >::InstanceCounter | ( | ) | [inline] |
virtual GiGaUtil::InstanceCounter< T >::~InstanceCounter | ( | ) | [inline, virtual] |
Definition at line 167 of file GiGaUtil.h.
00168 { 00169 if( 0 != m_count ) 00170 { 00171 std::cout << "Number of objects of type: " 00172 << System::typeinfoName(typeid(T)) 00173 << " created, but not destroyed:" 00174 << m_count 00175 << std::endl; 00176 } 00177 };
long GiGaUtil::InstanceCounter< T >::increment | ( | ) | [inline] |
long GiGaUtil::InstanceCounter< T >::decrement | ( | ) | [inline] |
long GiGaUtil::InstanceCounter< T >::count | ( | ) | const [inline] |
long GiGaUtil::InstanceCounter< T >::m_count [private] |
Definition at line 161 of file GiGaUtil.h.