OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::InfiniteList< Type > Class Template Reference

#include <InfiniteList.hpp>

Classes

class  Iterator
 

Public Types

using value_type = Type
 
using iterator = Iterator
 

Public Member Functions

SIV3D_NODISCARD_CXX20 InfiniteList (Type startValue=0, Type step=1)
 
iterator begin () const
 
iterator end () const
 
value_type startValue () const
 
value_type step () const
 
template<class Fty >
auto filter (Fty f) const
 
template<class Fty >
auto map (Fty f) const
 
Array< value_typetake (size_t n) const
 
template<class Fty >
Array< value_typetake_while (Fty f) const
 

Member Typedef Documentation

◆ iterator

template<class Type >
using s3d::InfiniteList< Type >::iterator = Iterator

◆ value_type

template<class Type >
using s3d::InfiniteList< Type >::value_type = Type

Constructor & Destructor Documentation

◆ InfiniteList()

template<class Type >
SIV3D_NODISCARD_CXX20 s3d::InfiniteList< Type >::InfiniteList ( Type  startValue = 0,
Type  step = 1 
)

Member Function Documentation

◆ begin()

template<class Type >
iterator s3d::InfiniteList< Type >::begin ( ) const

◆ end()

template<class Type >
iterator s3d::InfiniteList< Type >::end ( ) const

◆ filter()

template<class Type >
template<class Fty >
auto s3d::InfiniteList< Type >::filter ( Fty  f) const

◆ map()

template<class Type >
template<class Fty >
auto s3d::InfiniteList< Type >::map ( Fty  f) const

◆ startValue()

template<class Type >
value_type s3d::InfiniteList< Type >::startValue ( ) const

◆ step()

template<class Type >
value_type s3d::InfiniteList< Type >::step ( ) const

◆ take()

template<class Type >
Array<value_type> s3d::InfiniteList< Type >::take ( size_t  n) const

◆ take_while()

template<class Type >
template<class Fty >
Array<value_type> s3d::InfiniteList< Type >::take_while ( Fty  f) const

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