Logo Search packages:      
Sourcecode: opencascade version File versions  Download package

TColStd_PackedMapOfInteger Class Reference

#include <TColStd_PackedMapOfInteger.hxx>

Inheritance diagram for TColStd_PackedMapOfInteger:

TCollection_BasicMap TCollection_BasicMap

List of all members.


Detailed Description

Optimized Map of integer values. Each block of 32 integers is stored in 8 bytes in memory.

Definition at line 17 of file TColStd_PackedMapOfInteger.hxx.


Public Member Functions

Standard_EXPORT Standard_Boolean Add (const Standard_Integer aKey)
Standard_EXPORT Standard_Boolean Add (const Standard_Integer aKey)
Standard_EXPORT
TColStd_PackedMapOfInteger
Assign (const TColStd_PackedMapOfInteger &)
Standard_EXPORT
TColStd_PackedMapOfInteger
Assign (const TColStd_PackedMapOfInteger &)
Standard_EXPORT void Clear ()
Standard_EXPORT void Clear ()
Standard_EXPORT Standard_Boolean Contains (const Standard_Integer aKey) const
Standard_EXPORT Standard_Boolean Contains (const Standard_Integer aKey) const
Standard_Integer Extent () const
Standard_Integer Extent () const
Standard_EXPORT Standard_Integer GetMaximalMapped () const
Standard_EXPORT Standard_Integer GetMaximalMapped () const
Standard_EXPORT Standard_Integer GetMinimalMapped () const
Standard_EXPORT Standard_Integer GetMinimalMapped () const
Standard_Integer IsEmpty () const
Standard_Integer IsEmpty () const
Standard_Integer NbBuckets () const
 Returns the number of buckets in <me>.
.
Standard_Integer NbBuckets () const
 Returns the number of buckets in <me>.
.
void operator delete (void *anAddress)
void operator delete (void *anAddress)
void * operator new (size_t size)
void * operator new (size_t size)
TColStd_PackedMapOfIntegeroperator= (const TColStd_PackedMapOfInteger &Other)
TColStd_PackedMapOfIntegeroperator= (const TColStd_PackedMapOfInteger &Other)
Standard_EXPORT Standard_Boolean Remove (const Standard_Integer aKey)
Standard_EXPORT Standard_Boolean Remove (const Standard_Integer aKey)
Standard_EXPORT void ReSize (const Standard_Integer NbBuckets)
Standard_EXPORT void ReSize (const Standard_Integer NbBuckets)
void Statistics (Standard_OStream &outStream) const
void Statistics (Standard_OStream &outStream) const
 TColStd_PackedMapOfInteger (const Standard_Integer NbBuckets=1)
 Constructor.
 TColStd_PackedMapOfInteger (const Standard_Integer NbBuckets=1)
 Constructor.
Boolean operations with maps as sets of integers
Standard_EXPORT Standard_Boolean Differ (const TColStd_PackedMapOfInteger &)
Standard_EXPORT void Difference (const TColStd_PackedMapOfInteger &, const TColStd_PackedMapOfInteger &)
Standard_EXPORT Standard_Boolean HasIntersection (const TColStd_PackedMapOfInteger &) const
Standard_EXPORT Standard_Boolean Intersect (const TColStd_PackedMapOfInteger &)
Standard_EXPORT void Intersection (const TColStd_PackedMapOfInteger &, const TColStd_PackedMapOfInteger &)
Standard_EXPORT Standard_Boolean IsEqual (const TColStd_PackedMapOfInteger &) const
Standard_EXPORT Standard_Boolean IsSubset (const TColStd_PackedMapOfInteger &) const
TColStd_PackedMapOfIntegeroperator &= (const TColStd_PackedMapOfInteger &MM)
TColStd_PackedMapOfIntegeroperator-= (const TColStd_PackedMapOfInteger &MM)
Standard_Boolean operator<= (const TColStd_PackedMapOfInteger &MM) const
Standard_Boolean operator== (const TColStd_PackedMapOfInteger &MM) const
TColStd_PackedMapOfIntegeroperator^= (const TColStd_PackedMapOfInteger &MM)
TColStd_PackedMapOfIntegeroperator|= (const TColStd_PackedMapOfInteger &MM)
Standard_EXPORT Standard_Boolean Subtract (const TColStd_PackedMapOfInteger &)
Standard_EXPORT void Subtraction (const TColStd_PackedMapOfInteger &, const TColStd_PackedMapOfInteger &)
Standard_EXPORT void Union (const TColStd_PackedMapOfInteger &, const TColStd_PackedMapOfInteger &)
Standard_EXPORT Standard_Boolean Unite (const TColStd_PackedMapOfInteger &)
Boolean operations with maps as sets of integers
Standard_EXPORT Standard_Boolean Differ (const TColStd_PackedMapOfInteger &)
Standard_EXPORT void Difference (const TColStd_PackedMapOfInteger &, const TColStd_PackedMapOfInteger &)
Standard_EXPORT Standard_Boolean HasIntersection (const TColStd_PackedMapOfInteger &) const
Standard_EXPORT Standard_Boolean Intersect (const TColStd_PackedMapOfInteger &)
Standard_EXPORT void Intersection (const TColStd_PackedMapOfInteger &, const TColStd_PackedMapOfInteger &)
Standard_EXPORT Standard_Boolean IsEqual (const TColStd_PackedMapOfInteger &) const
Standard_EXPORT Standard_Boolean IsSubset (const TColStd_PackedMapOfInteger &) const
TColStd_PackedMapOfIntegeroperator &= (const TColStd_PackedMapOfInteger &MM)
TColStd_PackedMapOfIntegeroperator-= (const TColStd_PackedMapOfInteger &MM)
Standard_Boolean operator<= (const TColStd_PackedMapOfInteger &MM) const
Standard_Boolean operator== (const TColStd_PackedMapOfInteger &MM) const
TColStd_PackedMapOfIntegeroperator^= (const TColStd_PackedMapOfInteger &MM)
TColStd_PackedMapOfIntegeroperator|= (const TColStd_PackedMapOfInteger &MM)
Standard_EXPORT Standard_Boolean Subtract (const TColStd_PackedMapOfInteger &)
Standard_EXPORT void Subtraction (const TColStd_PackedMapOfInteger &, const TColStd_PackedMapOfInteger &)
Standard_EXPORT void Union (const TColStd_PackedMapOfInteger &, const TColStd_PackedMapOfInteger &)
Standard_EXPORT Standard_Boolean Unite (const TColStd_PackedMapOfInteger &)

Protected Member Functions

Standard_Integer InternalExtent () const
Standard_Integer InternalExtent () const

Private Member Functions

Standard_EXPORT Standard_Boolean BeginResize (const Standard_Integer NbBuckets, Standard_Integer &NewBuckets, Standard_Address &data1, Standard_Address &data2) const
void Decrement ()
 Decrement the extent of the map.
.
Standard_EXPORT void Destroy ()
 Destroys the buckets.
.
Standard_EXPORT void EndResize (const Standard_Integer NbBuckets, const Standard_Integer NewBuckets, const Standard_Address data1, const Standard_Address data2)
void Increment ()
 Decrement the extent of the map.
.
void * operator new (size_t, void *anAddress)
Standard_Boolean Resizable () const
 TColStd_PackedMapOfInteger (const TColStd_PackedMapOfInteger &theOther)
 Copy constructor - prohibited.
 TColStd_PackedMapOfInteger (const TColStd_PackedMapOfInteger &theOther)
 Copy constructor - prohibited.

Private Attributes

Standard_Address myData1
Standard_Address myData2
size_t myExtent

Friends

class TCollection_BasicMapIterator
class TColStd_MapIteratorOfPackedMapOfInteger

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

Generated by  Doxygen 1.6.0   Back to index