utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal > Class Template Reference
[Hash function based containers]

const iterator for table More...

#include <utilmm/hash/bits/iter.hh>

List of all members.

Public Types

typedef Value value_type
 Type of the pointed elements.
typedef value_type
const * 
pointer
 Pointer type.
typedef value_type
const & 
reference
 Reference type.
typedef size_t size_type
 Size type.

Public Member Functions

 const_iter ()
 default crontructor
 const_iter (iter< Key, Value, Extract, Hash, Equal > const &other)
 Convertion constructor.
bool operator== (const_iter const &other) const
 Equality test.
bool operator!= (const_iter const &other) const
 Difference test.
const_iteroperator+= (size_type delta)
 Advance operation.
const_iter operator+ (size_type delta) const
 Addition operation.
const_iteroperator++ ()
 Pre-incremant operation.
const_iter operator++ (int)
 Post-increment operation.
pointer operator-> () const
 access operator
reference operator * () const
 dereference operator

Friends

class table


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>

Member Typedef Documentation

template<typename Key, typename Value, class Extract, class Hash, class Equal>
typedef Value utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::value_type

Type of the pointed elements.

This the type of the elements in the container

template<typename Key, typename Value, class Extract, class Hash, class Equal>
typedef value_type const* utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::pointer

Pointer type.

This is the type of the pointer used to access to Value. For cont iterator it is a const pointer

template<typename Key, typename Value, class Extract, class Hash, class Equal>
typedef value_type const& utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::reference

Reference type.

This is the type of the reference used to access to Value. For cont iterator it is a const reference

template<typename Key, typename Value, class Extract, class Hash, class Equal>
typedef size_t utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::size_type

Size type.

This is the type used to advance the iterator or other things like that.


Constructor & Destructor Documentation

template<typename Key, typename Value, class Extract, class Hash, class Equal>
utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::const_iter (  ) 

default crontructor

Create an iterator not attached to any table

template<typename Key, typename Value, class Extract, class Hash, class Equal>
utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::const_iter ( iter< Key, Value, Extract, Hash, Equal > const &  other  ) 

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


Member Function Documentation

template<typename Key, typename Value, class Extract, class Hash, class Equal>
bool utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator== ( const_iter< Key, Value, Extract, Hash, Equal > const &  other  )  const

Equality test.

Parameters:
other The instance to compare
Return values:
true if *this is equal to other
false else

template<typename Key, typename Value, class Extract, class Hash, class Equal>
bool utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator!= ( const_iter< Key, Value, Extract, Hash, Equal > const &  other  )  const

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>
const_iter& utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator+= ( size_type  delta  ) 

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>
const_iter utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator+ ( size_type  delta  )  const

Addition operation.

Parameters:
delta distance to add
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>
const_iter& utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator++ (  ) 

Pre-incremant operation.

Advance iterator of one cell

Returns:
the iterator after operation.

template<typename Key, typename Value, class Extract, class Hash, class Equal>
const_iter utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator++ ( int   ) 

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>
pointer utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator-> (  )  const

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>
reference utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator * (  )  const

dereference operator

Returns:
a refence to pointed cell


Friends And Related Function Documentation

template<typename Key, typename Value, class Extract, class Hash, class Equal>
friend class table [friend]


The documentation for this class was generated from the following file:
Generated on Tue Feb 19 10:51:02 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page