ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Types | Public Member Functions | List of all members
ocpp::VectorOfUniquePtrIterator< T > Struct Template Reference

Implementation for the ForwardIteratorBase based on a vector of unique_ptr with type T. More...

#include <custom_iterators.hpp>

Inheritance diagram for ocpp::VectorOfUniquePtrIterator< T >:
ocpp::ForwardIteratorBase< T >

Public Types

using iterator_type = typename std::vector< std::unique_ptr< T > >::iterator
 
using base = ForwardIteratorBase< T >
 

Public Member Functions

 VectorOfUniquePtrIterator (iterator_type it)
 
T & deref () const override
 Get a reference to the value pointed to by the iterator. More...
 
void advance () override
 Increment the iterator once to the next position. More...
 
bool not_equal (const base &other) override
 Check for equality between this iterator and other. More...
 
virtual T & deref () const =0
 Get a reference to the value pointed to by the iterator. More...
 
virtual void advance ()=0
 Increment the iterator once to the next position. More...
 
virtual bool not_equal (const ForwardIteratorBase &other)=0
 Check for equality between this iterator and other. More...
 

Detailed Description

template<typename T>
struct ocpp::VectorOfUniquePtrIterator< T >

Implementation for the ForwardIteratorBase based on a vector of unique_ptr with type T.

Member Function Documentation

◆ advance()

template<typename T >
void ocpp::VectorOfUniquePtrIterator< T >::advance ( )
inlineoverridevirtual

Increment the iterator once to the next position.

Implements ocpp::ForwardIteratorBase< T >.

◆ deref()

template<typename T >
T & ocpp::VectorOfUniquePtrIterator< T >::deref ( ) const
inlineoverridevirtual

Get a reference to the value pointed to by the iterator.

Implements ocpp::ForwardIteratorBase< T >.

◆ not_equal()

template<typename T >
bool ocpp::VectorOfUniquePtrIterator< T >::not_equal ( const base other)
inlineoverridevirtual

Check for equality between this iterator and other.

Implements ocpp::ForwardIteratorBase< T >.


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