utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal > Class Template Reference
[Hash function based containers]
const iterator for table
More...
#include <iter.hh>
List of all members.
Detailed Description
template<typename Key, typename Value, class Extract, class Hash, class Equal>
class utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >
const iterator for table
This class implements a const iterator for utilmm::hash_toolbox::table
. A const iterator is an iterator with guarantees that it will never modify the container it points to.
- Author:
- Frédéric Py <fpy@laas.fr>
Definition at line 38 of file iter.hh.
Member Typedef Documentation
template<typename Key, typename Value, class Extract, class Hash, class Equal>
template<typename Key, typename Value, class Extract, class Hash, class Equal>
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Pointer type.
This is the type of the pointer used to access to Value
. For cont iterator it is a const pointer
Definition at line 50 of file iter.hh.
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Reference type.
This is the type of the reference used to access to Value
. For cont iterator it is a const reference
Definition at line 56 of file iter.hh.
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Size type.
This is the type used to advance the iterator or other things like that.
Definition at line 62 of file iter.hh.
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Type of the pointed elements.
This the type of the elements in the container
Definition at line 44 of file iter.hh.
Constructor & Destructor Documentation
template<typename Key, typename Value, class Extract, class Hash, class Equal>
default crontructor
Create an iterator not attached to any table
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Convertion constructor.
This constructor is used to make implicit conversion from non cont iterator to const iterator when needed.
- Parameters:
-
| other | the instance to copy |
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Member Function Documentation
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Difference test.
- Parameters:
-
| other | The instance to compare |
- Return values:
-
| true | if *this is not equal to other |
| false | else |
template<typename Key, typename Value, class Extract, class Hash, class Equal>
dereference operator
- Returns:
- a refence to pointed cell
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Addition operation.
- Parameters:
-
This function returns an iterator delta cells after current instance
- Returns:
- the itrerator at delta
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Post-increment operation.
Advance iterator of one cell
- Returns:
- value of the iterator just before the operation.
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Pre-incremant operation.
Advance iterator of one cell
- Returns:
- the iterator after operation.
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Advance operation.
- Parameters:
-
| delta | distance to advance |
This function increments the iterator position of the given distance delta .
- Returns:
*this
after operation
template<typename Key, typename Value, class Extract, class Hash, class Equal>
access operator
This operator allow user to acces directly to attributes of pointed cell.
- Returns:
- a pointer to the cell
template<typename Key, typename Value, class Extract, class Hash, class Equal>
Equality test.
- Parameters:
-
| other | The instance to compare |
- Return values:
-
| true | if *this is equal to other |
| false | else |
Friends And Related Function Documentation
template<typename Key, typename Value, class Extract, class Hash, class Equal>
friend class table [friend] |
Member Data Documentation
template<typename Key, typename Value, class Extract, class Hash, class Equal>
template<typename Key, typename Value, class Extract, class Hash, class Equal>
The documentation for this class was generated from the following file: