Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
SoftwareAndServices::Library::Common::instance< T > Class Template Reference

Instance counting and tracking. More...

#include "<SaS/Common/instance.hpp>"

+ Inheritance diagram for SoftwareAndServices::Library::Common::instance< T >:

Public Member Functions

 instance ()
 instance Constructor. More...
 
virtual InstanceCount_t decInstance () const
 Decrement the instance. More...
 
virtual InstanceCount_t getInstance () const
 
virtual InstanceCount_t incInstance () const
 Increment the instance. More...
 
void operator delete (void *ToFree)
 

Detailed Description

template<class T>
class SoftwareAndServices::Library::Common::instance< T >

Instance counting and tracking.

Only when _instances is ZERO will delete() remove the data.

Definition at line 90 of file instance.hpp.

Constructor & Destructor Documentation

◆ instance()

template<class T>
SoftwareAndServices::Library::Common::instance< T >::instance ( )
inline

instance Constructor.

Definition at line 98 of file instance.hpp.

Member Function Documentation

◆ decInstance()

template<class T>
virtual InstanceCount_t SoftwareAndServices::Library::Common::instance< T >::decInstance ( ) const
inlinevirtual

◆ getInstance()

template<class T>
virtual InstanceCount_t SoftwareAndServices::Library::Common::instance< T >::getInstance ( ) const
inlinevirtual
Returns
The current instance count.

Reimplemented in SoftwareAndServices::Library::iCalendar::component.

Definition at line 118 of file instance.hpp.

◆ incInstance()

template<class T>
virtual InstanceCount_t SoftwareAndServices::Library::Common::instance< T >::incInstance ( ) const
inlinevirtual

The documentation for this class was generated from the following file: