CircularBuffer.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 
14 #ifndef CIRCULARBUFFER_H
15 #define CIRCULARBUFFER_H
16 
17 #include "NTuple.h"
18 
19 namespace hippodraw {
20 
29 {
30 
31  private:
32 
35  unsigned int m_capacity;
36 
39  unsigned int m_next_row;
40 
45 
48  CircularBuffer & operator= ( const CircularBuffer & rhs );
49 
54  void incrementRowIndex ();
55 
56  public:
57 
60  CircularBuffer ( const std::string & name );
61 
64  CircularBuffer ( const std::vector < std::string > & labels );
65 
69  CircularBuffer ( const CircularBuffer & nt);
70 
73  CircularBuffer ( unsigned int n );
74 
77  CircularBuffer ();
78 
81  virtual void clear();
82 
89  virtual void addRow ( const std::vector<double> & v );
90 
93  virtual void reserve ( unsigned int count );
94 
95 };
96 
97 } // namespace hippodraw
98 
99 #endif // CIRCULARBUFFER_H

Generated for HippoDraw Class Library by doxygen