#include <progression.h>
|
| virtual void | advance () |
| | Advances the current value to the next value of the progression.
|
| |
◆ Progression()
| dsac::design::Progression::Progression |
( |
long |
start = 0 | ) |
|
|
inline |
Constructs a progression with given start value (default: 0)
- Parameters
-
| start | the first value of the progression |
◆ ~Progression()
| virtual dsac::design::Progression::~Progression |
( |
| ) |
|
|
inlinevirtual |
Destructs the progression.
◆ advance()
| virtual void dsac::design::Progression::advance |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ next_value()
| long dsac::design::Progression::next_value |
( |
| ) |
|
|
inline |
Returns the next value of the progression
- Returns
- the next value of the progression
◆ print_progression()
| void dsac::design::Progression::print_progression |
( |
int |
n | ) |
|
|
inline |
Prints the next n values of the progression, separate by spaces
- Parameters
-
| n | number of terms to print |
◆ current
| long dsac::design::Progression::current |
|
protected |
The documentation for this class was generated from the following file: