Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
defineVI Class Reference
Bare clas to allow classes to be defined at run-time.
More...
#include <defineVI.h>
Inheritance diagram for defineVI:
List of all members.
Protected Methods |
| defineVI () |
| constructor - set definition to false.
|
virtual | ~defineVI () |
| destructor.
|
virtual void | define () = 0 |
| pure virtual class to define a class.
|
void | setDefine (bool t) |
| set the definition.
|
bool | defined () const |
| returns false if the class has not bee defined.
|
Private Attributes |
bool | m_define |
| keeps track if the clas has been run time defined or not.
|
Detailed Description
Bare clas to allow classes to be defined at run-time.
- A derived class of defineVI can check at run-time if it has been already defined or not. If not, it can execute the
define()
method and define itself. - Lets consider the example of multialgorithms, that used other algorithms. At compile time maybe some algorithms are not beed defined yet. The class is therefore not defined at compile time. At run time, when the
initialize()
(of algorithmVI) method is executed the first time, the derived class will them execute its define()
method and define its algorithms. Setting the setDefine()
to true, the define() method will not be executed again. - This class is useful to retreive at one, pointers that will keep their address constant during the live of the class.
Definition at line 23 of file defineVI.h.
Constructor & Destructor Documentation
defineVI::defineVI ( ) [inline, protected] |
|
constructor - set definition to false.
Definition at line 29 of file defineVI.h.
defineVI::~defineVI ( ) [inline, protected, virtual] |
|
Member Function Documentation
void defineVI::define ( ) [inline, protected, pure virtual] |
|
bool defineVI::defined ( ) const [inline, protected] |
|
returns false if the class has not bee defined.
Definition at line 39 of file defineVI.h.
void defineVI::setDefine (
|
bool t ) [inline, protected] |
|
set the definition.
Definition at line 37 of file defineVI.h.
Member Data Documentation
bool defineVI::m_define [private] |
|
keeps track if the clas has been run time defined or not.
Definition at line 44 of file defineVI.h.
The documentation for this class was generated from the following file:
Generated at Fri Aug 18 12:57:40 2000 for centella framework by
1.1.3 written by Dimitri van Heesch,
© 1997-2000