SLIDE  3.0.0
A simulator for lithium-ion battery pack degradation
Loading...
Searching...
No Matches
slide::FixedDataIter< T, extrapolation > Class Template Reference

#include <FixedData.hpp>

Public Types

using iterator_category = std::input_iterator_tag
 < For more information, see: https://internalpointers.com/post/writing-custom-iterators-modern-cpp More...
 
using difference_type = int
 
using value_type = T
 
using pointer = value_type *
 
using reference = value_type &
 

Public Member Functions

 FixedDataIter (FixedData< T, extrapolation > *const f_data_ptr_, int n_)
 
FixedDataIteroperator++ ()
 
FixedDataIter operator++ (int)
 
FixedDataIteroperator-- ()
 
FixedDataIter operator-- (int)
 
value_type operator[] (int i)
 
const value_type operator* () const
 

Friends

bool operator== (const FixedDataIter &a, const FixedDataIter &b)
 
bool operator!= (const FixedDataIter &a, const FixedDataIter &b)
 
FixedDataIter operator+ (const FixedDataIter &a, const int b)
 
difference_type operator- (const FixedDataIter &a, const FixedDataIter &b)
 

Member Typedef Documentation

◆ difference_type

template<typename T , bool extrapolation = true>
using slide::FixedDataIter< T, extrapolation >::difference_type = int

◆ iterator_category

template<typename T , bool extrapolation = true>
using slide::FixedDataIter< T, extrapolation >::iterator_category = std::input_iterator_tag

◆ pointer

template<typename T , bool extrapolation = true>
using slide::FixedDataIter< T, extrapolation >::pointer = value_type *

◆ reference

template<typename T , bool extrapolation = true>
using slide::FixedDataIter< T, extrapolation >::reference = value_type &

◆ value_type

template<typename T , bool extrapolation = true>
using slide::FixedDataIter< T, extrapolation >::value_type = T

Constructor & Destructor Documentation

◆ FixedDataIter()

template<typename T , bool extrapolation = true>
slide::FixedDataIter< T, extrapolation >::FixedDataIter ( FixedData< T, extrapolation > *const  f_data_ptr_,
int  n_ 
)
inline

Member Function Documentation

◆ operator*()

template<typename T , bool extrapolation = true>
const value_type slide::FixedDataIter< T, extrapolation >::operator* ( ) const
inline

◆ operator++() [1/2]

template<typename T , bool extrapolation = true>
FixedDataIter & slide::FixedDataIter< T, extrapolation >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename T , bool extrapolation = true>
FixedDataIter slide::FixedDataIter< T, extrapolation >::operator++ ( int  )
inline

◆ operator--() [1/2]

template<typename T , bool extrapolation = true>
FixedDataIter & slide::FixedDataIter< T, extrapolation >::operator-- ( )
inline

◆ operator--() [2/2]

template<typename T , bool extrapolation = true>
FixedDataIter slide::FixedDataIter< T, extrapolation >::operator-- ( int  )
inline

◆ operator[]()

template<typename T , bool extrapolation = true>
value_type slide::FixedDataIter< T, extrapolation >::operator[] ( int  i)
inline

Friends And Related Function Documentation

◆ operator!=

template<typename T , bool extrapolation = true>
bool operator!= ( const FixedDataIter< T, extrapolation > &  a,
const FixedDataIter< T, extrapolation > &  b 
)
friend

◆ operator+

template<typename T , bool extrapolation = true>
FixedDataIter operator+ ( const FixedDataIter< T, extrapolation > &  a,
const int  b 
)
friend

◆ operator-

template<typename T , bool extrapolation = true>
difference_type operator- ( const FixedDataIter< T, extrapolation > &  a,
const FixedDataIter< T, extrapolation > &  b 
)
friend

◆ operator==

template<typename T , bool extrapolation = true>
bool operator== ( const FixedDataIter< T, extrapolation > &  a,
const FixedDataIter< T, extrapolation > &  b 
)
friend

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