Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >::InstanceEntry Class Reference#include <InstanceTracker.h>
Inheritance diagram for InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >::InstanceEntry:
![]() Detailed Descriptiontemplate<class FamilyT, typename ClassNameT = std::string, class FactoryBaseT = Factory1Arg<FamilyT,std::string>, template< class U > class FactoryT = FactoryBaseT::template Factory>
Provides a wrapper for non-plistDictionary entries.
|
Public Member Functions | |
InstanceEntry (FamilyT *inst) | |
constructor, assigns inst to both instance and alloc (thus marking the instance for deallocation on InstanceEntry destruction) | |
InstanceEntry (FamilyT &inst) | |
constructor, assigns inst to instance only, leaving alloc NULL (thus leaving deallocation of instance to the caller) | |
~InstanceEntry () | |
destructor, deallocates alloc (which might be NULL, and thus a no-op) | |
Public Attributes | |
FamilyT *const | alloc |
if the original instance was passed as a pointer, we will store that here for easy deallocation on destruction | |
FamilyT & | instance |
reference to the actual instance | |
Private Member Functions | |
InstanceEntry (const InstanceEntry &) | |
copy constructor, don't call | |
InstanceEntry & | operator= (const InstanceEntry &) |
assignment, don't call |
InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >::InstanceEntry::InstanceEntry | ( | FamilyT * | inst | ) | [inline, explicit] |
constructor, assigns inst to both instance and alloc (thus marking the instance for deallocation on InstanceEntry destruction)
Definition at line 72 of file InstanceTracker.h.
InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >::InstanceEntry::InstanceEntry | ( | FamilyT & | inst | ) | [inline, explicit] |
constructor, assigns inst to instance only, leaving alloc NULL (thus leaving deallocation of instance to the caller)
Definition at line 74 of file InstanceTracker.h.
InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >::InstanceEntry::~InstanceEntry | ( | ) | [inline] |
destructor, deallocates alloc (which might be NULL, and thus a no-op)
Definition at line 76 of file InstanceTracker.h.
InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >::InstanceEntry::InstanceEntry | ( | const InstanceEntry & | ) | [private] |
copy constructor, don't call
InstanceEntry& InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >::InstanceEntry::operator= | ( | const InstanceEntry & | ) | [private] |
assignment, don't call
FamilyT* const InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >::InstanceEntry::alloc |
if the original instance was passed as a pointer, we will store that here for easy deallocation on destruction
Definition at line 78 of file InstanceTracker.h.
Referenced by InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >::InstanceEntry::~InstanceEntry().
FamilyT& InstanceTracker< FamilyT, ClassNameT, FactoryBaseT, FactoryT >::InstanceEntry::instance |
Tekkotsu v4.0 |
Generated Thu Nov 22 00:58:27 2007 by Doxygen 1.5.4 |