|
cgma
|
#include <IdHasher.hpp>
Classes | |
| struct | BaseIter |
| class | iterator |
| struct | IterTag |
Public Types | |
| enum | { NumberOfBits = Y::NumberOfBits + B } |
| enum | { SubSize = Y::NumberOfBits } |
| enum | { MySize = 1 << B } |
| enum | { MyMask = ( 1 << SubSize ) - 1 } |
| typedef iterator | const_iterator |
| typedef unsigned int | Key |
| typedef Y::value_type | value_type |
Public Member Functions | |
| Hasher () | |
| ~Hasher () | |
| bool | add (Key idx, value_type ptr) |
| bool | remove (Key idx) |
| const value_type & | operator[] (Key idx) const |
| value_type & | operator[] (Key idx) |
| Key | count () const |
| iterator | begin () |
| iterator | end () |
| Key | my_index (Key idx) const |
| Key | sub_index (Key idx) const |
Public Attributes | |
| value_type | Null |
Private Attributes | |
| Key | mCount |
| Y * | mChildren [MySize] |
Definition at line 17 of file IdHasher.hpp.
| typedef iterator Hasher< Y, B >::const_iterator |
Definition at line 31 of file IdHasher.hpp.
Definition at line 34 of file IdHasher.hpp.
| typedef Y::value_type Hasher< Y, B >::value_type |
Definition at line 35 of file IdHasher.hpp.
| anonymous enum |
Definition at line 38 of file IdHasher.hpp.
{ NumberOfBits = Y::NumberOfBits + B };
| anonymous enum |
| anonymous enum |
| anonymous enum |
| bool Hasher< Y, B >::add | ( | Key | idx, |
| value_type | ptr | ||
| ) | [inline] |
Definition at line 126 of file IdHasher.hpp.
{
return iterator(this->mChildren, true);
}
Definition at line 121 of file IdHasher.hpp.
{
return mCount;
}
Definition at line 131 of file IdHasher.hpp.
{
return iterator(this->mChildren, false);
}
Definition at line 229 of file IdHasher.hpp.
{
return idx >> SubSize;
}
| const value_type& Hasher< Y, B >::operator[] | ( | Key | idx | ) | const [inline] |
| value_type& Hasher< Y, B >::operator[] | ( | Key | idx | ) | [inline] |
Definition at line 235 of file IdHasher.hpp.
{
return idx & MyMask;
}
Definition at line 243 of file IdHasher.hpp.
Definition at line 242 of file IdHasher.hpp.
| value_type Hasher< Y, B >::Null |
Definition at line 49 of file IdHasher.hpp.