fix minitoc/heading error
[vspell.git] / libvspell / cgen.h
blob4e0d5d6855f3c12b6758f80b5322f7b24a86181f
1 // -*- tab-width: 2 mode: c++ -*-
3 #ifndef __CGEN_H__
4 #define __CGEN_H__
6 #ifndef __SPELL_H__
7 #include "spell.h"
8 #endif
10 #ifndef __VECTOR__
11 #include <vector>
12 #endif
14 /**
15 Combination Generator.
16 It is used to generate combinations ;)
20 class CGen
22 private:
23 std::vector<uint> limit,iter;
24 int nr_limit,cur;
26 public:
27 void init(const std::vector<uint> &limit);
28 bool step(std::vector<uint> &pos);
29 void done();
32 #endif