HandleId Class Reference

Base class with reference counting for smart pointers. More...

#include <ttl/utils/HandleId.h>

Inheritance diagram for HandleId:
hed::Node

List of all members.

Public Member Functions

 HandleId ()
virtual ~HandleId ()
bool isReferenced () const
int getNoRefs () const
bool dynamicObj () const
void increment ()
void decrement ()
void * operator new (size_t t)
void * operator new (size_t t, int, const char *file, int line)
void operator delete (void *v)

Protected Attributes

int refcount
char dynamic_object

Detailed Description

Base class with reference counting for smart pointers.

Definition at line 41 of file HandleId.h.


Constructor & Destructor Documentation

HandleId::HandleId (  ) 
virtual HandleId::~HandleId (  )  [inline, virtual]

Definition at line 49 of file HandleId.h.

00049 {};


Member Function Documentation

void HandleId::decrement (  )  [inline]

Definition at line 56 of file HandleId.h.

References refcount.

00056 { refcount--; }

bool HandleId::dynamicObj (  )  const [inline]

Definition at line 53 of file HandleId.h.

References dynamic_object.

00053 { return dynamic_object == '1'; }

int HandleId::getNoRefs (  )  const [inline]

Definition at line 52 of file HandleId.h.

References refcount.

00052 { return refcount; }

void HandleId::increment (  )  [inline]

Definition at line 55 of file HandleId.h.

References refcount.

00055 { refcount++; }

bool HandleId::isReferenced (  )  const [inline]

Definition at line 51 of file HandleId.h.

References refcount.

00051 { return refcount != 0; }

void HandleId::operator delete ( void *  v  ) 
void* HandleId::operator new ( size_t  t,
int  ,
const char *  file,
int  line 
)
void* HandleId::operator new ( size_t  t  ) 

Member Data Documentation

char HandleId::dynamic_object [protected]

Definition at line 45 of file HandleId.h.

Referenced by dynamicObj().

int HandleId::refcount [protected]

Definition at line 44 of file HandleId.h.

Referenced by decrement(), getNoRefs(), increment(), and isReferenced().


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

Generated on Wed Nov 17 17:44:27 2010 for TTL by  doxygen 1.6.1