Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
NumberSequence Class Reference

Description

A straight descending number sequence as basic test iterator.

It is built wrapping an opaque "state core" (of type CountDown).

Note
the "state core" is not accessible from the outside

Definition at line 126 of file iter-explorer-test.cpp.

Public Member Functions

 NumberSequence (uint start=0)
 
 NumberSequence (uint start, uint end)
 
- Public Member Functions inherited from IterStateWrapper< CountDown >
 IterStateWrapper (CountDown &&initialState)
 
 IterStateWrapper (CountDown const &initialState)
 
 IterStateWrapper ()
 
 operator bool () const
 
iter::CoreYield< CountDown > operator* () const
 
pointer operator-> () const
 
IterStateWrapperoperator++ ()
 
bool isValid () const
 
bool empty () const
 
 ENABLE_USE_IN_STD_RANGE_FOR_LOOPS (IterStateWrapper)
 

Additional Inherited Members

- Public Types inherited from IterStateWrapper< CountDown >
using value_type = meta::RefTraits< iter::CoreYield< CountDown > >::Value
 
using reference = meta::RefTraits< iter::CoreYield< CountDown > >::Reference
 
using pointer = meta::RefTraits< iter::CoreYield< CountDown > >::Pointer
 
- Protected Member Functions inherited from IterStateWrapper< CountDown >
CountDown & stateCore ()
 allow derived classes to access state representation
 
CountDown const & stateCore () const
 
void __throw_if_empty () const
 

Constructor & Destructor Documentation

◆ NumberSequence() [1/2]

NumberSequence ( uint  start = 0)
inlineexplicit

Definition at line 132 of file iter-explorer-test.cpp.

◆ NumberSequence() [2/2]

NumberSequence ( uint  start,
uint  end 
)
inline

Definition at line 135 of file iter-explorer-test.cpp.

+ Inheritance diagram for NumberSequence:
+ Collaboration diagram for NumberSequence:

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