Back to index

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

#include <InterpKernelHashTable.hxx>

Collaboration diagram for INTERP_KERNEL::_Hashtable_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 _Val & reference
typedef _Val * pointer

Public Member Functions

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

Public Attributes

_Node_M_cur
_Hashtable_M_ht

Detailed Description

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

Definition at line 83 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_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::_Hashtable

Definition at line 86 of file InterpKernelHashTable.hxx.

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

Definition at line 93 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_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::const_iterator

Definition at line 92 of file InterpKernelHashTable.hxx.

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

Definition at line 96 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_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::iterator

Definition at line 89 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_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::iterator_category

Definition at line 94 of file InterpKernelHashTable.hxx.

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

Definition at line 99 of file InterpKernelHashTable.hxx.

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

Definition at line 98 of file InterpKernelHashTable.hxx.

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

Definition at line 97 of file InterpKernelHashTable.hxx.

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

Definition at line 95 of file InterpKernelHashTable.hxx.


Constructor & Destructor Documentation

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

Definition at line 104 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_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::_Hashtable_iterator ( ) [inline]

Definition at line 107 of file InterpKernelHashTable.hxx.

{ }

Member Function Documentation

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

Definition at line 128 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_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::operator* ( ) const [inline]

Definition at line 110 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_iterator< _Val, _Key, _HF, _ExK, _EqK, _All > & INTERP_KERNEL::_Hashtable_iterator< _Val, _Key, _HF, _ExK, _EqK, _All >::operator++ ( )

Definition at line 536 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_iterator< _Val, _Key, _HF, _ExK, _EqK, _All > INTERP_KERNEL::_Hashtable_iterator< _Val, _Key, _HF, _ExK, _EqK, _All >::operator++ ( int  ) [inline]

Definition at line 552 of file InterpKernelHashTable.hxx.

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

Definition at line 114 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_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::operator== ( const iterator __it) const [inline]

Definition at line 124 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 >
_Node* INTERP_KERNEL::_Hashtable_iterator< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::_M_cur

Definition at line 101 of file InterpKernelHashTable.hxx.

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

Definition at line 102 of file InterpKernelHashTable.hxx.


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