Inheritance diagram for CdbBdbNTupleP< E >:

Public Types | |
| typedef E | ElementType |
Public Member Functions | |
| virtual d_ULong | rows () const=0 |
| Get the number of rows in the tuple. | |
| virtual CdbStatus | get_row (std::vector< ElementType > &theRow, const d_ULong theNumber) const=0 |
| Get a row at a specified position. | |
| virtual CdbStatus | append_row (const std::vector< ElementType > &theRow)=0 |
| Append a row by the end of an existing list. | |
| virtual CdbStatus | repack ()=0 |
| Repack the internal storage of the tuple. | |
Protected Member Functions | |
| CdbBdbNTupleP (d_ULong theNumberOfColumns, const std::string &theName, const std::string &theDescription, const std::vector< std::string > &theColumnNames) | |
| Constructor. | |
This class adds a type safe interface of the n-tuple model by prividing a set of virtual methods to access or modify the contents of a tuple.
RESTRICTIONS:
(1) Rows are numbered beginning from 0.
(2) In all operations with rows, a row is defined through a STD vector of element type. The number of elements in the vector must be exactly the number of columns passed to the constructor.
Definition at line 23 of file CdbBdbNTupleP.ddl.
|
|||||
|
Definition at line 27 of file CdbBdbNTupleP.ddl. |
|
||||||||||||||||||||||||
|
Constructor.
Definition at line 49 of file CdbBdbNTupleP.ddl. |
|
||||||||||
|
Append a row by the end of an existing list. This method has to be implemented by a subclass.
CdbStatus::Success - successfull completion. The vector passed as a parameter will be filled exactly the same number of elements as the number of columns in the tuple. CdbStatus::IllegalParameters - an incomplete row with wrong number of elements passed to the method. The number of elements must match the number of columns. CdbStatus::* - any other problem occured preventing the successfull completion of the operation. The vector passed as a parameter won't be modified. Also see the RESTRICTIONS section at the defintion of the class for more detailed information on values of parameters. |
|
||||||||||||||||
|
Get a row at a specified position. This method has to be implemented by a subclass.
CdbStatus::Success - successfull completion. The vector passed as a parameter will be filled exactly the same number of elements as the number of columns in the tuple. CdbStatus::NotFound - a row with specified number is not found. The vector passed as a parameter won't be modified. CdbStatus::* - any other problem occured preventing the successfull completion of the operation. The vector passed as a parameter won't be modified. Also see the RESTRICTIONS section at the defintion of the class for more detailed information on values of parameters. |
|
|||||||||
|
Repack the internal storage of the tuple. This operation is meant to optimize the use of the internal storage of the tuple by making the storage size equal to the actual number of elements stored in the tuple.
Implemented in CdbBdbNTupleSimpleImplP< E >, and CdbBdbNTupleSimpleImplP_ooVString. |
|
|||||||||
|
Get the number of rows in the tuple.
Implemented in CdbBdbNTupleSimpleImplP< E >, and CdbBdbNTupleSimpleImplP_ooVString. |
1.3-rc3