Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 >
 NCollection_DataMap (const Standard_Integer NbBuckets=1, const Handle< NCollection_BaseAllocator > &theAllocator=0L)
 Constructor. More...
 
 NCollection_DataMap (const NCollection_DataMap &theOther)
 Copy constructor. More...
 
virtual void Assign (const NCollection_BaseCollection< Handle_VrmlData_Appearance > &theOther)
 Assign another collection. 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_DataMapoperator= (const NCollection_DataMap &theOther)
 = another map More...
 
void ReSize (const Standard_Integer N)
 ReSize. More...
 
Standard_Boolean Bind (const Handle_TopoDS_TShape &theKey, const Handle_VrmlData_Appearance &theItem)
 Bind. More...
 
Standard_Boolean IsBound (const Handle_TopoDS_TShape &K) const
 IsBound. More...
 
Standard_Boolean UnBind (const Handle_TopoDS_TShape &K)
 UnBind. More...
 
const Handle_VrmlData_Appearance & Find (const Handle_TopoDS_TShape &theKey) const
 Find. More...
 
Standard_Boolean Find (const Handle_TopoDS_TShape &theKey, Handle_VrmlData_Appearance &theValue) const
 Find value 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 & ChangeFind (const Handle_TopoDS_TShape &theKey)
 ChangeFind. 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...
 
virtual Standard_Integer Size (void) const
 Size. More...
 
- Public Member Functions inherited from NCollection_BaseCollection< Handle_VrmlData_Appearance >
 NCollection_BaseCollection (const Handle< NCollection_BaseAllocator > &theAllocator=0L)
 Common for all collections constructor takes care of theAllocator. More...
 
virtual void Assign (const NCollection_BaseCollection &theOther)=0
 Virtual assignment. More...
 
virtual ~NCollection_BaseCollection (void)
 Destructor - must be implemented to release the memory. More...
 
const Handle
< NCollection_BaseAllocator > & 
Allocator () const
 Returns attached allocator. 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

- Protected Member Functions inherited from NCollection_BaseCollection< Handle_VrmlData_Appearance >
const Handle
< NCollection_BaseAllocator > & 
IterAllocator (void) const
 
void exchangeAllocators (NCollection_BaseCollection &theOther)
 Exchange allocators of two collections. More...
 
- Protected Member Functions inherited from NCollection_BaseMap
 NCollection_BaseMap (const Standard_Integer NbBuckets, const Standard_Boolean single)
 Constructor. More...
 
Standard_Boolean BeginResize (const Standard_Integer NbBuckets, Standard_Integer &NewBuckets, NCollection_ListNode **&data1, NCollection_ListNode **&data2, Handle< NCollection_BaseAllocator > &theAllocator) const
 BeginResize. More...
 
void EndResize (const Standard_Integer NbBuckets, const Standard_Integer NewBuckets, NCollection_ListNode **data1, NCollection_ListNode **data2, Handle< NCollection_BaseAllocator > &theAllocator)
 EndResize. More...
 
Standard_Boolean Resizable () const
 Resizable. More...
 
void Increment ()
 Increment. More...
 
void Decrement ()
 Decrement. More...
 
void Destroy (NCollection_DelMapNode fDel, Handle< NCollection_BaseAllocator > &theAllocator, const 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_BaseCollection< Handle_VrmlData_Appearance >
Handle< NCollection_BaseAllocatormyAllocator
 
- Protected Attributes inherited from NCollection_BaseMap
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: