Dv::Sql::Column Class Reference

A common base class representing a column in a row in a table or query result. More...

#include <column.h>

Inheritance diagram for Dv::Sql::Column:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Column (size_t i)
 Constructor.
size_t index () const
 The index of the column.

Private Attributes

size_t index_
 The index (0-based) of the column.

Detailed Description

A common base class representing a column in a row in a table or query result.

See also:
Dv::Sql::Table::Column
Dv::Sql::Row<>::Column

Definition at line 11 of file column.h.


Constructor & Destructor Documentation

Dv::Sql::Column::Column ( size_t  i  )  [inline]

Constructor.

Parameters:
i 0-based index of the column

Reimplemented in Dv::Sql::Row< database_table >::Column.

Definition at line 16 of file column.h.


Member Function Documentation

size_t Dv::Sql::Column::index (  )  const [inline]

The index of the column.

Returns:
the index of the column.

Definition at line 20 of file column.h.

References index_.

Referenced by Dv::Sql::Row< database_table >::Column::convert(), Dv::Sql::Object::get_data(), Dv::Sql::Row< database_table >::is_null(), and Dv::Sql::Row< database_table >::operator()().


Member Data Documentation

size_t Dv::Sql::Column::index_ [private]

The index (0-based) of the column.

Definition at line 23 of file column.h.

Referenced by index().


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

dvmysql-1.0.3 [17 November, 2010]