![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Base class for reference counting functionality. More...
#include <ticpprc.h>
Public Member Functions | |
| TiCppRC () | |
| Constructor Spawns new reference counter with a pointer to this. | |
| virtual | ~TiCppRC () |
| Destructor Nullifies the pointer to this held by the reference counter Decrements reference count. | |
| void | DeleteSpawnedWrappers () |
| Delete all container objects we've spawned with 'new'. | |
Public Attributes | |
| std::vector< ticpp::Base * > | m_spawnedWrappers |
| Remember all wrappers that we've created with 'new' - ( e.g. | |
Private Attributes | |
| TiCppRCImp * | m_tiRC |
| Pointer to reference counter. | |
Friends | |
| class | ticpp::Base |
| TiCppRC::TiCppRC | ( | ) |
|
virtual |
Destructor Nullifies the pointer to this held by the reference counter Decrements reference count.
Definition at line 940 of file ticpp.cpp.
| void TiCppRC::DeleteSpawnedWrappers | ( | ) |
Delete all container objects we've spawned with 'new'.
Definition at line 929 of file ticpp.cpp.
References m_spawnedWrappers.
|
friend |
| std::vector< ticpp::Base* > TiCppRC::m_spawnedWrappers |
Remember all wrappers that we've created with 'new' - ( e.g.
NodeFactory, FirstChildElement, etc. )
Definition at line 63 of file ticpprc.h.
Referenced by DeleteSpawnedWrappers(), ticpp::Element::LastAttribute(), ticpp::Attribute::Next(), ticpp::Node::NodeFactory(), ticpp::Attribute::Previous(), ticpp::Node::ToComment(), ticpp::Node::ToDocument(), and ticpp::Node::ToElement().
|
private |
Pointer to reference counter.
Definition at line 46 of file ticpprc.h.
Referenced by ticpp::Base::SetImpRC().