#include <CdbNTuple.hh>
Inheritance diagram for CdbNTuple< T, NCOL >:

Public Types | |
| typedef T | element_type |
| enum | { ncol = NCOL } |
Public Member Functions | |
| virtual | ~CdbNTuple () |
| The destructor. | |
| virtual CdbNTuple< T, NCOL > * | clone () const=0 |
| Make a ("deep") clone of a tuple. | |
| virtual unsigned int | rows () const=0 |
| Get the current size (the number of rows) of n-tuple. | |
| virtual CdbStatus | set_rows (unsigned int theNewSize)=0 |
| Resize the current size (the number of rows) of n-tuple. | |
| virtual CdbStatus | set_rows (unsigned int theNewSize, const T &thePrototype)=0 |
| Resize the current size (the number of rows) of n-tuple using a prototype. | |
| virtual CdbStatus | append_row (const std::vector< T > &theRow)=0 |
| Append a new row. | |
| virtual CdbStatus | insert_row (const std::vector< T > &theRow, unsigned int theRowNumber)=0 |
| Insert a whole row of elements after the specified one. | |
| virtual CdbStatus | replace_row (const std::vector< T > &theRow, unsigned int theRowNumber)=0 |
| Replace a whole row of elements at specified position. | |
| virtual CdbStatus | get_row (std::vector< T > &theRow, unsigned int theRowNumber) const=0 |
| Get a whole row of elements. | |
| virtual CdbStatus | get_column (std::vector< T > &theColumn, unsigned int theColumnNumber) const=0 |
| Get a whole column by its number. | |
| virtual CdbStatus | get_column (std::vector< T > &theColumn, const std::string &theColumnName) const=0 |
| Get a whole column by its name. | |
| virtual CdbStatus | get_element (T &theValue, unsigned int theRowNumber, unsigned int theColumnNumber) const=0 |
| Read an element (specify column by its number). | |
| virtual CdbStatus | get_element (T &theValue, unsigned int theRowNumber, const std::string &theColumnName) const=0 |
| Read an element (specify column by its name). | |
| virtual CdbStatus | set_element (const T &theValue, unsigned int theRowNumber, unsigned int theColumnNumber)=0 |
| Update a single an element (specify column by its number). | |
| virtual CdbStatus | set_element (const T &theValue, unsigned int theRowNumber, const std::string &theColumnName)=0 |
| Update a single an element (specify column by its name). | |
| virtual CdbStatus | sort (const CdbNTupleIsLessComparator< T, NCOL > *theComparatorPtr)=0 |
| Sort rows using specified comparator. | |
Protected Member Functions | |
| CdbNTuple () | |
| The default constructor. | |
| CdbNTuple (const std::string &theName, const std::string &theDescription) | |
| The constructor. | |
| CdbNTuple (const std::vector< std::string > &theCollumnNames, const std::string &theName, const std::string &theDescription) | |
| The constructor. | |
| CdbNTuple (const CdbNTuple< T, NCOL > &theOther) | |
| The copy constructor. | |
| CdbNTuple< T, NCOL > & | operator= (const CdbNTuple< T, NCOL > &theOther) |
| The assignment operator. | |
Friends | |
| class | CdbCPtrBase< CdbNTuple< T, NCOL > > |
This class provides a base interface of and common infrustructure for data stored in this n-tuple facility.
Specifically the roles of this class are:
Notes:
Definition at line 43 of file CdbNTuple.hh.
|
|||||
|
Definition at line 49 of file CdbNTuple.hh. |
|
|||||
|
Definition at line 51 of file CdbNTuple.hh. |
|
|||||||||
|
The default constructor.
Definition at line 14 of file CdbNTuple.cc. |
|
||||||||||||||||
|
The constructor. The constructor will also assign default names to the columns. These names will be derived from relative locations of the corresponding columns in a row. For example, for an n-tuple of the width of 4 we would have: "#0" "#1" "#2" "#3" Definition at line 21 of file CdbNTuple.cc. |
|
||||||||||||||||||||
|
The constructor. This constructor can be used to specify the names of columns. The vector of names passed as the first parameter can be of any length, where it would be shorter or longer than the width of n-tuple. Notes:
Definition at line 29 of file CdbNTuple.cc. |
|
||||||||||
|
The copy constructor. Copy the local context. Definition at line 39 of file CdbNTuple.cc. |
|
|||||||||
|
The destructor. Just to enforce the virtual destructor. Definition at line 44 of file CdbNTuple.cc. |
|
||||||||||
|
Append a new row. A vector passed as the parameter would extend n-tuple's size by one. Notes:
Implemented in CdbNTupleSimpleImpl< T, NCOL >. Referenced by CdbRooNTupleConversionImpl_Helper< PERSISTENT, T, NCOL, ELEMENT_CONVERSION_RULES >::to_transient(), and CdbBdbNTupleConversionImpl_Helper< PERSISTENT, T, NCOL, ELEMENT_CONVERSION_RULES >::to_transient(). |
|
|||||||||
|
Make a ("deep") clone of a tuple. The method is defined here to cope with a hierarchy of possible implementations of the current n-tuple interface. Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||||||||
|
Get a whole column by its name.
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||||||||
|
Get a whole column by its number.
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||||||||||||
|
Read an element (specify column by its name).
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||||||||||||
|
Read an element (specify column by its number).
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||||||||
|
Get a whole row of elements.
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||||||||
|
Insert a whole row of elements after the specified one.
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||
|
The assignment operator. Copy the local context. Definition at line 49 of file CdbNTuple.cc. References CdbNTupleBase::operator=(). Referenced by CdbNTupleSimpleImpl< T, NCOL >::operator=(). |
|
||||||||||||||||
|
Replace a whole row of elements at specified position.
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
|||||||||
|
Get the current size (the number of rows) of n-tuple.
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||||||||||||
|
Update a single an element (specify column by its name).
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||||||||||||
|
Update a single an element (specify column by its number).
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||||||||
|
Resize the current size (the number of rows) of n-tuple using a prototype. Unlike a previously defined method, this one would use a user defined value of a prototype object to fill the new elements if new rows are to be created. Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||
|
Resize the current size (the number of rows) of n-tuple. Notes:
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
||||||||||
|
Sort rows using specified comparator.
Implemented in CdbNTupleSimpleImpl< T, NCOL >. |
|
|||||
|
Definition at line 45 of file CdbNTuple.hh. |
1.3-rc3