Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T > Class Template Reference

Template class for a Table of 1 thru 9 columns of arbitrary type. More...

#include <TableTem.h>

Inheritance diagram for Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >:

Inheritance graph
[legend]
Collaboration diagram for Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Column::InvalidColumn InvalidColumn
typedef Col1T::ColElemType Col1ElemType
typedef Col2T::ColElemType Col2ElemType
typedef Col3T::ColElemType Col3ElemType
typedef Col4T::ColElemType Col4ElemType
typedef Col5T::ColElemType Col5ElemType
typedef Col6T::ColElemType Col6ElemType
typedef Col7T::ColElemType Col7ElemType
typedef Col8T::ColElemType Col8ElemType
typedef Col9T::ColElemType Col9ElemType

Public Member Functions

 TableTem (int size)
 columns reserve memory for size items, but table is empty
 TableTem (const Col1T &c1, const Col2T &c2=InvalidColumn(), const Col3T &c3=InvalidColumn(), const Col4T &c4=InvalidColumn(), const Col5T &c5=InvalidColumn(), const Col6T &c6=InvalidColumn(), const Col7T &c7=InvalidColumn(), const Col8T &c8=InvalidColumn(), const Col9T &c9=InvalidColumn())
virtual ~TableTem ()
void SetInfo (String info)
String GetInfo () const
void SetColName (int col, String name)
String GetColName (int col) const
void ReadColNames (String fileName, Util::Database *db)
void ReadColNames (Util::IOBuffer *buffer)
bool WriteColNames (String fileName, Util::Database *db)
bool WriteColNames (Util::IOBuffer *buffer)
int Capacity () const
bool Reserve (int newCapacity, bool copyData)
bool ReserveMin (int minimalCapacity, bool copyData)
Col1ElemType Get1 (int index) const
Col2ElemType Get2 (int index) const
Col3ElemType Get3 (int index) const
Col4ElemType Get4 (int index) const
Col5ElemType Get5 (int index) const
Col6ElemType Get6 (int index) const
Col7ElemType Get7 (int index) const
Col8ElemType Get8 (int index) const
Col9ElemType Get9 (int index) const
void Set1 (int index, Col1ElemType value)
void Set2 (int index, Col2ElemType value)
void Set3 (int index, Col3ElemType value)
void Set4 (int index, Col4ElemType value)
void Set5 (int index, Col5ElemType value)
void Set6 (int index, Col6ElemType value)
void Set7 (int index, Col7ElemType value)
void Set8 (int index, Col8ElemType value)
void Set9 (int index, Col9ElemType value)
bool Add (Col1ElemType e1)
bool Add (Col1ElemType e1, Col2ElemType e2)
bool Add (Col1ElemType e1, Col2ElemType e2, Col3ElemType e3)
bool Add (Col1ElemType e1, Col2ElemType e2, Col3ElemType e3, Col4ElemType e4)
bool Add (Col1ElemType e1, Col2ElemType e2, Col3ElemType e3, Col4ElemType e4, Col5ElemType e5)
bool Add (Col1ElemType e1, Col2ElemType e2, Col3ElemType e3, Col4ElemType e4, Col5ElemType e5, Col6ElemType e6)
bool Add (Col1ElemType e1, Col2ElemType e2, Col3ElemType e3, Col4ElemType e4, Col5ElemType e5, Col6ElemType e6, Col7ElemType e7)
bool Add (Col1ElemType e1, Col2ElemType e2, Col3ElemType e3, Col4ElemType e4, Col5ElemType e5, Col6ElemType e6, Col7ElemType e7, Col8ElemType e8)
bool Add (Col1ElemType e1, Col2ElemType e2, Col3ElemType e3, Col4ElemType e4, Col5ElemType e5, Col6ElemType e6, Col7ElemType e7, Col8ElemType e8, Col9ElemType e9)
Col1ElemType Get1AtCursor ()
Col2ElemType Get2AtCursor ()
Col3ElemType Get3AtCursor ()
Col4ElemType Get4AtCursor ()
Col5ElemType Get5AtCursor ()
Col6ElemType Get6AtCursor ()
Col7ElemType Get7AtCursor ()
Col8ElemType Get8AtCursor ()
Col9ElemType Get9AtCursor ()
virtual void Dump (int from=0, int to=-1) const
Col1T * GetColumn1 ()
Col2T * GetColumn2 ()
Col3T * GetColumn3 ()
Col4T * GetColumn4 ()
Col5T * GetColumn5 ()
Col6T * GetColumn6 ()
Col7T * GetColumn7 ()
Col8T * GetColumn8 ()
Col9T * GetColumn9 ()
const Col1T * GetColumn1 () const
const Col2T * GetColumn2 () const
const Col3T * GetColumn3 () const
const Col4T * GetColumn4 () const
const Col5T * GetColumn5 () const
const Col6T * GetColumn6 () const
const Col7T * GetColumn7 () const
const Col8T * GetColumn8 () const
const Col9T * GetColumn9 () const
void Append (const TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T > *t)

Private Attributes

Col1T mCol1
Col2T mCol2
Col3T mCol3
Col4T mCol4
Col5T mCol5
Col6T mCol6
Col7T mCol7
Col8T mCol8
Col9T mCol9
std::vector< StringmColNames
String mInfo

Detailed Description

template<class Col1T, class Col2T = Column::InvalidColumn, class Col3T = Column::InvalidColumn, class Col4T = Column::InvalidColumn, class Col5T = Column::InvalidColumn, class Col6T = Column::InvalidColumn, class Col7T = Column::InvalidColumn, class Col8T = Column::InvalidColumn, class Col9T = Column::InvalidColumn>
class Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >

Template class for a Table of 1 thru 9 columns of arbitrary type.

Retrieving an element from the table (C in [1,9]):

Definition at line 38 of file TableTem.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 11:21:19 2010 for ImpalaSrc by  doxygen 1.5.1