The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::utils::FastList< DataT >::NodeIterator< is_const > Class Template Reference

The internal iterator type of FastList. Use FastList<T>::[const_]iterator instead. More...

#include <FastList.hpp>

Inheritance diagram for sparta::utils::FastList< DataT >::NodeIterator< is_const >:
Collaboration diagram for sparta::utils::FastList< DataT >::NodeIterator< is_const >:

Public Member Functions

 NodeIterator (const NodeIterator< false > &iter)
 
bool isValid () const
 Determine if the iteartor is valid.
 
PtrIteratorType operator-> ()
 Iterator dereference.
 
PtrIteratorType operator-> () const
 Iterator dereference (const)
 
RefIteratorType operator* ()
 Iterator dereference.
 
RefIteratorType operator* () const
 Iterator dereference (const)
 
int getIndex () const
 Get the index in the list where this iterator points.
 
NodeIteratoroperator++ ()
 Move to the next iterator (pre)
 
NodeIterator operator++ (int)
 Move to the next iterator (post)
 
bool operator!= (const NodeIterator &rhs)
 Equality of iterator (not the underlying object)
 
bool operator== (const NodeIterator &node) const noexcept
 Equality of iterator (not the underlying object)
 
NodeIteratoroperator= (const NodeIterator &rhs)=default
 Assignments.
 
NodeIteratoroperator= (NodeIterator &&rhs)=default
 

Friends

class FastList< DataT >
 

Additional Inherited Members

- Public Types inherited from sparta::utils::IteratorTraits< std::forward_iterator_tag, value_type >
using difference_type = long
 
using value_type = value_type
 
using pointer = const value_type *
 
using reference = const value_type &
 
using iterator_category = std::forward_iterator_tag
 

Detailed Description

template<class DataT>
template<bool is_const = true>
class sparta::utils::FastList< DataT >::NodeIterator< is_const >

The internal iterator type of FastList. Use FastList<T>::[const_]iterator instead.

Definition at line 94 of file FastList.hpp.

Constructor & Destructor Documentation

◆ NodeIterator()

template<class DataT >
template<bool is_const = true>
sparta::utils::FastList< DataT >::NodeIterator< is_const >::NodeIterator ( const NodeIterator< false > &  iter)
inline

Definition at line 103 of file FastList.hpp.

Member Function Documentation

◆ getIndex()

template<class DataT >
template<bool is_const = true>
int sparta::utils::FastList< DataT >::NodeIterator< is_const >::getIndex ( ) const
inline

Get the index in the list where this iterator points.

Definition at line 139 of file FastList.hpp.

◆ isValid()

template<class DataT >
template<bool is_const = true>
bool sparta::utils::FastList< DataT >::NodeIterator< is_const >::isValid ( ) const
inline

Determine if the iteartor is valid.

Returns
true if the iterator is valie

Definition at line 112 of file FastList.hpp.

◆ operator!=()

template<class DataT >
template<bool is_const = true>
bool sparta::utils::FastList< DataT >::NodeIterator< is_const >::operator!= ( const NodeIterator< is_const > &  rhs)
inline

Equality of iterator (not the underlying object)

Definition at line 159 of file FastList.hpp.

◆ operator*() [1/2]

template<class DataT >
template<bool is_const = true>
RefIteratorType sparta::utils::FastList< DataT >::NodeIterator< is_const >::operator* ( )
inline

Iterator dereference.

Definition at line 127 of file FastList.hpp.

Here is the call graph for this function:

◆ operator*() [2/2]

template<class DataT >
template<bool is_const = true>
RefIteratorType sparta::utils::FastList< DataT >::NodeIterator< is_const >::operator* ( ) const
inline

Iterator dereference (const)

Definition at line 133 of file FastList.hpp.

Here is the call graph for this function:

◆ operator++() [1/2]

template<class DataT >
template<bool is_const = true>
NodeIterator & sparta::utils::FastList< DataT >::NodeIterator< is_const >::operator++ ( )
inline

Move to the next iterator (pre)

Definition at line 142 of file FastList.hpp.

Here is the call graph for this function:

◆ operator++() [2/2]

template<class DataT >
template<bool is_const = true>
NodeIterator sparta::utils::FastList< DataT >::NodeIterator< is_const >::operator++ ( int  )
inline

Move to the next iterator (post)

Definition at line 150 of file FastList.hpp.

Here is the call graph for this function:

◆ operator->() [1/2]

template<class DataT >
template<bool is_const = true>
PtrIteratorType sparta::utils::FastList< DataT >::NodeIterator< is_const >::operator-> ( )
inline

Iterator dereference.

Definition at line 115 of file FastList.hpp.

Here is the call graph for this function:

◆ operator->() [2/2]

template<class DataT >
template<bool is_const = true>
PtrIteratorType sparta::utils::FastList< DataT >::NodeIterator< is_const >::operator-> ( ) const
inline

Iterator dereference (const)

Definition at line 121 of file FastList.hpp.

Here is the call graph for this function:

◆ operator==()

template<class DataT >
template<bool is_const = true>
bool sparta::utils::FastList< DataT >::NodeIterator< is_const >::operator== ( const NodeIterator< is_const > &  node) const
inlinenoexcept

Equality of iterator (not the underlying object)

Definition at line 166 of file FastList.hpp.

Friends And Related Symbol Documentation

◆ FastList< DataT >

template<class DataT >
template<bool is_const = true>
friend class FastList< DataT >
friend

Definition at line 172 of file FastList.hpp.


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