alpaqa no-casadi-dep
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
enumerate_t< Rng >::iter_t Struct Reference

#include <alpaqa/util/enumerate.hpp>

Detailed Description

template<class Rng>
struct alpaqa::util::enumerate_t< Rng >::iter_t

Definition at line 23 of file enumerate.hpp.

+ Collaboration diagram for enumerate_t< Rng >::iter_t:

Public Types

using index_t = std::ranges::range_difference_t< Rng >
 
using difference_type = std::ptrdiff_t
 
using value_type = std::tuple< index_t, decltype(*it)>
 

Public Member Functions

 iter_t ()=default
 
 iter_t (begin_t &&it)
 
bool operator!= (sentinel_t s) const
 
bool operator== (sentinel_t s) const
 
iter_toperator++ ()
 
iter_t operator++ (int) const
 
value_type operator* () const
 

Public Attributes

index_t index {}
 
begin_t it
 

Member Typedef Documentation

◆ index_t

template<class Rng >
using index_t = std::ranges::range_difference_t<Rng>

Definition at line 28 of file enumerate.hpp.

◆ difference_type

template<class Rng >
using difference_type = std::ptrdiff_t

Definition at line 32 of file enumerate.hpp.

◆ value_type

template<class Rng >
using value_type = std::tuple<index_t, decltype(*it)>

Definition at line 33 of file enumerate.hpp.

Constructor & Destructor Documentation

◆ iter_t() [1/2]

template<class Rng >
iter_t ( )
default

◆ iter_t() [2/2]

template<class Rng >
iter_t ( begin_t &&  it)
inline

Definition at line 26 of file enumerate.hpp.

Member Function Documentation

◆ operator!=()

template<class Rng >
bool operator!= ( sentinel_t  s) const
inline

Definition at line 35 of file enumerate.hpp.

◆ operator==()

template<class Rng >
bool operator== ( sentinel_t  s) const
inline

Definition at line 36 of file enumerate.hpp.

◆ operator++() [1/2]

template<class Rng >
iter_t & operator++ ( )
inline

Definition at line 41 of file enumerate.hpp.

◆ operator++() [2/2]

template<class Rng >
iter_t operator++ ( int  ) const
inline

Definition at line 46 of file enumerate.hpp.

◆ operator*()

template<class Rng >
value_type operator* ( ) const
inline

Definition at line 52 of file enumerate.hpp.

Member Data Documentation

◆ index

template<class Rng >
index_t index {}

Definition at line 29 of file enumerate.hpp.

◆ it

template<class Rng >
begin_t it

Definition at line 30 of file enumerate.hpp.


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