Sleipnir C++ API
Loading...
Searching...
No Matches
sleipnir::VariableBlock< Mat >::iterator Class Reference

#include <sleipnir/autodiff/VariableBlock.hpp>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = Variable
 
using difference_type = std::ptrdiff_t
 
using pointer = Variable *
 
using reference = Variable &
 

Public Member Functions

 iterator (VariableBlock< Mat > *mat, int index)
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (const iterator &) const =default
 
reference operator* ()
 

Member Typedef Documentation

◆ difference_type

template<typename Mat >
using sleipnir::VariableBlock< Mat >::iterator::difference_type = std::ptrdiff_t

◆ iterator_category

template<typename Mat >
using sleipnir::VariableBlock< Mat >::iterator::iterator_category = std::forward_iterator_tag

◆ pointer

template<typename Mat >
using sleipnir::VariableBlock< Mat >::iterator::pointer = Variable*

◆ reference

template<typename Mat >
using sleipnir::VariableBlock< Mat >::iterator::reference = Variable&

◆ value_type

template<typename Mat >
using sleipnir::VariableBlock< Mat >::iterator::value_type = Variable

Constructor & Destructor Documentation

◆ iterator()

template<typename Mat >
sleipnir::VariableBlock< Mat >::iterator::iterator ( VariableBlock< Mat > *  mat,
int  index 
)
inline

Member Function Documentation

◆ operator*()

template<typename Mat >
reference sleipnir::VariableBlock< Mat >::iterator::operator* ( )
inline

◆ operator++() [1/2]

template<typename Mat >
iterator & sleipnir::VariableBlock< Mat >::iterator::operator++ ( )
inline

◆ operator++() [2/2]

template<typename Mat >
iterator sleipnir::VariableBlock< Mat >::iterator::operator++ ( int  )
inline

◆ operator==()

template<typename Mat >
bool sleipnir::VariableBlock< Mat >::iterator::operator== ( const iterator ) const
default

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