Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
Dynamic_DynamicClass Class Reference

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>

Inheritance diagram for Dynamic_DynamicClass:
Inheritance graph
[legend]

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_Transientoperator= (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

Dynamic_DynamicClass::Dynamic_DynamicClass ( const Standard_CString  aname)

Creates a new empty instance of DynamicClass.

Member Function Documentation

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 void Dynamic_DynamicClass::Dump ( Standard_OStream astream) const
virtual

useful for debugging.

virtual Handle_Dynamic_DynamicInstance Dynamic_DynamicClass::Instance ( ) const
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 Handle_Dynamic_Method Dynamic_DynamicClass::Method ( const Standard_CString  amethod) const
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.


The documentation for this class was generated from the following file: