Public Types | |
typedef unsigned int | CounterT |
typedef rpa::atomic< CounterT > | AtomicT |
Public Member Functions | |
ObjT () | |
ObjT (const ObjT &aObj) | |
ObjT (const char *aStr) | |
ObjT & | operator= (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) |
typedef rpa::atomic< CounterT > ObjT::AtomicT |
typedef unsigned int ObjT::CounterT |
ObjT::ObjT | ( | ) | [inline] |
ObjT::ObjT | ( | const ObjT & | aObj | ) | [inline] |
ObjT::ObjT | ( | const char * | aStr | ) | [inline] |
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] |
bool ObjT::operator== | ( | const ObjT & | aObj | ) | const [inline] |
static void ObjT::reset | ( | void | ) | [inline, static] |
bool operator< | ( | const char * | aPtr, | |
const ObjT & | aObj | |||
) | [friend] |
ostream& operator<< | ( | ostream & | aO, | |
const ObjT & | aObj | |||
) | [friend] |
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] |