Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

OMF::Class Class Reference

#include <Class.hpp>

Inheritance diagram for OMF::Class:

OMF::BasicClass< Type, Factory > List of all members.

Detailed Description

The Class class is the base class of all class proxies.


Public Member Functions

virtual ~Class ()
const std::string & name () const
virtual ObjectcreateInstance ()
virtual void destroyInstance (Object *)
const OMF::SetallOfClass () const
const OMF::SetallOfType () const
void addType (Object *type)
void removeType (Object *type)

Protected Member Functions

 Class ()
Classinit (const std::string &name)

Protected Attributes

OMF::Set _ofClass
OMF::Set _ofType


Constructor & Destructor Documentation

OMF::Class::Class  )  [protected]
 

virtual OMF::Class::~Class  )  [virtual]
 


Member Function Documentation

void OMF::Class::addType Object type  ) 
 

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.

const OMF::Set& OMF::Class::allOfClass  )  const
 

Return all instances of this class (no subtypes).

const OMF::Set& OMF::Class::allOfType  )  const
 

Return all instances of this type (with subtypes).

virtual Object* OMF::Class::createInstance  )  [virtual]
 

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

virtual void OMF::Class::destroyInstance Object  )  [virtual]
 

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

Class& OMF::Class::init const std::string &  name  )  [protected]
 

Used for construction.

const std::string& OMF::Class::name  )  const
 

Return the name of the class as the type code.

void OMF::Class::removeType Object type  ) 
 

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.


Member Data Documentation

OMF::Set OMF::Class::_ofClass [protected]
 

OMF::Set OMF::Class::_ofType [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Sep 10 13:07:38 2004 for OpenModelingFramework by doxygen 1.3.8