Back to index

salome-med  6.5.0
Public Types | Public Member Functions | Public Attributes
INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc > Struct Template Reference

#include <InterpKernelHashTable.hxx>

Collaboration diagram for INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef hashtable< _Val, _Key,
_HashFcn, _ExtractKey,
_EqualKey, _Alloc > 
_Hashtable
typedef _Hashtable_iterator
< _Val, _Key, _HashFcn,
_ExtractKey, _EqualKey, _Alloc > 
iterator
typedef
_Hashtable_const_iterator
< _Val, _Key, _HashFcn,
_ExtractKey, _EqualKey, _Alloc > 
const_iterator
typedef _Hashtable_node< _Val > _Node
typedef std::forward_iterator_tag iterator_category
typedef _Val value_type
typedef std::ptrdiff_t difference_type
typedef std::size_t size_type
typedef const _Val & reference
typedef const _Val * pointer

Public Member Functions

 _Hashtable_const_iterator (const _Node *__n, const _Hashtable *__tab)
 _Hashtable_const_iterator ()
 _Hashtable_const_iterator (const iterator &__it)
reference operator* () const
pointer operator-> () const
const_iteratoroperator++ ()
const_iterator operator++ (int)
bool operator== (const const_iterator &__it) const
bool operator!= (const const_iterator &__it) const

Public Attributes

const _Node_M_cur
const _Hashtable_M_ht

Detailed Description

template<class _Val, class _Key, class _HashFcn, class _ExtractKey, class _EqualKey, class _Alloc>
struct INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >

Definition at line 134 of file InterpKernelHashTable.hxx.


Member Typedef Documentation

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
typedef hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc> INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::_Hashtable

Definition at line 137 of file InterpKernelHashTable.hxx.

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
typedef _Hashtable_node<_Val> INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::_Node

Definition at line 144 of file InterpKernelHashTable.hxx.

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
typedef _Hashtable_const_iterator<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc> INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::const_iterator

Definition at line 143 of file InterpKernelHashTable.hxx.

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
typedef std::ptrdiff_t INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::difference_type

Definition at line 148 of file InterpKernelHashTable.hxx.

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
typedef _Hashtable_iterator<_Val,_Key,_HashFcn, _ExtractKey,_EqualKey,_Alloc> INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::iterator

Definition at line 140 of file InterpKernelHashTable.hxx.

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
typedef std::forward_iterator_tag INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::iterator_category

Definition at line 146 of file InterpKernelHashTable.hxx.

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
typedef const _Val* INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::pointer

Definition at line 151 of file InterpKernelHashTable.hxx.

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
typedef const _Val& INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::reference

Definition at line 150 of file InterpKernelHashTable.hxx.

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
typedef std::size_t INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::size_type

Definition at line 149 of file InterpKernelHashTable.hxx.

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
typedef _Val INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::value_type

Definition at line 147 of file InterpKernelHashTable.hxx.


Constructor & Destructor Documentation

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::_Hashtable_const_iterator ( const _Node __n,
const _Hashtable __tab 
) [inline]

Definition at line 156 of file InterpKernelHashTable.hxx.

      : _M_cur(__n), _M_ht(__tab) { }
template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::_Hashtable_const_iterator ( ) [inline]

Definition at line 159 of file InterpKernelHashTable.hxx.

{ }
template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::_Hashtable_const_iterator ( const iterator __it) [inline]

Definition at line 161 of file InterpKernelHashTable.hxx.

      : _M_cur(__it._M_cur), _M_ht(__it._M_ht) { }

Member Function Documentation

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
bool INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::operator!= ( const const_iterator __it) const [inline]

Definition at line 174 of file InterpKernelHashTable.hxx.

{ return _M_cur != __it._M_cur; }
template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
reference INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::operator* ( ) const [inline]

Definition at line 164 of file InterpKernelHashTable.hxx.

{ return _M_cur->_M_val; }

Here is the caller graph for this function:

template<class _Val , class _Key , class _HF , class _ExK , class _EqK , class _All >
_Hashtable_const_iterator< _Val, _Key, _HF, _ExK, _EqK, _All > & INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HF, _ExK, _EqK, _All >::operator++ ( )

Definition at line 562 of file InterpKernelHashTable.hxx.

  {
    const _Node* __old = _M_cur;
    _M_cur = _M_cur->_M_next;
    if (!_M_cur)
      {
        size_type __bucket = _M_ht->_M_bkt_num(__old->_M_val);
        while (!_M_cur && ++__bucket < _M_ht->_M_buckets.size())
          _M_cur = _M_ht->_M_buckets[__bucket];
      }
    return *this;
  }
template<class _Val , class _Key , class _HF , class _ExK , class _EqK , class _All >
_Hashtable_const_iterator< _Val, _Key, _HF, _ExK, _EqK, _All > INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HF, _ExK, _EqK, _All >::operator++ ( int  ) [inline]

Definition at line 579 of file InterpKernelHashTable.hxx.

  {
    const_iterator __tmp = *this;
    ++*this;
    return __tmp;
  }
template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
pointer INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::operator-> ( ) const [inline]

Definition at line 166 of file InterpKernelHashTable.hxx.

{ return &(operator*()); }

Here is the call graph for this function:

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
bool INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::operator== ( const const_iterator __it) const [inline]

Definition at line 172 of file InterpKernelHashTable.hxx.

{ return _M_cur == __it._M_cur; }

Member Data Documentation

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
const _Node* INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::_M_cur

Definition at line 153 of file InterpKernelHashTable.hxx.

template<class _Val , class _Key , class _HashFcn , class _ExtractKey , class _EqualKey , class _Alloc >
const _Hashtable* INTERP_KERNEL::_Hashtable_const_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::_M_ht

Definition at line 154 of file InterpKernelHashTable.hxx.


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