The class BOPDS_PassKey is to provide
possibility to map objects that
have a set of integer IDs as a base
#include <BOPDS_PassKey.hxx>
Public Member Functions |
| BOPDS_PassKey () |
| Empty contructor
|
virtual | ~BOPDS_PassKey () |
| BOPDS_PassKey (const BOPCol_BaseAllocator &theAllocator) |
| Contructor
theAllocator - the allocator to manage the memory
|
| BOPDS_PassKey (const BOPDS_PassKey &Other) |
| Copy Contructor
|
BOPDS_PassKey & | operator= (const BOPDS_PassKey &Other) |
void | Clear () |
| Clear the contents
|
void | SetIds (const Standard_Integer theI1) |
| Modifier
Sets one Id <theI1>
|
void | SetIds (const Standard_Integer theI1, const Standard_Integer theI2) |
| Modifier
Sets two Id <theI1>,<theI2>
|
void | SetIds (const Standard_Integer theI1, const Standard_Integer theI2, const Standard_Integer theI3) |
| Modifier
Sets three Id <theI1>,<theI2>,<theI3>
|
void | SetIds (const Standard_Integer theI1, const Standard_Integer theI2, const Standard_Integer theI3, const Standard_Integer theI4) |
| Modifier
Sets four Id <theI1>,<theI2>,<theI3>,<theI4>
|
void | SetIds (const BOPCol_ListOfInteger &theLI) |
| Modifier
Sets the list of Id <theLI>
|
Standard_Integer | NbIds () const |
| Selector
Returns the number of Ids>
|
Standard_Boolean | IsEqual (const BOPDS_PassKey &theOther) const |
| Query
Returns true if the PassKey is equal to <the theother>="">
|
Standard_Integer | HashCode (const Standard_Integer theUpper) const |
| Query
Returns hash code
|
Standard_Integer | Id (const Standard_Integer theIndex) const |
| Selector
Returns Id of index <theIndex>
|
void | Ids (Standard_Integer &theI1, Standard_Integer &theI2) const |
| Selector
Returns the first two Ids <theI1>,<theI2>
|
void | Dump (const Standard_Integer aHex=0) const |
Protected Member Functions |
BOPCol_PInteger | Allocate (const Standard_Integer theSize) |
Protected Attributes |
BOPCol_BaseAllocator | myAllocator |
Standard_Integer | myNbIds |
Standard_Integer | mySum |
BOPCol_PInteger | myPtr |
Constructor & Destructor Documentation
BOPDS_PassKey::BOPDS_PassKey |
( |
| ) |
|
virtual BOPDS_PassKey::~BOPDS_PassKey |
( |
| ) |
[virtual] |
Member Function Documentation
void BOPDS_PassKey::Clear |
( |
| ) |
|
Field Documentation
The documentation for this class was generated from the following file: