#include <catalogable.h>
Inheritance diagram for nodes::catalogable:


Public Member Functions | |
| catalogable () | |
| catalogable (const unique_int &id) | |
| catalogable (const catalogable &to_copy) | |
| virtual | ~catalogable () |
| catalogable & | operator= (const catalogable &to_copy) |
| unique_int | id () const |
| returns the unique identifier for this object. | |
| void | assign_unique_id (const unique_int &new_id) |
| id override method for objects that know their id after creation. | |
| virtual istring | catalogable_name () const=0 |
| must be overridden by every catalogable object. | |
Definition at line 29 of file catalogable.h.
| nodes::catalogable::catalogable | ( | ) |
Definition at line 25 of file catalogable.cpp.
| nodes::catalogable::catalogable | ( | const unique_int & | id | ) |
Definition at line 27 of file catalogable.cpp.
| nodes::catalogable::catalogable | ( | const catalogable & | to_copy | ) |
Definition at line 31 of file catalogable.cpp.
| nodes::catalogable::~catalogable | ( | ) | [virtual] |
| catalogable & nodes::catalogable::operator= | ( | const catalogable & | to_copy | ) |
| unique_int nodes::catalogable::id | ( | ) | const |
returns the unique identifier for this object.
Definition at line 43 of file catalogable.cpp.
Referenced by nodes::object_catalog::add(), and life_maintainer::add().
| void nodes::catalogable::assign_unique_id | ( | const unique_int & | new_id | ) |
id override method for objects that know their id after creation.
usually a catalogable object has a unique id from the beginning, but if one must be created prior to knowledge of the id, the old bogus id can be reset here. (a good policy to follow in this situation is to initially give the catalogable an id of zero.)
Definition at line 45 of file catalogable.cpp.
Referenced by connection::conn_id().
| virtual istring nodes::catalogable::catalogable_name | ( | ) | const [pure virtual] |
must be overridden by every catalogable object.
Implemented in connection.
Referenced by zingable::show_events(), and zingable::text_form().
1.5.1