1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef __SEQUENCEDETECTOR_H__
- #define __SEQUENCEDETECTOR_H__
- class CSequenceDetector
- {
- public:
- CSequenceDetector(int nLimit);
- ~CSequenceDetector();
- void Reset();
- CSequenceDetector& operator+= (int nValue);
- int GetLength() const;
- int GetValue(int nIndex) const;
- int GetSum() const;
- protected:
- private:
- int m_Limit;
- int m_Count;
- bool *m_pDisabled;
- int *m_pArray;
- };
- #endif
|