22 #define TIXML_USE_TICPP 25 #ifndef TICPPRC_INCLUDED 26 #define TICPPRC_INCLUDED 43 friend class ticpp::Base;
std::vector< ticpp::Base *> m_spawnedWrappers
Remember all wrappers that we've created with 'new' - ( e.g.
TiCppRC * Get()
Get internal pointer to the TiCppRC object - not reference counted, use at your own risk...
virtual ~TiCppRC()
Destructor Nullifies the pointer to this held by the reference counter Decrements reference count...
TiCppRC * m_tiCppRC
Holds pointer to an object inheriting TiCppRC.
void Nullify()
Allows the TiCppRC object to set the pointer to itself ( m_tiCppRc ) to nullptr when the TiCppRC obje...
bool IsNull()
Returns state of internal pointer - will be null if the object was deleted.
void IncRef()
Increment Reference Count.
TiCppRCImp * m_tiRC
Pointer to reference counter.
int m_count
Holds reference count to me, and to the node I point to.
Base class for reference counting functionality.
void InitRef()
Set Reference Count to 1 - dangerous! - Use only if you are sure of the consequences.
TiCppRCImp(TiCppRC *tiCppRC)
Initializes m_tiCppRC pointer, and set reference count to 1.
void DecRef()
Decrement Reference Count.
TiCppRC()
Constructor Spawns new reference counter with a pointer to this.
void DeleteSpawnedWrappers()
Delete all container objects we've spawned with 'new'.