Definition at line 16 of file NTuple.sip.
Public Member Functions | |
NTuple (const std::string &) | |
Constructs an NTuple object with name name. | |
NTuple (const char *) | |
Constructs an NTuple object with name name. | |
NTuple (const std::vector< std::string > &) | |
Constructor taking a vector of column labels as argument. | |
NTuple (const NTuple &) | |
The copy constructor creates an ntuple that is a copy of an existing one. | |
NTuple (const DataSource *) | |
A constructor that creates an ntuple from another DataSource object. | |
NTuple (unsigned int) | |
A constructor that creates an ntuple with n columns. | |
NTuple () | |
The default constructor creating an ntuple with 0 columns. | |
virtual | ~NTuple () |
The destructor. | |
virtual void | copy (const DataSource &) |
Copies rhs data. | |
virtual void | clear () |
Clears the NTuple. | |
virtual bool | empty () const |
Returns true , if NTuple is empty, i.e. | |
virtual void | addRow (const std::vector< double > &) throw ( DataSourceException ) |
Adds a row to the end of the ntuple. | |
virtual void | insertRow (unsigned int, const std::vector< double > &) |
Inserts a Row. | |
virtual void | eraseRow (unsigned int) |
Erases a row from the NTuple. | |
virtual const std::vector< double > & | getRow (unsigned int) const throw ( DataSourceException ) |
Returns a temporary vector of data elements in one row. | |
virtual void | reserve (unsigned int) |
int | addColumn (const std::string &, const std::vector< double > &) throw ( DataSourceException ) |
Adds a column to the end of the ntuple and returns the index to the added column. | |
void | replaceColumn (unsigned int, const std::vector< double > &) throw ( DataSourceException ) |
Replaces the data in column col. | |
void | replaceColumn (const std::string &, const std::vector< double > &) throw ( DataSourceException ) |
Replaces the column. | |
void | replaceRow (unsigned int, const std::vector< double > &) throw ( DataSourceException ) |
Replaces the data in the row i. | |
void | setLabels (const std::vector< std::string > &) |
Assigns the label to each column from the vector of strings. | |
virtual const std::vector< double > & | getColumn (unsigned int) const |
virtual std::vector< double > & | getColumn (unsigned int) throw ( DataSourceException ) |
Returns a non-const reference to column at the index index. | |
const std::vector< double > & | getColumn (const std::string &) const |
virtual unsigned int | indexOfMinElement (unsigned int) const |
virtual unsigned int | indexOfMaxElement (unsigned int) const |
virtual double | minElement (unsigned int) const |
Returns the value of the minimum element of column index. | |
virtual double | maxElement (unsigned int) const |
Returns the value of the maximum element of column index. | |
double | columnMin (const std::string &) const |
Returns minimum element in a column whose label is given by name. | |
double | columnMax (const std::string &) const |
Returns minimum element in a column whose label is given by name. | |
virtual void | notifyObservers () const |
void | setIntervalEnabled (bool=true) |
Sets interval counting to be enabled. | |
bool | isIntervalEnabled () const |
Returns true if interval counting is enabled, otherwise returns false. | |
void | setIntervalCount (int) |
Sets the interval count. | |
unsigned int | getIntervalCount () const |
Returns the current interval count. | |
virtual double | sum (unsigned int) const |
virtual unsigned | rows () const |
virtual int | indexOf (const std::string &) const |
bool | isValidLabel (const std::string &) const |
|
Constructs an NTuple object with name name.
|
|
Constructs an NTuple object with name name.
|
|
Constructor taking a vector of column labels as argument.
|
|
The copy constructor creates an ntuple that is a copy of an existing one.
|
|
A constructor that creates an ntuple from another DataSource object.
|
|
A constructor that creates an ntuple with n columns. Creates an NTuple with n columns. The objects will be empty, i.e. 0 rows. |
|
The default constructor creating an ntuple with 0 columns.
|
|
The destructor.
|
|
Adds a column to the end of the ntuple and returns the index to the added column. If the size of the input vector is the same as the size of the existing columns adds a copy of the input vector to then end of the NTuple. Gives the column the label label. Returns the index of the newly created column. If the size of the input vector differs from the size of existing columns, then throws a DataSourceException object. |
|
Adds a row to the end of the ntuple. If the size of the input vector is the same as the width of the ntuple, adds the row to the end of the ntuple and notifies its Observer objects. Otherwise, throws a DataSourceException object. Reimplemented in CircularBuffer. |
|
Clears the NTuple. Clears all the data elements of the NTuple. Does not change the other attributes or capacity. Reimplemented in CircularBuffer. |
|
Returns minimum element in a column whose label is given by name.
|
|
Returns minimum element in a column whose label is given by name.
|
|
Copies rhs data.
|
|
Returns has no rows. Implements DataSource. |
|
Erases a row from the NTuple. Removes the row index from the NTuple. Rows beyond the removal point move forward to fill the space. If index is out of range, and exception is thrown. |
|
|
|
Returns a non-const reference to column at the index index. index is in a valid range, returns a reference to the the column at index index. If index is not in a valid range, throws a DataSourceException object. |
|
|
|
Returns the current interval count.
|
|
Returns a temporary vector of data elements in one row. Returns a temporary vector with data elements copied from the NTuple row indexed by index. If index is out of range, throws a DataSourceException object. |
|
|
|
|
|
|
|
Inserts a Row. Adds a row before the existing row specified by index from the elements of v. |
|
Returns
|
|
|
|
Returns the value of the maximum element of column index.
|
|
Returns the value of the minimum element of column index.
|
|
|
|
Replaces the column. Replaces the column at the column with label label. This is a cnvienence member function for using indexOf() and replaceColumn ( unsigned int, const std::vector< double > & ). |
|
Replaces the data in column col. If index is in a valid range and if the size of data is the same as the existing column, then replaces the elements of the specified column with a copy of @ data elements. If index is not a valid range or the sizes differ, then throws a DataSourceException object. |
|
Replaces the data in the row i. If index is in a valid range and if the size of data is the same as the existing column, then replaces the elements of the specified column with a copy of @ data elements. If index is not a valid range or the sizes differ, then throws a DataSourceException object |
|
Reimplemented in CircularBuffer. |
|
Implements DataSource. |
|
Sets the interval count. One needs to call setIntervalEnabled for this to have effect. When interval counting is enabled, then only each number notifyObsevers messages will trigger an Observer::update message to the list of Observer objects. |
|
Sets interval counting to be enabled.
If yes is |
|
Assigns the label to each column from the vector of strings.
If the vector is the same size as the width of the ntuple, then it sets the label and returns Reimplemented from DataSource. |
|
|