RTuple.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 
14 #ifndef RTUPLE_H
15 #define RTUPLE_H
16 
17 #ifdef _MSC_VER
18 # pragma warning(disable:4290) // exception spec ignored except to indicate
19 #endif
20 
21 #include "DataSource.h"
22 
23 namespace hippodraw {
24 
31 {
32 
33  private:
34 
39  std::vector< std::vector<double> *> m_data;
40 
44  RTuple ( const RTuple & nt);
45 
46  public:
47 
50  RTuple ( const std::vector < std::string > & labels );
51 
56  RTuple ( unsigned int n );
57 
60  virtual ~RTuple();
61 
62  virtual void copy ( const DataSource & other );
63 
67  virtual void clear();
68  virtual void reserve ( unsigned int count );
69 
72  virtual bool empty () const;
73 
76  virtual unsigned int rows () const;
77 
84  virtual void addRow ( const std::vector<double> & v );
85 
91  virtual const std::vector < double > & getRow ( unsigned int index ) const;
92 
93  virtual double
94  operator [] ( std::vector < unsigned int > & indices ) const;
95 
96  virtual double valueAt ( unsigned int row, unsigned int column ) const;
97 
98 };
99 
100 } // namespace hippodraw
101 
102 #endif // RTUPLE_H

Generated for HippoDraw Class Library by doxygen