Dmitigr Pgfe  1.1beta
The modern C++ API to PostgreSQL
Classes | Functions
Data types conversions

Classes

struct  Conversions< Container< Optional< T >, Allocator< Optional< T > > > >
 Partial specialization of Conversions for containers (arrays) with optional values. More...
 
struct  Conversions< Container< T, Allocator< T > > >
 Partial specialization of Conversions for containers (arrays) with mandatory values. More...
 
struct  Basic_conversions< T, StringConversions, DataConversions >
 The basic meta-implementation of the conversion algorithms. More...
 
struct  Numeric_conversions< T >
 The basic implementation of the conversion algorithms for numerics. More...
 
struct  Conversions< std::string >
 Full specialization of Conversions for std::string. More...
 
struct  Conversions< short int >
 Full specialization of Conversions for short int. More...
 
struct  Conversions< int >
 Full specialization of Conversions for int. More...
 
struct  Conversions< long int >
 Full specialization of Conversions for long int. More...
 
struct  Conversions< long long int >
 Full specialization of Conversions for long long int. More...
 
struct  Conversions< float >
 Full specialization of Conversions for float. More...
 
struct  Conversions< double >
 Full specialization of Conversions for double. More...
 
struct  Conversions< long double >
 Full specialization of Conversions for long double. More...
 
struct  Conversions< char >
 Full specialization of Conversions for char. More...
 
struct  Conversions< bool >
 Full specialization of Conversions for bool. More...
 

Functions

template<typename T , typename ... Types>
to (const Data *const data, Types &&... args)
 Converts the value of type Data to the value of type T by using the specialization of struct template Conversions. More...
 
template<typename T , typename ... Types>
to (std::unique_ptr< Data > &&data, Types &&... args)
 
template<typename T , typename ... Types>
std::unique_ptr< Datato_data (T &&value, Types &&... args)
 Converts the value of type T to the value of type Data by using the specialization of the struct template Conversions. More...
 

Detailed Description

Function Documentation

◆ to() [1/2]

T dmitigr::pgfe::to ( const Data *const  data,
Types &&...  args 
)
inline

Converts the value of type Data to the value of type T by using the specialization of struct template Conversions.

Parameters
data- the object to convert.
args- optional arguments to be passed to the conversion routines.
Template Parameters
T- the destination data type of the conversion.
Requires
data

◆ to() [2/2]

T dmitigr::pgfe::to ( std::unique_ptr< Data > &&  data,
Types &&...  args 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Requires
data

◆ to_data()

std::unique_ptr<Data> dmitigr::pgfe::to_data ( T &&  value,
Types &&...  args 
)
inline

Converts the value of type T to the value of type Data by using the specialization of the struct template Conversions.

Parameters
value- the value of the type T to convert;
argsoptional arguments to be passed to the conversion routines;
Template Parameters
T- the destination data type of the conversion.