ObjT Class Reference

List of all members.

Public Types

typedef unsigned int CounterT
typedef rpa::atomic< CounterTAtomicT

Public Member Functions

 ObjT ()
 ObjT (const ObjT &aObj)
 ObjT (const char *aStr)
ObjToperator= (const ObjT &aObj)
bool operator== (const ObjT &aObj) const
bool operator< (const ObjT &aObj) const
bool operator< (const char *aPtr) const

Static Public Member Functions

static void reset (void)
static void check (CounterT aExpected)

Private Attributes

char _obj [RPA_INT_STR]

Static Private Attributes

static AtomicT::atomic_type _cnt

Friends

bool operator< (const char *aPtr, const ObjT &aObj)
ostream & operator<< (ostream &aO, const ObjT &aObj)

Detailed Description

We can count the number of times this kind of object is created. Thus, it is possible to check whether useless objects are created. Please note that there will be differences according to the compiler flags, but these numbers should stay under a theoretical limit. Functionaly, this object behaves just like a limited-size string.


Member Typedef Documentation

typedef rpa::atomic< CounterT > ObjT::AtomicT

typedef unsigned int ObjT::CounterT


Constructor & Destructor Documentation

ObjT::ObjT (  )  [inline]

ObjT::ObjT ( const ObjT aObj  )  [inline]

ObjT::ObjT ( const char *  aStr  )  [inline]


Member Function Documentation

static void ObjT::check ( CounterT  aExpected  )  [inline, static]

TO BE FINISHED : The number of objects creation depends in fact of :

bool ObjT::operator< ( const char *  aPtr  )  const [inline]

bool ObjT::operator< ( const ObjT aObj  )  const [inline]

ObjT& ObjT::operator= ( const ObjT aObj  )  [inline]

bool ObjT::operator== ( const ObjT aObj  )  const [inline]

static void ObjT::reset ( void   )  [inline, static]


Friends And Related Function Documentation

bool operator< ( const char *  aPtr,
const ObjT aObj 
) [friend]

ostream& operator<< ( ostream &  aO,
const ObjT aObj 
) [friend]


Member Data Documentation

ObjT::AtomicT::atomic_type ObjT::_cnt [static, private]

For counting the number of created objects. This has to be atomic because several threads will create objects at the same time.

char ObjT::_obj[RPA_INT_STR] [private]


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 10:20:31 2007 for rpa by  doxygen 1.4.7