OCC Main Page | DataExchange | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

DataExchange
TKXSBase
MoniTool


MoniTool_Element Class Reference

a Element allows to map any kind of object as a Key for a Map.
This works by defining, for a Hash Code, that of the real Key,
not of the Element which acts only as an intermediate.
When a Map asks for the HashCode of a Element, this one returns
the code it has determined at creation time

#include <MoniTool_Element.hxx>

Inheritance diagram for MoniTool_Element:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT Standard_Integer GetHashCode () const
 Returns the HashCode which has been stored by SetHashCode
(remark that HashCode could be deferred then be defined by
sub-classes, the result is the same)
.
virtual Standard_EXPORT Standard_Boolean Equates (const Handle(MoniTool_Element)&other) const =0
 Specific testof equallity : to be defined by each sub-class,
must be False if Elements have not the same true Type, else
their contents must be compared
.
virtual Standard_EXPORT Handle_Standard_Type ValueType () const
 Returns the Type of the Value. By default, returns the
DynamicType of <me>, but can be redefined
.
virtual Standard_EXPORT Standard_CString ValueTypeName () const
 Returns the name of the Type of the Value. Default is name
of ValueType, unless it is for a non-handled object
.
Standard_EXPORT const MoniTool_AttrListListAttr () const
 Returns (readonly) the Attribute List
.
Standard_EXPORT MoniTool_AttrListChangeAttr ()
 Returns (modifiable) the Attribute List
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Protected Member Functions

Standard_EXPORT void SetHashCode (const Standard_Integer code)
 Stores the HashCode which corresponds to the Value given to
create the Mapper
.

Private Attributes

Standard_Integer thecode
MoniTool_AttrList theattrib

Member Function Documentation

Standard_EXPORT MoniTool_AttrList& MoniTool_Element::ChangeAttr  ) 
 

virtual Standard_EXPORT Standard_Boolean MoniTool_Element::Equates const Handle(MoniTool_Element)&  other  )  const [pure virtual]
 

Implemented in MoniTool_TransientElem.

Standard_EXPORT Standard_Integer MoniTool_Element::GetHashCode  )  const
 

Standard_EXPORT const MoniTool_Element::Handle Standard_Type   )  const
 

Reimplemented in MoniTool_TransientElem.

Standard_EXPORT const MoniTool_AttrList& MoniTool_Element::ListAttr  )  const
 

Standard_EXPORT void MoniTool_Element::SetHashCode const Standard_Integer  code  )  [protected]
 

virtual Standard_EXPORT Handle_Standard_Type MoniTool_Element::ValueType  )  const [virtual]
 

Reimplemented in MoniTool_TransientElem.

virtual Standard_EXPORT Standard_CString MoniTool_Element::ValueTypeName  )  const [virtual]
 

Reimplemented in MoniTool_TransientElem.


Field Documentation

MoniTool_AttrList MoniTool_Element::theattrib [private]
 

Standard_Integer MoniTool_Element::thecode [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 14:41:40 2008 for OpenCASCADE by  doxygen 1.4.1