Wt: Wt::Dbo::ptr_tuple< T0, T1,, T9 > Struct Template Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Types
Wt::Dbo::ptr_tuple< T0, T1,, T9 > Struct Template Reference
Database Objects (Wt::Dbo)

A utility class for defining a tuple of database objects. More...

List of all members.

## Public Types
typedef boost::tuple< ptr< T0 > , ptr< T1 >,..., ptr< T9 > > | type
| A typedef for a Boost.Tuple for ptrs.

## Detailed Description

### template<class T0 = boost::tuples::null_type, class T1 = boost::tuples::null_type, ..., class T9 = boost::tuples::null_type>
struct Wt::Dbo::ptr_tuple< T0, T1,, T9 >

A utility class for defining a tuple of database objects.

Since C++ (at least prior to C++0x) does not support template typedefs, this class provides a nested `type` that is a typedef for a Boost.Tuple containing one or more Wt::Dbo::ptr.

Thus:

     namespace dbo = Wt::Dbo;
     typedef dbo::ptr_tuple<A, B, C>::type ABC;

Is equivalent to:

     namespace dbo = Wt::Dbo;
     typedef boost::tuple<dbo::ptr<A>, dbo::ptr<B>, dbo::ptr<C> > ABC;

Note:
  Boost.Tuple (in its general form) is supported as a result for a Session::query() by a partial template specialization of query_result_traits.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator