Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
soci::values Class Reference

#include <values.h>

Public Member Functions

template<typename T >
get (std::size_t pos) const
 
template<typename T >
get (std::size_t pos, T const &nullValue) const
 
template<typename T >
get (std::string const &name) const
 
template<typename T >
get (std::string const &name, T const &nullValue) const
 
indicator get_indicator (std::size_t pos) const
 
indicator get_indicator (std::string const &name) const
 
column_properties const & get_properties (std::size_t pos) const
 
column_properties const & get_properties (std::string const &name) const
 
template<typename T >
valuesoperator<< (T const &value)
 
template<typename T >
values const & operator>> (T &value) const
 
void reset_get_counter () const
 
template<typename T >
void set (std::string const &name, T const &value, indicator indic=i_ok)
 
template<typename T >
void set (const T &value, indicator indic=i_ok)
 
void skip (std::size_t num=1) const
 
void uppercase_column_names (bool forceToUpper)
 
 values ()
 

Private Member Functions

void add_unused (details::use_type_base *u, indicator *i)
 
void clean_up ()
 
template<typename T >
get_from_uses (std::string const &name, T const &nullValue) const
 
template<typename T >
get_from_uses (std::string const &name) const
 
template<typename T >
get_from_uses (std::size_t pos) const
 
rowget_row ()
 

Private Attributes

std::size_t currentPos_
 
std::vector< details::copy_base * > deepCopies_
 
std::map< std::string, std::size_t > index_
 
std::vector< indicator * > indicators_
 
rowrow_
 
std::map< details::use_type_base *, indicator * > unused_
 
bool uppercaseColumnNames_
 
std::vector< details::standard_use_type * > uses_
 

Friends

class details::into_type< values >
 
class details::statement_impl
 
class details::use_type< values >
 

Detailed Description

Definition at line 44 of file values.h.

Constructor & Destructor Documentation

soci::values::values ( )
inline

Definition at line 52 of file values.h.

Member Function Documentation

void soci::values::add_unused ( details::use_type_base u,
indicator i 
)
inlineprivate

Definition at line 317 of file values.h.

void soci::values::clean_up ( )
inlineprivate

Definition at line 325 of file values.h.

template<typename T >
T soci::values::get ( std::size_t  pos) const
inline

Definition at line 58 of file values.h.

template<typename T >
T soci::values::get ( std::size_t  pos,
T const &  nullValue 
) const
inline

Definition at line 79 of file values.h.

template<typename T >
T soci::values::get ( std::string const &  name) const
inline

Definition at line 96 of file values.h.

template<typename T >
T soci::values::get ( std::string const &  name,
T const &  nullValue 
) const
inline

Definition at line 102 of file values.h.

template<typename T >
T soci::values::get_from_uses ( std::string const &  name,
T const &  nullValue 
) const
inlineprivate

Definition at line 255 of file values.h.

template<typename T >
T soci::values::get_from_uses ( std::string const &  name) const
inlineprivate

Definition at line 271 of file values.h.

template<typename T >
T soci::values::get_from_uses ( std::size_t  pos) const
inlineprivate

Definition at line 282 of file values.h.

indicator values::get_indicator ( std::size_t  pos) const

Definition at line 20 of file values.cpp.

indicator values::get_indicator ( std::string const &  name) const

Definition at line 32 of file values.cpp.

column_properties const & values::get_properties ( std::size_t  pos) const

Definition at line 51 of file values.cpp.

column_properties const & values::get_properties ( std::string const &  name) const

Definition at line 61 of file values.cpp.

row& soci::values::get_row ( )
inlineprivate

Definition at line 308 of file values.h.

template<typename T >
values& soci::values::operator<< ( T const &  value)
inline

Definition at line 222 of file values.h.

template<typename T >
values const& soci::values::operator>> ( T &  value) const
inline

Definition at line 110 of file values.h.

void soci::values::reset_get_counter ( ) const
inline

Definition at line 153 of file values.h.

template<typename T >
void soci::values::set ( std::string const &  name,
T const &  value,
indicator  indic = i_ok 
)
inline

Definition at line 166 of file values.h.

template<typename T >
void soci::values::set ( const T &  value,
indicator  indic = i_ok 
)
inline

Definition at line 204 of file values.h.

void soci::values::skip ( std::size_t  num = 1) const
inline

Definition at line 141 of file values.h.

void soci::values::uppercase_column_names ( bool  forceToUpper)
inline

Definition at line 228 of file values.h.

Friends And Related Function Documentation

friend class details::into_type< values >
friend

Definition at line 47 of file values.h.

friend class details::statement_impl
friend

Definition at line 46 of file values.h.

friend class details::use_type< values >
friend

Definition at line 48 of file values.h.

Member Data Documentation

std::size_t soci::values::currentPos_
mutableprivate

Definition at line 247 of file values.h.

std::vector<details::copy_base *> soci::values::deepCopies_
private

Definition at line 245 of file values.h.

std::map<std::string, std::size_t> soci::values::index_
private

Definition at line 244 of file values.h.

std::vector<indicator *> soci::values::indicators_
private

Definition at line 243 of file values.h.

row* soci::values::row_
private

Definition at line 240 of file values.h.

std::map<details::use_type_base *, indicator *> soci::values::unused_
private

Definition at line 242 of file values.h.

bool soci::values::uppercaseColumnNames_
private

Definition at line 249 of file values.h.

std::vector<details::standard_use_type *> soci::values::uses_
private

Definition at line 241 of file values.h.


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


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:42