Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
ext::sequence< IntegralType > Class Template Reference

Representation of integer sequence usable in foreach form of for loop. More...

#include <foreach.hpp>

Public Member Functions

 sequence (IntegralType first, IntegralType last)
 The constructor of the sequence based on the range. More...
 
 sequence (IntegralType size)
 Constructor of the sequence class based on the size. More...
 
virtual_pointer_to_integer< IntegralType > begin ()
 Getter of the begin iterator into the sequence. More...
 
virtual_pointer_to_integer< IntegralType > end ()
 Getter of the end iterator into the sequence. More...
 

Detailed Description

template<class IntegralType>
class ext::sequence< IntegralType >

Representation of integer sequence usable in foreach form of for loop.

The class provides begin and end iterators.

Constructor & Destructor Documentation

◆ sequence() [1/2]

template<class IntegralType >
ext::sequence< IntegralType >::sequence ( IntegralType  first,
IntegralType  last 
)
inline

The constructor of the sequence based on the range.

Parameters
firstthe start value of the sequence
lastthe end value of the sequence

◆ sequence() [2/2]

template<class IntegralType >
ext::sequence< IntegralType >::sequence ( IntegralType  size)
inline

Constructor of the sequence class based on the size.

Parameters
sizethe length of the sequence from zero

Member Function Documentation

◆ begin()

template<class IntegralType >
virtual_pointer_to_integer< IntegralType > ext::sequence< IntegralType >::begin ( )
inline

Getter of the begin iterator into the sequence.

Returns
iterator to the begining of the sequence
Here is the caller graph for this function:

◆ end()

template<class IntegralType >
virtual_pointer_to_integer< IntegralType > ext::sequence< IntegralType >::end ( )
inline

Getter of the end iterator into the sequence.

Returns
iterator to the end of the sequence
Here is the caller graph for this function:

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