proxygen
folly::gen::detail::SeqWithStepImpl< Value, Distance > Class Template Reference

#include <Base-inl.h>

Public Member Functions

 SeqWithStepImpl (Value end, Distance step)
 
bool test (const Value &current) const
 
void step (Value &current) const
 

Static Public Attributes

static constexpr bool infinite = false
 

Private Attributes

Value end_
 
Distance step_
 

Detailed Description

template<class Value, class Distance>
class folly::gen::detail::SeqWithStepImpl< Value, Distance >

Definition at line 362 of file Base-inl.h.

Constructor & Destructor Documentation

template<class Value, class Distance>
folly::gen::detail::SeqWithStepImpl< Value, Distance >::SeqWithStepImpl ( Value  end,
Distance  step 
)
inlineexplicit

Definition at line 367 of file Base-inl.h.

constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
auto end(TestAdlIterable &instance)
Definition: ForeachTest.cpp:62
void step(Value &current) const
Definition: Base-inl.h:372

Member Function Documentation

template<class Value, class Distance>
void folly::gen::detail::SeqWithStepImpl< Value, Distance >::step ( Value &  current) const
inline

Definition at line 372 of file Base-inl.h.

372  {
373  current += step_;
374  }
int current
template<class Value, class Distance>
bool folly::gen::detail::SeqWithStepImpl< Value, Distance >::test ( const Value &  current) const
inline

Definition at line 369 of file Base-inl.h.

References end_.

369  {
370  return current <= end_;
371  }
int current

Member Data Documentation

template<class Value, class Distance>
Value folly::gen::detail::SeqWithStepImpl< Value, Distance >::end_
private

Definition at line 363 of file Base-inl.h.

template<class Value, class Distance>
constexpr bool folly::gen::detail::SeqWithStepImpl< Value, Distance >::infinite = false
static

Definition at line 375 of file Base-inl.h.

template<class Value, class Distance>
Distance folly::gen::detail::SeqWithStepImpl< Value, Distance >::step_
private

Definition at line 364 of file Base-inl.h.


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