public

Inheritance Graph

graph BT
	EReferenceCounter
	click EReferenceCounter "classEScript_1_1EReferenceCounter"

Description

(Non virtual) base class for reference counting.Obj_tShould be the new class itself.ObjReleaseHandler_TA class which has the function ‘static void release(Ojb_t *)’ for releasing (deleting or storing) counted objects.

Public Functions

   
   
  EReferenceCounter()
Default constructor.
   
  EReferenceCounter(const EReferenceCounter & void)
   
  EReferenceCounter( EReferenceCounter && void)
   
  ~EReferenceCounter()
Default destructor.
   
int countReferences() const
Return the current number of references to this object.
   
EReferenceCounter & operator=(const EReferenceCounter & void)
   
EReferenceCounter & operator=( EReferenceCounter && void)

Public Static Functions

   
   
void addReference(Obj_t * o)
Increase the reference counter ofo.
   
void removeReference(Obj_t * o)
Decrease the reference counter ofo. If the counter is <= 0, the object is released.
   
void decreaseReference(Obj_t * o)
Decrease the reference counter ofo. The object is never released.

Documentation

function
EScript::EReferenceCounter::EReferenceCounter

public inline
   
   
EReferenceCounter( )

Default constructor.

Defined in EScript/EScript/Utils/EReferenceCounter.h:31


function
EScript::EReferenceCounter::EReferenceCounter

public
     
     
EReferenceCounter( const EReferenceCounter & void )

Defined in EScript/EScript/Utils/EReferenceCounter.h:32


function
EScript::EReferenceCounter::EReferenceCounter

public
     
     
EReferenceCounter( EReferenceCounter && void )

Defined in EScript/EScript/Utils/EReferenceCounter.h:33


function
EScript::EReferenceCounter::~EReferenceCounter

public inline
   
   
~EReferenceCounter( )

Default destructor.

Defined in EScript/EScript/Utils/EReferenceCounter.h:36


function
EScript::EReferenceCounter::countReferences

public const inline
   
   
int countReferences( ) const

Return the current number of references to this object.

Defined in EScript/EScript/Utils/EReferenceCounter.h:39


function
EScript::EReferenceCounter::operator=

public
     
     
EReferenceCounter & operator=( const EReferenceCounter & void )

Defined in EScript/EScript/Utils/EReferenceCounter.h:57


function
EScript::EReferenceCounter::operator=

public
     
     
EReferenceCounter & operator=( EReferenceCounter && void )

Defined in EScript/EScript/Utils/EReferenceCounter.h:58


function
EScript::EReferenceCounter::addReference

public static inline
     
     
void addReference( Obj_t * o )

Increase the reference counter ofo.

Defined in EScript/EScript/Utils/EReferenceCounter.h:42


function
EScript::EReferenceCounter::removeReference

public static inline
     
     
void removeReference( Obj_t * o )

Decrease the reference counter ofo. If the counter is <= 0, the object is released.

Defined in EScript/EScript/Utils/EReferenceCounter.h:48


function
EScript::EReferenceCounter::decreaseReference

public static inline
     
     
void decreaseReference( Obj_t * o )

Decrease the reference counter ofo. The object is never released.

Defined in EScript/EScript/Utils/EReferenceCounter.h:53