Open CASCADE Technology  6.9.1
Public Member Functions | Friends
VrmlData_DataMapOfShapeAppearance Class Reference

#include <VrmlData_DataMapOfShapeAppearance.hxx>

Inheritance diagram for VrmlData_DataMapOfShapeAppearance:
Inheritance graph
[legend]

Public Member Functions

 VrmlData_DataMapOfShapeAppearance (const Standard_Integer NbBuckets=1, const Handle< NCollection_BaseAllocator > &theAllocator=0L)
 Constructor. More...
 
 VrmlData_DataMapOfShapeAppearance (const VrmlData_DataMapOfShapeAppearance &theOther)
 Copy constructor. More...
 
- Public Member Functions inherited from NCollection_DataMap< Handle< TopoDS_TShape >, Handle< VrmlData_Appearance > >
iterator begin () const
 Returns an iterator pointing to the first element in the map. More...
 
iterator end () const
 Returns an iterator referring to the past-the-end element in the map. More...
 
const_iterator cbegin () const
 Returns a const iterator pointing to the first element in the map. More...
 
const_iterator cend () const
 Returns a const iterator referring to the past-the-end element in the map. More...
 
 NCollection_DataMap (const Standard_Integer NbBuckets=1, const Handle< NCollection_BaseAllocator > &theAllocator=0L)
 Constructor. More...
 
 NCollection_DataMap (const NCollection_DataMap &theOther)
 Copy constructor. More...
 
void Exchange (NCollection_DataMap &theOther)
 Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well! More...
 
NCollection_DataMapAssign (const NCollection_DataMap &theOther)
 Assignment. This method does not change the internal allocator. More...
 
NCollection_DataMapoperator= (const NCollection_DataMap &theOther)
 Assignment operator. More...
 
void ReSize (const Standard_Integer N)
 ReSize. More...
 
Standard_Boolean Bind (const Handle< TopoDS_TShape > &theKey, const Handle< VrmlData_Appearance > &theItem)
 Bind binds Item to Key in map. Returns Standard_True if Key was not exist in the map. If the Key was already bound, the Item will be rebinded and Standard_False will be returned. More...
 
Handle< VrmlData_Appearance > * Bound (const Handle< TopoDS_TShape > &theKey, const Handle< VrmlData_Appearance > &theItem)
 Bound binds Item to Key in map. Returns modifiable Item. More...
 
Standard_Boolean IsBound (const Handle< TopoDS_TShape > &K) const
 IsBound. More...
 
Standard_Boolean UnBind (const Handle< TopoDS_TShape > &K)
 UnBind removes Item Key pair from map. More...
 
const Handle< VrmlData_Appearance > * Seek (const Handle< TopoDS_TShape > &theKey) const
 Seek returns pointer to Item by Key. Returns NULL is Key was not bound. More...
 
const Handle< VrmlData_Appearance > & Find (const Handle< TopoDS_TShape > &theKey) const
 Find returns the Item for Key. Raises if Key was not bound. More...
 
Standard_Boolean Find (const Handle< TopoDS_TShape > &theKey, Handle< VrmlData_Appearance > &theValue) const
 Find Item for key with copying. More...
 
const Handle< VrmlData_Appearance > & operator() (const Handle< TopoDS_TShape > &theKey) const
 operator () More...
 
Handle< VrmlData_Appearance > & operator() (const Handle< TopoDS_TShape > &theKey)
 operator () More...
 
Handle< VrmlData_Appearance > * ChangeSeek (const Handle< TopoDS_TShape > &theKey)
 ChangeSeek returns modifiable pointer to Item by Key. Returns NULL is Key was not bound. More...
 
Handle< VrmlData_Appearance > & ChangeFind (const Handle< TopoDS_TShape > &theKey)
 ChangeFind returns mofifiable Item by Key. Raises if Key was not bound. More...
 
void Clear (const Standard_Boolean doReleaseMemory=Standard_True)
 Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused. More...
 
void Clear (const Handle< NCollection_BaseAllocator > &theAllocator)
 Clear data and reset allocator. More...
 
 ~NCollection_DataMap (void)
 Destructor. More...
 
Standard_Integer Size (void) const
 Size. More...
 
- Public Member Functions inherited from NCollection_BaseMap
Standard_Integer NbBuckets () const
 NbBuckets. More...
 
Standard_Integer Extent () const
 Extent. More...
 
Standard_Boolean IsEmpty () const
 IsEmpty. More...
 
void Statistics (Standard_OStream &S) const
 Statistics. More...
 

Friends

Standard_Boolean IsEqual (const Handle< TopoDS_TShape > &one, const Handle< TopoDS_TShape > &two)
 

Additional Inherited Members

- Public Types inherited from NCollection_DataMap< Handle< TopoDS_TShape >, Handle< VrmlData_Appearance > >
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, Handle< VrmlData_Appearance >, false > iterator
 Shorthand for a regular iterator type. More...
 
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, Handle< VrmlData_Appearance >, true > const_iterator
 Shorthand for a constant iterator type. More...
 
- Protected Member Functions inherited from NCollection_DataMap< Handle< TopoDS_TShape >, Handle< VrmlData_Appearance > >
Standard_Boolean lookup (const Handle< TopoDS_TShape > &theKey, DataMapNode *&thepNode) const
 Lookup for particular key in map. Returns true if key is found and thepNode points to binded node. Returns false if key is not found, thehNode value is this case is not usable. More...
 
- Protected Member Functions inherited from NCollection_BaseMap
 NCollection_BaseMap (const Standard_Integer NbBuckets, const Standard_Boolean single, const Handle< NCollection_BaseAllocator > &theAllocator)
 Constructor. More...
 
Standard_Boolean BeginResize (const Standard_Integer NbBuckets, Standard_Integer &NewBuckets, NCollection_ListNode **&data1, NCollection_ListNode **&data2) const
 BeginResize. More...
 
void EndResize (const Standard_Integer NbBuckets, const Standard_Integer NewBuckets, NCollection_ListNode **data1, NCollection_ListNode **data2)
 EndResize. More...
 
Standard_Boolean Resizable () const
 Resizable. More...
 
void Increment ()
 Increment. More...
 
void Decrement ()
 Decrement. More...
 
void Destroy (NCollection_DelMapNode fDel, Standard_Boolean doReleaseMemory=Standard_True)
 Destroy. More...
 
Standard_Integer NextPrimeForMap (const Standard_Integer N) const
 NextPrimeForMap. More...
 
void exchangeMapsData (NCollection_BaseMap &theOther)
 Exchange content of two maps without data copying. More...
 
- Protected Attributes inherited from NCollection_BaseMap
Handle< NCollection_BaseAllocatormyAllocator
 
NCollection_ListNode ** myData1
 
NCollection_ListNode ** myData2
 

Detailed Description

Data Map that provides the link between each Shape obtained in VRML import and the corresponding Appearance.

Constructor & Destructor Documentation

VrmlData_DataMapOfShapeAppearance::VrmlData_DataMapOfShapeAppearance ( const Standard_Integer  NbBuckets = 1,
const Handle< NCollection_BaseAllocator > &  theAllocator = 0L 
)
inline

Constructor.

VrmlData_DataMapOfShapeAppearance::VrmlData_DataMapOfShapeAppearance ( const VrmlData_DataMapOfShapeAppearance theOther)
inline

Copy constructor.

Friends And Related Function Documentation

Standard_Boolean IsEqual ( const Handle< TopoDS_TShape > &  one,
const Handle< TopoDS_TShape > &  two 
)
friend

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