RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
ConstConcatVectorIterator< T > Class Template Reference

Forward iterator for the concatenation of a pair of vectors of pointers to T. More...

#include <ConcatVectorIterator.hpp>

Public Types

typedef std::forward_iterator_tag iterator_category
 
typedef T const value_type
 
typedef T const * pointer
 
typedef T const & reference
 
typedef ptrdiff_t difference_type
 

Public Member Functions

 ConstConcatVectorIterator (ConcatVectorIterator< T > pos)
 Constructor and implicit conversion from iterators. More...
 
const T & operator* () const
 Reference to the T element.
 
const T * operator-> () const
 Pointer to the T element.
 
ConstConcatVectorIteratoroperator++ ()
 Increments the position of the iterator. More...
 
ConstConcatVectorIterator operator++ (int)
 Increments the position of the iterator. More...
 
bool operator== (const ConstConcatVectorIterator &other) const
 Tests whether the positions of two iterators are equal. More...
 
bool operator!= (const ConstConcatVectorIterator &other) const
 Tests whether the positions of two iterators are unequal. More...
 

Detailed Description

template<typename T>
class rw::common::ConstConcatVectorIterator< T >

Forward iterator for the concatenation of a pair of vectors of pointers to T.

Member Typedef Documentation

◆ difference_type

typedef ptrdiff_t difference_type

Difference type.

◆ iterator_category

typedef std::forward_iterator_tag iterator_category

Iterator category.

◆ pointer

typedef T const* pointer

Pointer type.

◆ reference

typedef T const& reference

Reference type.

◆ value_type

typedef T const value_type

Value type.

Constructor & Destructor Documentation

◆ ConstConcatVectorIterator()

Constructor and implicit conversion from iterators.

All ConstConcatVectorIterator are constructed via ConcatVectorIterator values or copy construction.

Member Function Documentation

◆ operator!=()

bool operator!= ( const ConstConcatVectorIterator< T > &  other) const
inline

Tests whether the positions of two iterators are unequal.

Parameters
other[in] ConstConcatVectorIterator to compare with
Returns
true if unequal

◆ operator++() [1/2]

ConstConcatVectorIterator& operator++ ( )
inline

Increments the position of the iterator.

Returns
Reference to the incremented iterator

◆ operator++() [2/2]

ConstConcatVectorIterator operator++ ( int  )
inline

Increments the position of the iterator.

Returns
the ConstConcatVectorIterator with the value before the incrementation

◆ operator==()

bool operator== ( const ConstConcatVectorIterator< T > &  other) const
inline

Tests whether the positions of two iterators are equal.

Parameters
other[in] ConstConcatVectorIterator to compare with
Returns
true if equal

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