00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef EVTAMPINDEX_HH
00022 #define EVTAMPINDEX_HH
00023
00024 #include <vector>
00025
00026 class EvtAmpIndex {
00027
00028 friend class EvtAmpSubIndex;
00029
00030 public:
00031
00032 EvtAmpIndex(std::vector<int> ind);
00033 virtual ~EvtAmpIndex() {}
00034
00035 void reset();
00036 bool next();
00037
00038 int index();
00039
00040 private:
00041
00042 std::vector<int> _ind;
00043 int _size;
00044 std::vector<int> _state;
00045 std::vector<int> _nstate;
00046
00047 };
00048
00049
00050 #endif
00051