#include <fibonacci_progression.h>
|
virtual void | advance () |
| Replaces (prev,current) with (current,current+prev)
|
|
virtual void | advance () |
| Advances the current value to the next value of the progression.
|
|
◆ FibonacciProgression()
dsac::design::FibonacciProgression::FibonacciProgression |
( |
long |
first = 0 , |
|
|
long |
second = 1 |
|
) |
| |
|
inline |
Constructs a Fibonacci sequence using the given first and second values
- Parameters
-
first | the first value of the sequence (default: 0) |
start | the second value of the sequence (default: 1) |
◆ advance()
virtual void dsac::design::FibonacciProgression::advance |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ prev
long dsac::design::FibonacciProgression::prev |
|
protected |
The documentation for this class was generated from the following file: