Logo Search packages:      
Sourcecode: poco version File versions  Download package

Poco::Data::Column< T > Class Template Reference

#include <Column.h>

Collaboration diagram for Poco::Data::Column< T >:

List of all members.

Public Types

typedef std::vector< T > DataVec
typedef DataVec::const_iterator Iterator
typedef DataVec::size_type Size

Public Member Functions

Iterator begin () const
 Returns iterator pointing to the beginning of data storage vector.
 Column (const MetaColumn &metaColumn, std::vector< T > *pData)
 Column (const Column &col)
DataVec & data ()
 Returns reference to contained data.
Iterator end () const
 Returns iterator pointing to the end of data storage vector.
std::size_t length () const
 Returns column maximum length.
const std::string & name () const
 Returns column name.
Columnoperator= (const Column &col)
 Assignment operator.
const T & operator[] (std::size_t row) const
 Returns the field value in specified row.
std::size_t position () const
 Returns column position.
std::size_t precision () const
void reset ()
 Clears and shrinks the storage.
Size rowCount () const
 Returns number of rows.
void swap (Column &other)
 Swaps the column with another one.
MetaColumn::ColumnDataType type () const
 Returns column type.
const T & value (std::size_t row) const
 Returns the field value in specified row.
 ~Column ()
 Destroys the Column.

Private Attributes

MetaColumn _metaColumn
Poco::SharedPtr< DataVec > _pData

Detailed Description

template<class T>
class Poco::Data::Column< T >

Column class is column data container. Data (a pointer to vector of contained values) is assigned to the class through either constructor or set() member function. Construction with null pointer is not allowed. This class owns the data assigned to it and deletes the storage on destruction.

Definition at line 54 of file Column.h.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index