CluE
1.0
|
Returns the bits flipped in a Graycode sequence. More...
#include <flippinggraycodebits.h>
Public Member Functions | |
GraycodeSequence () | |
virtual | ~GraycodeSequence () |
size_t | next () |
Returns the index of the next flipping bit. More... | |
size_t | current () const |
Returns the index of the current flipping bit. More... | |
Private Member Functions | |
GraycodeSequence (size_t start) | |
size_t | next (size_t index) |
Private Attributes | |
GraycodeSequence * | gcs |
std::vector< size_t > | startElement |
std::vector< int > | currentPosition |
size_t | currentElement |
Returns the bits flipped in a Graycode sequence.
First numbers of a Graycode sequence: 000, 001 -> 0,011 -> 1, 010 -> 0, 110 -> 2, 111 -> 0, 101 -> 1, ... Algorithm output is: 0,1,0,2,0,1,...
Definition at line 15 of file flippinggraycodebits.h.
CluE::GraycodeSequence::GraycodeSequence | ( | ) |
Definition at line 6 of file flippinggraycodebits.cpp.
|
virtual |
Definition at line 14 of file flippinggraycodebits.cpp.
|
private |
size_t CluE::GraycodeSequence::next | ( | ) |
Returns the index of the next flipping bit.
Definition at line 21 of file flippinggraycodebits.cpp.
size_t CluE::GraycodeSequence::current | ( | ) | const |
Returns the index of the current flipping bit.
Definition at line 56 of file flippinggraycodebits.cpp.
|
private |
Definition at line 29 of file flippinggraycodebits.cpp.
|
private |
Definition at line 32 of file flippinggraycodebits.h.
|
private |
Definition at line 36 of file flippinggraycodebits.h.
|
private |
Definition at line 37 of file flippinggraycodebits.h.
|
private |
Definition at line 38 of file flippinggraycodebits.h.