Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members File Members

# mysqlpp::RowTemplate< ThisType, Res > Class Template Reference

Base class for class Row. More...

`#include <row.h>`

Inheritance diagram for mysqlpp::RowTemplate< ThisType, Res >:

[legend]
List of all members.

## Public Methods

virtual | ~RowTemplate ()
| Destroy object.
virtual const Res & | parent () const=0
| Get a reference to our "parent" class.
value_list_ba< ThisType, quote_type0 > | value_list (const char *d=",") const
| Get a list of the values in this row.
template<class Manip> value_list_ba< ThisType, Manip > | value_list (const char *d, Manip m) const
| Get a list of the values in this row.
template<class Manip> value_list_b< ThisType, Manip > | value_list (const char *d, Manip m, const std::vector< bool > &vb) const
| Get a list of the values in this row.
value_list_b< ThisType, quote_type0 > | value_list (const char *d, const std::vector< bool > &vb) const
| Get a list of the values in this row.
value_list_b< ThisType, quote_type0 > | value_list (const std::vector< bool > &vb) const
| Get a list of the values in this row.
template<class Manip> value_list_b< ThisType, Manip > | value_list (const char *d, Manip m, bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const
| Get a list of the values in this row.
value_list_b< ThisType, quote_type0 > | value_list (const char *d, bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const
| Get a list of the values in this row.
value_list_b< ThisType, quote_type0 > | value_list (bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const
| Get a list of the values in this row.
template<class Manip> value_list_b< ThisType, Manip > | value_list (const char *d, Manip m, std::string s0, std::string s1="", std::string s2="", std::string s3="", std::string s4="", std::string s5="", std::string s6="", std::string s7="", std::string s8="", std::string s9="", std::string sa="", std::string sb="", std::string sc="") const
| Get a list of the values in this row.
value_list_b< ThisType, quote_type0 > | value_list (const char *d, std::string s0, std::string s1="", std::string s2="", std::string s3="", std::string s4="", std::string s5="", std::string s6="", std::string s7="", std::string s8="", std::string s9="", std::string sa="", std::string sb="", std::string sc="") const
| Get a list of the values in this row.
value_list_b< ThisType, quote_type0 > | value_list (std::string s0, std::string s1="", std::string s2="", std::string s3="", std::string s4="", std::string s5="", std::string s6="", std::string s7="", std::string s8="", std::string s9="", std::string sa="", std::string sb="", std::string sc="") const
| Get a list of the values in this row.
value_list_ba< FieldNames, do_nothing_type0 > | field_list (const char *d=",") const
| Get a list of the field names in this row.
template<class Manip> value_list_ba< FieldNames, Manip > | field_list (const char *d, Manip m) const
| Get a list of the field names in this row.
template<class Manip> value_list_b< FieldNames, Manip > | field_list (const char *d, Manip m, const std::vector< bool > &vb) const
| Get a list of the field names in this row.
value_list_b< FieldNames, quote_type0 > | field_list (const char *d, const std::vector< bool > &vb) const
| Get a list of the field names in this row.
value_list_b< FieldNames, quote_type0 > | field_list (const std::vector< bool > &vb) const
| Get a list of the field names in this row.
template<class Manip> value_list_b< FieldNames, Manip > | field_list (const char *d, Manip m, bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const
| Get a list of the field names in this row.
value_list_b< FieldNames, quote_type0 > | field_list (const char *d, bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const
| Get a list of the field names in this row.
value_list_b< FieldNames, quote_type0 > | field_list (bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const
| Get a list of the field names in this row.
template<class Manip> value_list_b< FieldNames, Manip > | field_list (const char *d, Manip m, std::string s0, std::string s1="", std::string s2="", std::string s3="", std::string s4="", std::string s5="", std::string s6="", std::string s7="", std::string s8="", std::string s9="", std::string sa="", std::string sb="", std::string sc="") const
| Get a list of the field names in this row.
value_list_b< FieldNames, quote_type0 > | field_list (const char *d, std::string s0, std::string s1="", std::string s2="", std::string s3="", std::string s4="", std::string s5="", std::string s6="", std::string s7="", std::string s8="", std::string s9="", std::string sa="", std::string sb="", std::string sc="") const
| Get a list of the field names in this row.
value_list_b< FieldNames, quote_type0 > | field_list (std::string s0, std::string s1="", std::string s2="", std::string s3="", std::string s4="", std::string s5="", std::string s6="", std::string s7="", std::string s8="", std::string s9="", std::string sa="", std::string sb="", std::string sc="") const
| Get a list of the field names in this row.
equal_list_ba< FieldNames, ThisType, quote_type0 > | equal_list (const char *d=",", const char *e="=") const
| Get an "equal list" of the fields and values in this row.
template<class Manip> equal_list_ba< FieldNames, ThisType, Manip > | equal_list (const char *d, const char *e, Manip m) const
| Get an "equal list" of the fields and values in this row.

## Protected Methods

virtual ThisType & | self ()=0
| Return a pointer to this object.
virtual const ThisType & | self () const=0
| Return a const pointer to this object, for calls in const context.

## Detailed Description

### template<class ThisType, class Res>
class mysqlpp::RowTemplate< ThisType, Res >

Base class for class Row.

## Member Function Documentation

template<class ThisType, class Res>
template<class Manip>
equal_list_ba<FieldNames, ThisType, Manip> mysqlpp::RowTemplate< ThisType, Res >::equal_list | ( | const char * | d,
|  | const char * | e,
|  | Manip | m
| ) | const`[inline]`

Get an "equal list" of the fields and values in this row.

This method's parameters govern how the returned list will behave when you insert it into a C++ stream:

Parameters:

  d | delimiter to use between items
  e | the operator to use between elements
  m | the manipulator to use for each element

For example, if d is ",", e is " = ", and m is the quote manipulator, then the field and value lists (a, b) (c, d'e) will yield an equal list that gives the following when inserted into a C++ stream:

                  'a' = 'c', 'b' = 'd''e'

Notice how the single quote was 'escaped' in the SQL way to avoid a syntax error.

template<class ThisType, class Res>
equal_list_ba<FieldNames, ThisType, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::equal_list | ( | const char * | d = ",",
|  | const char * | e = " = "
| ) | const`[inline]`

| Get an "equal list" of the fields and values in this row. When inserted into a C++ stream, the delimiter 'd' will be used between the items, " = " is the relationship operator, and items will be quoted and escaped.

template<class ThisType, class Res>
value_list_b<FieldNames, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | std::string | s0,
|  | std::string | s1 = "",
|  | std::string | s2 = "",
|  | std::string | s3 = "",
|  | std::string | s4 = "",
|  | std::string | s5 = "",
|  | std::string | s6 = "",
|  | std::string | s7 = "",
|  | std::string | s8 = "",
|  | std::string | s9 = "",
|  | std::string | sa = "",
|  | std::string | sb = "",
|  | std::string | sc = ""
| ) | const`[inline]`

| Get a list of the field names in this row. The 's' parameters name the field names that will be added to the returned list. When inserted into a C++ stream, a comma will be used as a delimiter between the items, and the items will be quoted and escaped.

template<class ThisType, class Res>
value_list_b<FieldNames, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | const char * | d,
|  | std::string | s0,
|  | std::string | s1 = "",
|  | std::string | s2 = "",
|  | std::string | s3 = "",
|  | std::string | s4 = "",
|  | std::string | s5 = "",
|  | std::string | s6 = "",
|  | std::string | s7 = "",
|  | std::string | s8 = "",
|  | std::string | s9 = "",
|  | std::string | sa = "",
|  | std::string | sb = "",
|  | std::string | sc = ""
| ) | const`[inline]`

| Get a list of the field names in this row. The 's' parameters name the field names that will be added to the returned list. When inserted into a C++ stream, the delimiter 'd' will be placed between the items, and the items will be quoted and escaped.

template<class ThisType, class Res>
template<class Manip>
value_list_b<FieldNames, Manip> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | const char * | d,
|  | Manip | m,
|  | std::string | s0,
|  | std::string | s1 = "",
|  | std::string | s2 = "",
|  | std::string | s3 = "",
|  | std::string | s4 = "",
|  | std::string | s5 = "",
|  | std::string | s6 = "",
|  | std::string | s7 = "",
|  | std::string | s8 = "",
|  | std::string | s9 = "",
|  | std::string | sa = "",
|  | std::string | sb = "",
|  | std::string | sc = ""
| ) | const`[inline]`

| Get a list of the field names in this row. The 's' parameters name the field names that will be added to the returned list. When inserted into a C++ stream, the delimiter 'd' will be placed between the items, and the manipulator 'm' will be inserted before each item.

template<class ThisType, class Res>
value_list_b<FieldNames, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | bool | t0,
|  | bool | t1 = false,
|  | bool | t2 = false,
|  | bool | t3 = false,
|  | bool | t4 = false,
|  | bool | t5 = false,
|  | bool | t6 = false,
|  | bool | t7 = false,
|  | bool | t8 = false,
|  | bool | t9 = false,
|  | bool | ta = false,
|  | bool | tb = false,
|  | bool | tc = false
| ) | const`[inline]`

| Get a list of the field names in this row. For each true parameter, the field name in that position within the row is added to the returned list. When the list is inserted into a C++ stream, a comma will be placed between the items as a delimiter, and the items will be quoted and escaped.

template<class ThisType, class Res>
value_list_b<FieldNames, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | const char * | d,
|  | bool | t0,
|  | bool | t1 = false,
|  | bool | t2 = false,
|  | bool | t3 = false,
|  | bool | t4 = false,
|  | bool | t5 = false,
|  | bool | t6 = false,
|  | bool | t7 = false,
|  | bool | t8 = false,
|  | bool | t9 = false,
|  | bool | ta = false,
|  | bool | tb = false,
|  | bool | tc = false
| ) | const`[inline]`

| Get a list of the field names in this row. For each true parameter, the field name in that position within the row is added to the returned list. When the list is inserted into a C++ stream, the delimiter 'd' will be placed between the items as a delimiter, and the items will be quoted and escaped.

template<class ThisType, class Res>
template<class Manip>
value_list_b<FieldNames, Manip> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | const char * | d,
|  | Manip | m,
|  | bool | t0,
|  | bool | t1 = false,
|  | bool | t2 = false,
|  | bool | t3 = false,
|  | bool | t4 = false,
|  | bool | t5 = false,
|  | bool | t6 = false,
|  | bool | t7 = false,
|  | bool | t8 = false,
|  | bool | t9 = false,
|  | bool | ta = false,
|  | bool | tb = false,
|  | bool | tc = false
| ) | const`[inline]`

| Get a list of the field names in this row. For each true parameter, the field name in that position within the row is added to the returned list. When the list is inserted into a C++ stream, the delimiter 'd' will be placed between the items as a delimiter, and the manipulator 'm' used before each item.

template<class ThisType, class Res>
value_list_b<FieldNames, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | const std::vector< bool > & | vb | ) | const`[inline]`

Get a list of the field names in this row.

Parameters:

  vb | for each true item in this list, add that field name to the returned list; ignore the others

Field names will be quoted and escaped when inserted into a C++ stream, and a comma will be placed between them as a delimiter.

template<class ThisType, class Res>
value_list_b<FieldNames, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | const char * | d,
|  | const std::vector< bool > & | vb
| ) | const`[inline]`

Get a list of the field names in this row.

Parameters:

  d | delimiter to place between the items when the list is inserted into a C++ stream
  vb | for each true item in this list, add that field name to the returned list; ignore the others

Field names will be quoted and escaped when inserted into a C++ stream.

template<class ThisType, class Res>
template<class Manip>
value_list_b<FieldNames, Manip> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | const char * | d,
|  | Manip | m,
|  | const std::vector< bool > & | vb
| ) | const`[inline]`

Get a list of the field names in this row.

Parameters:

  d | delimiter to place between the items when the list is inserted into a C++ stream
  m | manipulator to use before each item when the list is inserted into a C++ stream
  vb | for each true item in this list, add that field name to the returned list; ignore the others

template<class ThisType, class Res>
template<class Manip>
value_list_ba<FieldNames, Manip> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | const char * | d,
|  | Manip | m
| ) | const`[inline]`

Get a list of the field names in this row.

Parameters:

  d | delimiter to place between the items when the list is inserted into a C++ stream
  m | manipulator to use before each item when the list is inserted into a C++ stream

template<class ThisType, class Res>
value_list_ba<FieldNames, do_nothing_type0> mysqlpp::RowTemplate< ThisType, Res >::field_list | ( | const char * | d = "," | ) | const`[inline]`

| Get a list of the field names in this row. When inserted into a C++ stream, the delimiter 'd' will be used between the items, and no manipulator will be used on the items.

template<class ThisType, class Res>
virtual const Res& mysqlpp::RowTemplate< ThisType, Res >::parent | ( |  | ) | `[pure virtual]`

| Get a reference to our "parent" class. The meaning of this function is up to whatever class derives from this one. Implemented in mysqlpp::Row.

template<class ThisType, class Res>
virtual ThisType& mysqlpp::RowTemplate< ThisType, Res >::self | ( |  | ) | `[protected, pure virtual]`

| Return a pointer to this object. Not sure what value this has over the 'this' pointer, but... Implemented in mysqlpp::Row.

template<class ThisType, class Res>
value_list_b<ThisType, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | std::string | s0,
|  | std::string | s1 = "",
|  | std::string | s2 = "",
|  | std::string | s3 = "",
|  | std::string | s4 = "",
|  | std::string | s5 = "",
|  | std::string | s6 = "",
|  | std::string | s7 = "",
|  | std::string | s8 = "",
|  | std::string | s9 = "",
|  | std::string | sa = "",
|  | std::string | sb = "",
|  | std::string | sc = ""
| ) | const`[inline]`

| Get a list of the values in this row. The 's' parameters name the fields that will be added to the returned list. When inserted into a C++ stream, a comma will be placed between the items as a delimiter, and items will be quoted and escaped.

template<class ThisType, class Res>
value_list_b<ThisType, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | const char * | d,
|  | std::string | s0,
|  | std::string | s1 = "",
|  | std::string | s2 = "",
|  | std::string | s3 = "",
|  | std::string | s4 = "",
|  | std::string | s5 = "",
|  | std::string | s6 = "",
|  | std::string | s7 = "",
|  | std::string | s8 = "",
|  | std::string | s9 = "",
|  | std::string | sa = "",
|  | std::string | sb = "",
|  | std::string | sc = ""
| ) | const`[inline]`

| Get a list of the values in this row. The 's' parameters name the fields that will be added to the returned list. When inserted into a C++ stream, the delimiter 'd' will be placed between the items, and items will be quoted and escaped.

template<class ThisType, class Res>
template<class Manip>
value_list_b<ThisType, Manip> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | const char * | d,
|  | Manip | m,
|  | std::string | s0,
|  | std::string | s1 = "",
|  | std::string | s2 = "",
|  | std::string | s3 = "",
|  | std::string | s4 = "",
|  | std::string | s5 = "",
|  | std::string | s6 = "",
|  | std::string | s7 = "",
|  | std::string | s8 = "",
|  | std::string | s9 = "",
|  | std::string | sa = "",
|  | std::string | sb = "",
|  | std::string | sc = ""
| ) | const`[inline]`

| Get a list of the values in this row. The 's' parameters name the fields that will be added to the returned list. When inserted into a C++ stream, the delimiter 'd' will be placed between the items, and the manipulator 'm' will be inserted before each item.

template<class ThisType, class Res>
value_list_b<ThisType, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | bool | t0,
|  | bool | t1 = false,
|  | bool | t2 = false,
|  | bool | t3 = false,
|  | bool | t4 = false,
|  | bool | t5 = false,
|  | bool | t6 = false,
|  | bool | t7 = false,
|  | bool | t8 = false,
|  | bool | t9 = false,
|  | bool | ta = false,
|  | bool | tb = false,
|  | bool | tc = false
| ) | const`[inline]`

| Get a list of the values in this row. For each true parameter, the value in that position within the row is added to the returned list. When the list is inserted into a C++ stream, the a comma will be placed between the items, as a delimiter, and items will be quoted and escaped.

template<class ThisType, class Res>
value_list_b<ThisType, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | const char * | d,
|  | bool | t0,
|  | bool | t1 = false,
|  | bool | t2 = false,
|  | bool | t3 = false,
|  | bool | t4 = false,
|  | bool | t5 = false,
|  | bool | t6 = false,
|  | bool | t7 = false,
|  | bool | t8 = false,
|  | bool | t9 = false,
|  | bool | ta = false,
|  | bool | tb = false,
|  | bool | tc = false
| ) | const`[inline]`

| Get a list of the values in this row. For each true parameter, the value in that position within the row is added to the returned list. When the list is inserted into a C++ stream, the delimiter 'd' will be placed between the items, and items will be quoted and escaped.

template<class ThisType, class Res>
template<class Manip>
value_list_b<ThisType, Manip> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | const char * | d,
|  | Manip | m,
|  | bool | t0,
|  | bool | t1 = false,
|  | bool | t2 = false,
|  | bool | t3 = false,
|  | bool | t4 = false,
|  | bool | t5 = false,
|  | bool | t6 = false,
|  | bool | t7 = false,
|  | bool | t8 = false,
|  | bool | t9 = false,
|  | bool | ta = false,
|  | bool | tb = false,
|  | bool | tc = false
| ) | const`[inline]`

| Get a list of the values in this row. For each true parameter, the value in that position within the row is added to the returned list. When the list is inserted into a C++ stream, the delimiter 'd' will be placed between the items, and the manipulator 'm' used before each item.

template<class ThisType, class Res>
value_list_b<ThisType, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | const std::vector< bool > & | vb | ) | const`[inline]`

Get a list of the values in this row.

Parameters:

  vb | for each true item in this list, add that value to the returned list; ignore the others

Items will be quoted and escaped when inserted into a C++ stream, and a comma will be used as a delimiter between the items.

template<class ThisType, class Res>
value_list_b<ThisType, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | const char * | d,
|  | const std::vector< bool > & | vb
| ) | const`[inline]`

Get a list of the values in this row.

Parameters:

  d | delimiter to use between values
  vb | for each true item in this list, add that value to the returned list; ignore the others

Items will be quoted and escaped when inserted into a C++ stream.

template<class ThisType, class Res>
template<class Manip>
value_list_b<ThisType, Manip> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | const char * | d,
|  | Manip | m,
|  | const std::vector< bool > & | vb
| ) | const`[inline]`

Get a list of the values in this row.

Parameters:

  d | delimiter to use between values
  m | manipulator to use when inserting values into a stream
  vb | for each true item in this list, add that value to the returned list; ignore the others

template<class ThisType, class Res>
template<class Manip>
value_list_ba<ThisType, Manip> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | const char * | d,
|  | Manip | m
| ) | const`[inline]`

Get a list of the values in this row.

Parameters:

  d | delimiter to use between values
  m | manipulator to use when inserting values into a stream

template<class ThisType, class Res>
value_list_ba<ThisType, quote_type0> mysqlpp::RowTemplate< ThisType, Res >::value_list | ( | const char * | d = "," | ) | const`[inline]`

| Get a list of the values in this row. When inserted into a C++ stream, the delimiter 'd' will be used between the items, and items will be quoted and escaped.

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

- row.h