STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::repetitive_sequence< T > Class Template Reference

A sequence that repeats itself every 'repeat' elements. More...

Public Member Functions

 repetitive_sequence (T start, T st, size_t repeat)
 
 repetitive_sequence (repetitive_sequence const &seq, const std::size_t offset)
 Creates a functor that is initialized to generate elements beginning at the offset position in the sequence. More...
 
operator() (void)
 

Public Types

using state_type = std::true_type
 

Detailed Description

template<typename T>
class stapl::repetitive_sequence< T >

A sequence that repeats itself every 'repeat' elements.

Template Parameters
Tvalue type of the used counter for the sequence.

This differs from the block_sequence by providing the start value and the number of elements before the repeat occurs while block_sequence accepts the start and end values of the sequence to be repeated.

Constructor & Destructor Documentation

◆ repetitive_sequence()

template<typename T >
stapl::repetitive_sequence< T >::repetitive_sequence ( repetitive_sequence< T > const &  seq,
const std::size_t  offset 
)

Creates a functor that is initialized to generate elements beginning at the offset position in the sequence.

Parameters
seqThe sequence functor is passed in to allow offset-independent state to be copied.
offsetThe offset to be copied.

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