#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 |
Static Public Member Functions | |
| static unsigned | objectCount () |
Private Attributes | |
| const unsigned | _objectId |
Static Private Attributes | |
| static unsigned | _objectCount |
| static unsigned | _objectIds |
Derived from Rep, CountedRep provides a numerical object id and
See class Rep.
| CountedRep::CountedRep | ( | ) | [inline] |
Constructor.
| CountedRep::CountedRep | ( | const CountedRep & | rhs | ) | [inline] |
CopyConstructor.
| virtual CountedRep::~CountedRep | ( | ) | [inline, virtual] |
Destructor.
| CountedRep& CountedRep::operator= | ( | const CountedRep & | rhs | ) | [inline] |
Assignment. objectId remains untouched.
| unsigned CountedRep::objectId | ( | ) | const [inline] |
This objects numerical id.
| static unsigned CountedRep::objectCount | ( | ) | [inline, static] |
The total ammount of CountedRep instances in memeory.
| virtual std::ostream& CountedRep::dumpOn | ( | std::ostream & | str | ) | const [virtual] |
Stream output
Reimplemented from Rep.
unsigned CountedRep::_objectCount [static, private] |
Counts total ammount of CountedRep instances in memeory.
unsigned CountedRep::_objectIds [static, private] |
Provides numerical ids.
const unsigned CountedRep::_objectId [private] |
This objects numerical id.
1.5.3