#include <eoAged.h>
Public Member Functions | |
eoAged (const Object &_o) | |
Main ctor from an already built Object. | |
eoAged (const eoAged &_a) | |
Copy constructor. | |
virtual | ~eoAged () |
Virtual dtor. They are needed in virtual class hierarchies. | |
unsigned long | Age () const |
returns the age of the object | |
const eoAged & | operator++ () |
Increments age. | |
Methods from eoObject | |
readFrom and printOn are directly inherited from eo1d | |
virtual std::string | className () const |
Return the class id. | |
virtual void | readFrom (istream &_is) |
Read object. | |
virtual void | printOn (ostream &_os) const |
Write object. | |
Private Member Functions | |
eoAged () | |
Default Constructor. | |
Private Attributes | |
unsigned long | age |
\ Requisites for template instantiation are that the object must admit a default ctor and a copy ctor. The Object must be an eoObject, thus, it must have its methods: className, printOn, readFrom.
Definition at line 47 of file eoAged.h.
virtual std::string eoAged< Object >::className | ( | void | ) | const [inline, virtual] |
virtual void eoAged< Object >::readFrom | ( | istream & | _is | ) | [inline, virtual] |
virtual void eoAged< Object >::printOn | ( | ostream & | _os | ) | const [inline, virtual] |