yast2-core
|
Base class for reference counted objects. Provides numerical object ids. More...
#include <Rep.h>
Public Member Functions | |
CountedRep () | |
CountedRep (const CountedRep &rhs) | |
CountedRep & | operator= (const CountedRep &rhs) |
virtual | ~CountedRep () |
unsigned | objectId () const |
virtual std::ostream & | dumpOn (std::ostream &str) const |
![]() | |
Rep () | |
Rep (const Rep &) | |
Rep & | operator= (const Rep &) |
virtual | ~Rep () |
void | ref () const |
void | unref () const |
unsigned | refCount () const |
virtual const char * | repName () const |
Static Public Member Functions | |
static unsigned | objectCount () |
![]() | |
static void | ref (const Rep *obj_r) |
static void | unref (const Rep *obj_r) |
Private Attributes | |
const unsigned | _objectId |
Static Private Attributes | |
static unsigned | _objectCount = 0 |
static unsigned | _objectIds = 0 |
Additional Inherited Members | |
![]() | |
virtual void | ref_to (unsigned) const |
virtual void | unref_to (unsigned) const |
Base class for reference counted objects. Provides numerical object ids.
Derived from Rep, CountedRep provides a numerical object id and
See class Rep.
|
inline |
Constructor.
|
inline |
CopyConstructor.
|
inlinevirtual |
Destructor.
|
virtual |
Stream output
Reimplemented from Rep.
|
inlinestatic |
The total ammount of CountedRep instances in memeory.
References Rep::dumpOn(), and str.
|
inline |
This objects numerical id.
|
inline |
Assignment. objectId remains untouched.
References Rep::operator=().
|
staticprivate |
Counts total ammount of CountedRep instances in memeory.
Referenced by operator<<().
|
private |
This objects numerical id.
|
staticprivate |
Provides numerical ids.
Referenced by operator<<().