#include <Class.hpp>
Inheritance diagram for OMF::Class:
Public Member Functions | |
virtual | ~Class () |
const std::string & | name () const |
virtual Object * | createInstance () |
virtual void | destroyInstance (Object *) |
const OMF::Set & | allOfClass () const |
const OMF::Set & | allOfType () const |
void | addType (Object *type) |
void | removeType (Object *type) |
Protected Member Functions | |
Class () | |
Class & | init (const std::string &name) |
Protected Attributes | |
OMF::Set | _ofClass |
OMF::Set | _ofType |
|
|
|
|
|
The addType() method is used to register a new type instance with the class proxy. It should be called in the constructor of every interface class. |
|
Return all instances of this class (no subtypes). |
|
Return all instances of this type (with subtypes). |
|
The createInstance() method may or may not return a new instance object, depending on whether the class is abstract or not. Reimplemented in OMF::BasicClass< Type, Factory >.
|
|
The destroyInstance() method essentially just removes the object reference from the instance set. It is only called from the decRef() method of ModelObject before the destructor chain is called. Reimplemented in OMF::BasicClass< Type, Factory >.
|
|
Used for construction. |
|
Return the name of the class as the type code. |
|
The removeType() method is used to remove a type instance from the class proxy. It should be called in the destructor of every interface class. |
|
|
|
|