scenario_simulator_v2 C++ API
Public Types | Public Member Functions | List of all members
openscenario_interpreter::iterator::CircularIterator< Container > Class Template Reference

#include <circular_iterator.hpp>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = typename std::iterator_traits< ForwardIterator >::value_type
 
using reference = typename std::add_lvalue_reference< value_type >::type
 
using const_reference = typename std::add_const< reference >::type
 
using pointer = typename std::iterator_traits< ForwardIterator >::pointer
 
using difference_type = typename std::iterator_traits< ForwardIterator >::difference_type
 

Public Member Functions

 CircularIterator (ForwardIterator begin, ForwardIterator end, ForwardIterator current)
 
CircularIteratoroperator= (const ForwardIterator &iterator)
 
 operator ForwardConstIterator () const
 
 operator ForwardIterator ()
 
reference operator* () const
 
auto & operator++ ()
 
auto operator++ (int)
 

Member Typedef Documentation

◆ const_reference

template<typename Container >
using openscenario_interpreter::iterator::CircularIterator< Container >::const_reference = typename std::add_const<reference>::type

◆ difference_type

template<typename Container >
using openscenario_interpreter::iterator::CircularIterator< Container >::difference_type = typename std::iterator_traits<ForwardIterator>::difference_type

◆ iterator_category

template<typename Container >
using openscenario_interpreter::iterator::CircularIterator< Container >::iterator_category = std::forward_iterator_tag

◆ pointer

template<typename Container >
using openscenario_interpreter::iterator::CircularIterator< Container >::pointer = typename std::iterator_traits<ForwardIterator>::pointer

◆ reference

template<typename Container >
using openscenario_interpreter::iterator::CircularIterator< Container >::reference = typename std::add_lvalue_reference<value_type>::type

◆ value_type

template<typename Container >
using openscenario_interpreter::iterator::CircularIterator< Container >::value_type = typename std::iterator_traits<ForwardIterator>::value_type

Constructor & Destructor Documentation

◆ CircularIterator()

template<typename Container >
openscenario_interpreter::iterator::CircularIterator< Container >::CircularIterator ( ForwardIterator  begin,
ForwardIterator  end,
ForwardIterator  current 
)
inlineexplicit

Member Function Documentation

◆ operator ForwardConstIterator()

template<typename Container >
openscenario_interpreter::iterator::CircularIterator< Container >::operator ForwardConstIterator ( ) const
inline

◆ operator ForwardIterator()

template<typename Container >
openscenario_interpreter::iterator::CircularIterator< Container >::operator ForwardIterator ( )
inline

◆ operator*()

template<typename Container >
reference openscenario_interpreter::iterator::CircularIterator< Container >::operator* ( ) const
inline

◆ operator++() [1/2]

template<typename Container >
auto& openscenario_interpreter::iterator::CircularIterator< Container >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename Container >
auto openscenario_interpreter::iterator::CircularIterator< Container >::operator++ ( int  )
inline

◆ operator=()

template<typename Container >
CircularIterator& openscenario_interpreter::iterator::CircularIterator< Container >::operator= ( const ForwardIterator &  iterator)
inline

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