|
Open CASCADE Technology
6.7.1
|
A dynamic class is defined as a sequence of
parameters and as a sequence of methods. The
specifications are similar to C++ classes. The
class has to be defined in terms of fields
(Parameters) and methods. An instance of the class
must be made to set the fields and to use the
functionalities.
More...
#include <Dynamic_DynamicClass.hxx>

Public Member Functions | |
| Dynamic_DynamicClass (const Standard_CString aname) | |
| Creates a new empty instance of DynamicClass. More... | |
| void | Parameter (const Handle< Dynamic_Parameter > &aparameter) |
| Adds another parameter <aparameter> to the sequence of parameter definitions. More... | |
| void | CompiledMethod (const Standard_CString amethod, const Standard_CString anaddress) |
| Adds another method to the sequence of methods. It has <amethod> as name and <anaddress> as mangled name of the corresponding C++ function which must be called. More... | |
| void | InterpretedMethod (const Standard_CString amethod, const Standard_CString afile) |
| Adds another method to the sequence of methods. It has <amethod> as name and <afile> as interpreted file. More... | |
| virtual Handle_Dynamic_Method | Method (const Standard_CString amethod) const |
| Returns a reference to the method object identified by the string <amethod>. More... | |
| virtual Handle_Dynamic_DynamicInstance | Instance () const |
| Returns an instance object of this class. More... | |
| virtual void | Dump (Standard_OStream &astream) const |
| useful for debugging. More... | |
Public Member Functions inherited from MMgt_TShared | |
| virtual void | Delete () const |
| Memory deallocator for transient classes. More... | |
Public Member Functions inherited from Standard_Transient | |
| Standard_Transient () | |
| Empty constructor. More... | |
| Standard_Transient (const Standard_Transient &) | |
| Copy constructor – does nothing. More... | |
| Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter. More... | |
| virtual | ~Standard_Transient () |
| Destructor must be virtual. More... | |
| virtual void | ShallowDump (Standard_OStream &) const |
| virtual const Handle_Standard_Type & | DynamicType () const |
| Returns a type information object about this object. More... | |
| Standard_Boolean | IsInstance (const Handle_Standard_Type &theType) const |
| Returns a true value if this is an instance of Type. More... | |
| Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| Returns a true value if this is an instance of TypeName. More... | |
| Standard_Boolean | IsKind (const Handle_Standard_Type &theType) const |
| Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
| Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
| Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
| virtual Handle_Standard_Transient | This () const |
| Returns a Handle which references this object. Must never be called to objects created in stack. More... | |
| Standard_Integer | GetRefCount () const |
| Get the reference counter of this object. More... | |
A dynamic class is defined as a sequence of
parameters and as a sequence of methods. The
specifications are similar to C++ classes. The
class has to be defined in terms of fields
(Parameters) and methods. An instance of the class
must be made to set the fields and to use the
functionalities.
| Dynamic_DynamicClass::Dynamic_DynamicClass | ( | const Standard_CString | aname | ) |
Creates a new empty instance of DynamicClass.
| void Dynamic_DynamicClass::CompiledMethod | ( | const Standard_CString | amethod, |
| const Standard_CString | anaddress | ||
| ) |
Adds another method to the sequence of methods. It has
<amethod> as name and <anaddress> as mangled name of
the corresponding C++ function which must be called.
|
virtual |
useful for debugging.
|
virtual |
Returns an instance object of this class.
Reimplemented in Dynamic_DynamicDerivedClass.
| void Dynamic_DynamicClass::InterpretedMethod | ( | const Standard_CString | amethod, |
| const Standard_CString | afile | ||
| ) |
Adds another method to the sequence of methods. It
has <amethod> as name and <afile> as interpreted file.
|
virtual |
Returns a reference to the method object identified by
the string <amethod>.
Reimplemented in Dynamic_DynamicDerivedClass.
| void Dynamic_DynamicClass::Parameter | ( | const Handle< Dynamic_Parameter > & | aparameter | ) |
Adds another parameter <aparameter> to the sequence of
parameter definitions.
1.8.5