Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions
Dynamic_FuzzyClass Class Referenceabstract

This class is the root class to dynamically define
objects of a given type but with various
definitions. This root class contains a parameter
list which describes in the definition context all
the useful information and in the instance context
only the redefined values. This class is deferred
because no instance has to be created.
More...

#include <Dynamic_FuzzyClass.hxx>

Inheritance diagram for Dynamic_FuzzyClass:
Inheritance graph
[legend]

Public Member Functions

virtual TCollection_AsciiString Type () const =0
 This deferred method must returns the type of the
object. If the instance is of the type FuzzyDefinition
the method simply returns the field <thetype>. If the
instance is of the type FuzzyInstance the method calls
the Type method on the true definition.
More...
 
Handle_Dynamic_ParameterNode FirstParameter () const
 Returns the head of the list of parameters. For the
FuzzyDefinition class this method returns the head of
the exaustive list of parameters defining the object
and for the FuzzyInstance it just returns the head of
the overloaded values.
More...
 
Standard_Boolean Parameter (const Standard_CString aparameter) const
 Returns true if there is a parameter with <aparameter>
as name, false otherwise.
More...
 
void Parameter (const Handle< Dynamic_Parameter > &aparameter)
 Adds another parameter <aparameter> to the sequence of
parameters.
More...
 
virtual void Parameter (const Standard_CString aparameter, const Standard_Boolean avalue)
 Adds to the instance <me> the parameter <aparameter>
with the boolean value <avalue>.
More...
 
virtual void Parameter (const Standard_CString aparameter, const Standard_Integer avalue)
 Adds to the instance <me> the parameter <aparameter>
with the integer value <avalue>.
More...
 
virtual void Parameter (const Standard_CString aparameter, const Standard_Real avalue)
 Adds to the instance <me> the parameter <aparameter>
with the real value <avalue>.
More...
 
virtual void Parameter (const Standard_CString aparameter, const Standard_CString astring)
 Adds to the instance <me> the parameter <aparameter>
with the string <astring>.
More...
 
virtual void Parameter (const Standard_CString aparameter, const Handle< Standard_Transient > &anobject)
 Adds to the instance <me> the parameter <aparameter>
with the object value <anobject>.
More...
 
virtual Standard_Boolean Value (const Standard_CString aparameter, Standard_Boolean &avalue) const
 Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding boolean value in the output argument
<avalue>, False otherwise.
More...
 
virtual Standard_Boolean Value (const Standard_CString aparameter, Standard_Integer &avalue) const
 Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding integer value in the output argument
<avalue>, False otherwise.
More...
 
virtual Standard_Boolean Value (const Standard_CString aparameter, Standard_Real &avalue) const
 Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding real value in the output argument
<avalue>, False otherwise.
More...
 
virtual Standard_Boolean Value (const Standard_CString aparameter, TCollection_AsciiString &avalue) const
 Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding string in the output argument
<avalue>, False otherwise.
More...
 
virtual Standard_Boolean Value (const Standard_CString aparameter, Handle< Standard_Transient > &avalue) const
 Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding object value in the output argument
<avalue>, False otherwise.
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...
 

Protected Member Functions

 Dynamic_FuzzyClass ()
 Creates a FuzzyClass.
More...
 

Detailed Description

This class is the root class to dynamically define
objects of a given type but with various
definitions. This root class contains a parameter
list which describes in the definition context all
the useful information and in the instance context
only the redefined values. This class is deferred
because no instance has to be created.

Constructor & Destructor Documentation

Dynamic_FuzzyClass::Dynamic_FuzzyClass ( )
protected

Creates a FuzzyClass.

Member Function Documentation

virtual void Dynamic_FuzzyClass::Dump ( Standard_OStream astream) const
virtual

Useful for debugging.

Reimplemented in Materials_FuzzyInstance, Dynamic_FuzzyDefinition, and Materials_Material.

Handle_Dynamic_ParameterNode Dynamic_FuzzyClass::FirstParameter ( ) const

Returns the head of the list of parameters. For the
FuzzyDefinition class this method returns the head of
the exaustive list of parameters defining the object
and for the FuzzyInstance it just returns the head of
the overloaded values.

Standard_Boolean Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter) const

Returns true if there is a parameter with <aparameter>
as name, false otherwise.

void Dynamic_FuzzyClass::Parameter ( const Handle< Dynamic_Parameter > &  aparameter)

Adds another parameter <aparameter> to the sequence of
parameters.

virtual void Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter,
const Standard_Boolean  avalue 
)
virtual

Adds to the instance <me> the parameter <aparameter>
with the boolean value <avalue>.

Reimplemented in Materials_FuzzyInstance.

virtual void Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter,
const Standard_Integer  avalue 
)
virtual

Adds to the instance <me> the parameter <aparameter>
with the integer value <avalue>.

Reimplemented in Materials_FuzzyInstance.

virtual void Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter,
const Standard_Real  avalue 
)
virtual

Adds to the instance <me> the parameter <aparameter>
with the real value <avalue>.

Reimplemented in Materials_FuzzyInstance.

virtual void Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter,
const Standard_CString  astring 
)
virtual

Adds to the instance <me> the parameter <aparameter>
with the string <astring>.

Reimplemented in Materials_FuzzyInstance.

virtual void Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter,
const Handle< Standard_Transient > &  anobject 
)
virtual

Adds to the instance <me> the parameter <aparameter>
with the object value <anobject>.

Reimplemented in Materials_FuzzyInstance.

virtual TCollection_AsciiString Dynamic_FuzzyClass::Type ( ) const
pure virtual

This deferred method must returns the type of the
object. If the instance is of the type FuzzyDefinition
the method simply returns the field <thetype>. If the
instance is of the type FuzzyInstance the method calls
the Type method on the true definition.

Implemented in Materials_FuzzyInstance, and Dynamic_FuzzyDefinition.

virtual Standard_Boolean Dynamic_FuzzyClass::Value ( const Standard_CString  aparameter,
Standard_Boolean avalue 
) const
virtual

Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding boolean value in the output argument
<avalue>, False otherwise.

Reimplemented in Materials_FuzzyInstance.

virtual Standard_Boolean Dynamic_FuzzyClass::Value ( const Standard_CString  aparameter,
Standard_Integer avalue 
) const
virtual

Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding integer value in the output argument
<avalue>, False otherwise.

Reimplemented in Materials_FuzzyInstance.

virtual Standard_Boolean Dynamic_FuzzyClass::Value ( const Standard_CString  aparameter,
Standard_Real avalue 
) const
virtual

Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding real value in the output argument
<avalue>, False otherwise.

Reimplemented in Materials_FuzzyInstance.

virtual Standard_Boolean Dynamic_FuzzyClass::Value ( const Standard_CString  aparameter,
TCollection_AsciiString avalue 
) const
virtual

Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding string in the output argument
<avalue>, False otherwise.

Reimplemented in Materials_FuzzyInstance.

virtual Standard_Boolean Dynamic_FuzzyClass::Value ( const Standard_CString  aparameter,
Handle< Standard_Transient > &  avalue 
) const
virtual

Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding object value in the output argument
<avalue>, False otherwise.

Reimplemented in Materials_FuzzyInstance.


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