Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SOME::Object Template Class Reference

Object holds a pointer to classes defined within the plugin library. More...

#include <SOMEObject.h>

Inheritance diagram for SOME::Object:

SOME::ObjectBase List of all members.

Public Methods

 Object (const SOME::ClassCatalog& cat)
 Create a Object which will hold an object of the class represented by the SOME::ClassCatalog when construct is called. More...

virtual BaseClass* get () const
 Returns the pointer Object contains. More...

void destroy () const
 Delete the memory held by Object. More...


Detailed Description

template<typename BaseClass> template class SOME::Object

Object holds a pointer to classes defined within the plugin library.

There is no automatic deletion of the object, you must call the destroy method to release that memory. It is instanciated with your plugin's base class and the ClassInfo for the plugin. The construct members are used to call the constructor for the plugin class. Object (through its base class) overloads all operators necessary for it to work exactly as a pointer to the BaseClass.

Definition at line 159 of file SOMEObject.h.


Constructor & Destructor Documentation

template<typenameBaseClass>
SOME::Object<BaseClass>::Object<BaseClass> ( const SOME::ClassCatalog & cat )
 

Create a Object which will hold an object of the class represented by the SOME::ClassCatalog when construct is called.

Definition at line 167 of file SOMEObject.h.


Member Function Documentation

template<typenameBaseClass>
void SOME::Object<BaseClass>::destroy ( ) const [inline]
 

Delete the memory held by Object.

Definition at line 181 of file SOMEObject.h.

template<typenameBaseClass>
BaseClass * SOME::Object<BaseClass>::get ( ) const [inline, virtual]
 

Returns the pointer Object contains.

Reimplemented from SOME::ObjectBase.

Definition at line 173 of file SOMEObject.h.


The documentation for this class was generated from the following file:
Generated at Fri Dec 8 14:24:48 2000 for SOMELib by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000