CluE  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
flippinggraycodebits.h
Go to the documentation of this file.
1 #ifndef FLIPPINGGRAYCODEBITS_H
2 #define FLIPPINGGRAYCODEBITS_H
3 
4 #include <cstring>
5 #include <vector>
6 
7 namespace CluE
8 {
16 {
17 public:
19  virtual ~GraycodeSequence();
20 
24  size_t next();
25 
29  size_t current() const;
30 private:
31  GraycodeSequence(size_t start);
33 
34  size_t next(size_t index);
35 
36  std::vector<size_t> startElement;
37  std::vector<int> currentPosition;
39 };
40 }
41 
42 #endif
std::vector< int > currentPosition
Returns the bits flipped in a Graycode sequence.
std::vector< size_t > startElement
size_t current() const
Returns the index of the current flipping bit.
size_t next()
Returns the index of the next flipping bit.