LPtrList< LListBase, T >::iterator Class Reference

An STL-conforming iterator. More...

Inheritance diagram for LPtrList< LListBase, T >::iterator:
[legend]
Collaboration diagram for LPtrList< LListBase, T >::iterator:
[legend]

Public Member Functions

 iterator (base_iterator iter)
 
pointer get () const
 Return the address of the object being referenced. More...
 
reference operator* () const
 
pointer operator-> () const
 
reference operator() () const
 
- Public Member Functions inherited from HashTable< T, Key, Hash >::iterator
 iterator ()=default
 Default construct (end iterator) More...
 
 iterator (const Iterator< false > &iter)
 Copy construct from similar access type. More...
 
const node_typenode () const noexcept
 Const access to the entry (node) More...
 
node_typenode () noexcept
 Non-const access to the entry (node) More...
 
const_reference val () const
 Const access to referenced object (value) More...
 
reference val ()
 Non-const access to referenced object (value) More...
 
const_reference operator* () const
 Const access to referenced object (value) More...
 
const_reference operator() () const
 
reference operator* ()
 Non-const access to referenced object (value) More...
 
reference operator() ()
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
- Public Member Functions inherited from HashTable< T, Key, Hash >::Iterator< false >
bool good () const noexcept
 True if iterator points to an entry. More...
 
bool found () const noexcept
 True if iterator points to an entry - same as good() More...
 
const Key & key () const
 The key associated with the iterator. More...
 
Ostreamprint (Ostream &os) const
 Write the (key, val) pair. More...
 
 operator bool () const noexcept
 True if iterator points to an entry. More...
 
bool operator== (const Iterator< Any > &iter) const noexcept
 Compare hash-entry element pointers. More...
 
bool operator!= (const Iterator< Any > &iter) const noexcept
 

Additional Inherited Members

- Public Types inherited from HashTable< T, Key, Hash >::iterator
using iterator_category = std::forward_iterator_tag
 
using difference_type = this_type::difference_type
 
using node_type = this_type::node_type
 
using key_type = this_type::key_type
 
using mapped_type = this_type::mapped_type
 
using value_type = this_type::value_type
 
using pointer = this_type::pointer
 
using reference = this_type::reference
 
using const_pointer = this_type::const_pointer
 
using const_reference = this_type::const_reference
 
- Public Types inherited from HashTable< T, Key, Hash >::Iterator< false >
using iterator_category = std::forward_iterator_tag
 
using difference_type = this_type::difference_type
 
using table_type = typename std::conditional< Const, const this_type, this_type >::type
 The HashTable container type. More...
 
using node_type = typename std::conditional< Const, const this_type::node_type, this_type::node_type >::type
 The node-type being addressed. More...
 
using key_type = this_type::key_type
 The key type. More...
 
using mapped_type = typename std::conditional< Const, const this_type::mapped_type, this_type::mapped_type >::type
 The object type being addressed. More...
 
- Protected Member Functions inherited from HashTable< T, Key, Hash >::Iterator< false >
constexpr Iterator () noexcept
 Default construct (end iterator) More...
 
 Iterator (table_type *tbl)
 Construct from begin of hash-table. More...
 
 Iterator (table_type *tbl, const Key &key)
 Construct by finding key in hash table. More...
 
void increment ()
 Increment to the next position. More...
 
 operator const Iterator< Any > & () const
 Permit explicit cast to the other (const/non-const) iterator. More...
 
- Protected Attributes inherited from HashTable< T, Key, Hash >::Iterator< false >
node_typeentry_
 The selected entry. More...
 
table_typecontainer_
 The hash-table container being iterated on. More...
 
label index_
 Index within the hash-table data. More...
 

Detailed Description

template<class LListBase, class T>
class Foam::LPtrList< LListBase, T >::iterator

An STL-conforming iterator.

Definition at line 191 of file LPtrList.H.

Constructor & Destructor Documentation

◆ iterator()

iterator ( base_iterator  iter)
inline

Definition at line 197 of file LPtrList.H.

Member Function Documentation

◆ get()

pointer get ( ) const
inline

Return the address of the object being referenced.

Definition at line 203 of file LPtrList.H.

References forceSuSp::operator*.

Referenced by LPtrList< LListBase, T >::iterator::operator*(), and LPtrList< LListBase, T >::iterator::operator->().

Here is the caller graph for this function:

◆ operator*()

reference operator* ( ) const
inline

Definition at line 208 of file LPtrList.H.

References LPtrList< LListBase, T >::iterator::get().

Referenced by LPtrList< LListBase, T >::iterator::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator->()

pointer operator-> ( ) const
inline

Definition at line 213 of file LPtrList.H.

References LPtrList< LListBase, T >::iterator::get().

Here is the call graph for this function:

◆ operator()()

reference operator() ( ) const
inline

Definition at line 218 of file LPtrList.H.

References LPtrList< LListBase, T >::iterator::operator*().

Here is the call graph for this function:

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