PyNTuple.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _PyNTuple_H_
15 #define _PyNTuple_H_
16 
17 #include "datasrcs/NTuple.h"
18 
19 namespace hippodraw {
20 
28 class PyNTuple : public NTuple
29 {
30 private:
31 
32 public:
33 
36  explicit PyNTuple ( const std::vector < std::string > & labels );
37 
42  PyNTuple ( unsigned int n );
43 
46  PyNTuple ( const PyNTuple & );
47 
50  PyNTuple ( const NTuple & );
51 
54  PyNTuple ( );
55 
58  virtual void setTitle ( const std::string & title );
59 
60  virtual int addColumn ( const std::string & label,
61  const std::vector < float > & column );
62 
63  virtual int addColumn ( const std::string & label,
64  const std::vector < double > & column );
65 
66  virtual void replaceColumn ( unsigned int i,
67  const std::vector < double > & column );
68 
69  virtual void replaceColumn ( const std::string & label,
70  const std::vector < double > & column );
71 
72  virtual void addRow ( const std::vector < double > & row );
73 
74  virtual void clear ();
75 
76  virtual void append ( const DataSource * source );
77 
78 };
79 
80 } // namespace hippodraw
81 
82 #endif // _PyNTuple_H_
unsigned int i
virtual int addColumn(const std::string &label, const std::vector< float > &column)
Definition: PyNTuple.cxx:89
virtual void append(const DataSource *source)
Appends the data from the source.
Definition: PyNTuple.cxx:171
column
The column indices for 2 dimension data point tuple.
const std::string & title() const
Returns a const reference to the title of the data source.
Definition: DataSource.cxx:141
hippodraw::NTuple class interface.
virtual void setTitle(const std::string &title)
Sets the title of the DataSource.
Definition: PyNTuple.cxx:61
A DataSource class implemented with std::vector&lt;double&gt; to store the column data. ...
Definition: NTuple.h:33
virtual void clear()
Clears the NTuple.
Definition: PyNTuple.cxx:162
virtual void addRow(const std::vector< double > &row)
Adds a row to the end of the ntuple.
Definition: PyNTuple.cxx:141
virtual void replaceColumn(unsigned int i, const std::vector< double > &column)
Replaces the data in column col.
Definition: PyNTuple.cxx:110
A wrapper for NTuple, so that when NTuple is used in Qt based application, the application object can...
Definition: PyNTuple.h:28
PyNTuple()
The default constructor.
Definition: PyNTuple.cxx:54
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen