Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SOME::SmartObject Template Class Reference

SmartObject is a reference counted version of Object. More...

#include <SOMEObject.h>

Inheritance diagram for SOME::SmartObject:

SOME::ObjectBase List of all members.

Public Methods

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

 SmartObject (const SmartObject& r)
 Copy constructor. More...

 ~SmartObject ()
 Destructor. More...

SmartObject& operator= (const SmartObject& r)
 Assignment operator. More...

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


Detailed Description

template<typename BaseClass> template class SOME::SmartObject

SmartObject is a reference counted version of Object.

It also holds a pointer to classes defined within the plugin library. However, it will automatically deletion the object when no more SmartObject's refer to the object. 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. SmartObject (through its base class) overloads all operators necessary for it to work exactly as a pointer to the BaseClass.

Definition at line 211 of file SOMEObject.h.


Constructor & Destructor Documentation

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

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

Definition at line 219 of file SOMEObject.h.

template<typenameBaseClass>
SOME::SmartObject<BaseClass>::SmartObject<BaseClass> ( const SmartObject<BaseClass> & r )
 

Copy constructor.

Definition at line 227 of file SOMEObject.h.

template<typenameBaseClass>
SOME::SmartObject<BaseClass>::~SmartObject<BaseClass> ( ) [inline]
 

Destructor.

Definition at line 233 of file SOMEObject.h.


Member Function Documentation

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

Returns the pointer SmartObject contains.

Reimplemented from SOME::ObjectBase.

Definition at line 248 of file SOMEObject.h.

template<typenameBaseClass>
SmartObject<BaseClass> & SOME::SmartObject<BaseClass>::operator= ( const SmartObject<BaseClass> & r ) [inline]
 

Assignment operator.

Definition at line 239 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