Click
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
HashContainer_const_iterator< T, A > Class Template Reference

The const_iterator type for HashContainer. More...

#include <hashcontainer.hh>

Inheritance diagram for HashContainer_const_iterator< T, A >:
HashContainer_iterator< T, A >

Public Types

typedef HashContainer< T, A >::size_type size_type
 
typedef HashContainer< T, A >::bucket_count_type bucket_count_type
 
typedef T *(HashContainer_const_iterator::* unspecified_bool_type) () const
 

Public Member Functions

 HashContainer_const_iterator ()
 Construct an uninitialized iterator.
 
T * get () const
 Return a pointer to the element, null if *this == end().
 
T * operator-> () const
 Return a pointer to the element, null if *this == end().
 
T & operator* () const
 Return a reference to the element.
 
bool live () const
 Return true iff *this != end().
 
 operator unspecified_bool_type () const
 Return true iff *this != end().
 
const HashContainer< T, A > * hashcontainer () const
 Return the corresponding HashContainer.
 
bucket_count_type bucket () const
 Return the bucket number this iterator is in.
 
void operator++ ()
 Advance this iterator to the next element.
 
void operator++ (int)
 Advance this iterator to the next element.
 

Detailed Description

template<typename T, typename A>
class HashContainer_const_iterator< T, A >

The const_iterator type for HashContainer.

Constructor & Destructor Documentation

◆ HashContainer_const_iterator()

template<typename T , typename A >
HashContainer_const_iterator< T, A >::HashContainer_const_iterator ( )
inline

Construct an uninitialized iterator.

Member Function Documentation

◆ get()

template<typename T , typename A >
T * HashContainer_const_iterator< T, A >::get ( ) const
inline

Return a pointer to the element, null if *this == end().

◆ operator->()

template<typename T , typename A >
T * HashContainer_const_iterator< T, A >::operator-> ( ) const
inline

Return a pointer to the element, null if *this == end().

◆ operator*()

template<typename T , typename A >
T & HashContainer_const_iterator< T, A >::operator* ( ) const
inline

Return a reference to the element.

Precondition
*this != end()

◆ live()

template<typename T , typename A >
bool HashContainer_const_iterator< T, A >::live ( ) const
inline

Return true iff *this != end().

◆ operator unspecified_bool_type()

template<typename T , typename A >
HashContainer_const_iterator< T, A >::operator unspecified_bool_type ( ) const
inline

Return true iff *this != end().

◆ hashcontainer()

template<typename T , typename A >
const HashContainer< T, A > * HashContainer_const_iterator< T, A >::hashcontainer ( ) const
inline

Return the corresponding HashContainer.

◆ bucket()

template<typename T , typename A >
bucket_count_type HashContainer_const_iterator< T, A >::bucket ( ) const
inline

Return the bucket number this iterator is in.

◆ operator++() [1/2]

template<typename T , typename A >
void HashContainer_const_iterator< T, A >::operator++ ( )
inline

Advance this iterator to the next element.

◆ operator++() [2/2]

template<typename T , typename A >
void HashContainer_const_iterator< T, A >::operator++ ( int  )
inline

Advance this iterator to the next element.


The documentation for this class was generated from the following file: