cgma
|
#include <IdHasher.hpp>
Public Member Functions | |
iterator () | |
iterator (const iterator ©) | |
iterator & | operator++ () |
iterator | operator++ (int) |
bool | operator== (const iterator &other) const |
bool | operator!= (const iterator &other) const |
reference | operator* () |
iterator & | operator= (const iterator &other) |
Protected Member Functions | |
iterator (Y **c, bool b) | |
Protected Attributes | |
Y ** | mChildren |
size_t | index |
Y::iterator | iter |
Private Types | |
enum | { MySize = 1 << B } |
typedef Y::value_type & | reference |
Friends | |
class | Hasher |
Definition at line 136 of file IdHasher.hpp.
typedef Y::value_type& Hasher< Y, B >::iterator::reference [private] |
Reimplemented from Hasher< Y, B >::BaseIter< Y::value_type >.
Definition at line 139 of file IdHasher.hpp.
anonymous enum [private] |
Hasher< Y, B >::iterator::iterator | ( | ) | [inline] |
Definition at line 143 of file IdHasher.hpp.
Hasher< Y, B >::iterator::iterator | ( | const iterator & | copy | ) | [inline] |
Definition at line 144 of file IdHasher.hpp.
{ this->operator=(copy); }
Hasher< Y, B >::iterator::iterator | ( | Y ** | c, |
bool | b | ||
) | [inline, protected] |
bool Hasher< Y, B >::iterator::operator!= | ( | const iterator & | other | ) | const [inline] |
Definition at line 185 of file IdHasher.hpp.
{ return !operator==(other); }
Definition at line 190 of file IdHasher.hpp.
{ return *iter; }
Definition at line 150 of file IdHasher.hpp.
{ if(index != MySize) { ++iter; typename Y::iterator e = mChildren[index]->end(); for(; this->iter != e && !*iter; ++iter) {} if(iter == e) { for(++index; index < MySize && !mChildren[index]; ++index) {} if(index != MySize) { e = mChildren[index]->end(); for(iter = mChildren[index]->begin(); this->iter != e && !*iter; ++iter) {} } } } return *this; }
Definition at line 171 of file IdHasher.hpp.
{ iterator tmp(*this); this->operator++(); return tmp; }
iterator& Hasher< Y, B >::iterator::operator= | ( | const iterator & | other | ) | [inline] |
Definition at line 195 of file IdHasher.hpp.
friend class Hasher [friend] |
Definition at line 138 of file IdHasher.hpp.
size_t Hasher< Y, B >::iterator::index [protected] |
Definition at line 223 of file IdHasher.hpp.
Y::iterator Hasher< Y, B >::iterator::iter [protected] |
Definition at line 224 of file IdHasher.hpp.
Y** Hasher< Y, B >::iterator::mChildren [protected] |
Definition at line 222 of file IdHasher.hpp.