nodes::catalogable Class Reference

A base class for objects that can be stored in the object_catalog. More...

#include <catalogable.h>

Inheritance diagram for nodes::catalogable:

Inheritance graph
[legend]
Collaboration diagram for nodes::catalogable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 catalogable ()
 catalogable (const unique_int &id)
 catalogable (const catalogable &to_copy)
virtual ~catalogable ()
catalogableoperator= (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.

Detailed Description

A base class for objects that can be stored in the object_catalog.

Definition at line 29 of file catalogable.h.


Constructor & Destructor Documentation

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]

Definition at line 34 of file catalogable.cpp.

References WHACK().


Member Function Documentation

catalogable & nodes::catalogable::operator= ( const catalogable to_copy  ) 

Definition at line 36 of file catalogable.cpp.

References _uid.

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().


The documentation for this class was generated from the following files:
Generated on Sat Oct 11 04:30:52 2008 for HOOPLE Libraries by  doxygen 1.5.1