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

The iterator type for HashContainer. More...

#include <hashcontainer.hh>

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

Public Types

typedef HashContainer_const_iterator< T, A > inherited
 
- Public Types inherited from HashContainer_const_iterator< T, A >
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_iterator ()
 Construct an uninitialized iterator.
 
bool can_insert () const
 Return true iff elements can be inserted here.
 
HashContainer< T, A > * hashcontainer () const
 Return the corresponding HashContainer.
 
- Public Member Functions inherited from HashContainer_const_iterator< T, A >
 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_iterator< T, A >

The iterator type for HashContainer.

Constructor & Destructor Documentation

◆ HashContainer_iterator()

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

Construct an uninitialized iterator.

Member Function Documentation

◆ can_insert()

template<typename T , typename A >
bool HashContainer_iterator< T, A >::can_insert ( ) const
inline

Return true iff elements can be inserted here.

Specifically, returns true iff this iterator is valid to pass to HashContainer::insert_at() or HashContainer::set(). All live() iterators can_insert(), but some !live() iterators can_insert() as well.

◆ hashcontainer()

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

Return the corresponding HashContainer.


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