NCBI C++ ToolKit
Functions
Convert Namespace Reference

Functions

template<typename T >
void CassValueConvert (const CassValue *Val, T &t)
 
template<>
void CassValueConvert< bool > (const CassValue *Val, bool &v)
 
template<>
void CassValueConvert< int8_t > (const CassValue *Val, int8_t &v)
 
template<>
void CassValueConvert< int16_t > (const CassValue *Val, int16_t &v)
 
template<>
void CassValueConvert< int32_t > (const CassValue *Val, int32_t &v)
 
template<>
void CassValueConvert< int64_t > (const CassValue *Val, int64_t &v)
 
template<>
void CassValueConvert< double > (const CassValue *Val, double &v)
 
template<>
void CassValueConvert< string > (const CassValue *Val, string &v)
 
template<size_t C, size_t N, typename ... T>
void CassIteratorToTupleImpl (CassIterator *, std::tuple< T... > &, char)
 
template<size_t C, size_t N, typename ... T>
void CassIteratorToTupleImpl (CassIterator *itr, std::tuple< T... > &t, int64_t)
 
template<typename ... T>
void CassValueConvert (const CassValue *Val, std::tuple< T... > &t)
 
template<class T >
void CassValueConvertDef (const CassValue *Val, const T &_default, T &v)
 
template<typename T >
void ValueToCassCollection (const T &v, CassCollection *coll)
 
template<>
void ValueToCassCollection< bool > (const bool &v, CassCollection *coll)
 
template<>
void ValueToCassCollection< int8_t > (const int8_t &v, CassCollection *coll)
 
template<>
void ValueToCassCollection< int16_t > (const int16_t &v, CassCollection *coll)
 
template<>
void ValueToCassCollection< int32_t > (const int32_t &v, CassCollection *coll)
 
template<>
void ValueToCassCollection< int64_t > (const int64_t &v, CassCollection *coll)
 
template<>
void ValueToCassCollection< double > (const double &v, CassCollection *coll)
 
template<>
void ValueToCassCollection< float > (const float &v, CassCollection *coll)
 
template<>
void ValueToCassCollection< string > (const string &v, CassCollection *coll)
 
template<typename T >
void ValueToCassTupleItem (const T &value, CassTuple *dest, int index)
 
template<>
void ValueToCassTupleItem< bool > (const bool &value, CassTuple *dest, int index)
 
template<>
void ValueToCassTupleItem< int8_t > (const int8_t &value, CassTuple *dest, int index)
 
template<>
void ValueToCassTupleItem< int16_t > (const int16_t &value, CassTuple *dest, int index)
 
template<>
void ValueToCassTupleItem< int32_t > (const int32_t &value, CassTuple *dest, int index)
 
template<>
void ValueToCassTupleItem< int64_t > (const int64_t &value, CassTuple *dest, int index)
 
template<>
void ValueToCassTupleItem< double > (const double &value, CassTuple *dest, int index)
 
template<>
void ValueToCassTupleItem< float > (const float &value, CassTuple *dest, int index)
 
template<>
void ValueToCassTupleItem< string > (const string &value, CassTuple *dest, int index)
 
template<size_t N, typename... T>
void TupleToCassTupleImpl (const std::tuple< T... > &, CassTuple *, char)
 
template<size_t N, typename ... T>
void TupleToCassTupleImpl (const std::tuple< T... > &t, CassTuple *dest, int64_t)
 
template<typename ... T>
void ValueToCassCollection (const std::tuple< T... > &v, CassCollection *coll)
 
template<typename ... T>
void ValueToCassTupleItem (const std::tuple< T... > &value, CassTuple *dest, int index)
 
template<typename ... T>
void ValueToCassTuple (const std::tuple< T... > &value, CassTuple *dest)
 

Function Documentation

◆ CassIteratorToTupleImpl() [1/2]

template<size_t C, size_t N, typename ... T>
void Convert::CassIteratorToTupleImpl ( CassIterator *  ,
std::tuple< T... > &  ,
char   
)

Definition at line 67 of file cass_conv.hpp.

Referenced by CassIteratorToTupleImpl(), and CassValueConvert().

◆ CassIteratorToTupleImpl() [2/2]

template<size_t C, size_t N, typename ... T>
void Convert::CassIteratorToTupleImpl ( CassIterator *  itr,
std::tuple< T... > &  t,
int64_t   
)

Definition at line 72 of file cass_conv.hpp.

References C, CassIteratorToTupleImpl(), CassValueConvert(), N, RAISE_DB_ERROR, t, T, type, and rapidjson::value.

◆ CassValueConvert() [1/2]

template<typename ... T>
void Convert::CassValueConvert ( const CassValue *  Val,
std::tuple< T... > &  t 
)

Definition at line 87 of file cass_conv.hpp.

References CassIteratorToTupleImpl(), NStr::NumericToString(), RAISE_DB_ERROR, t, and T.

◆ CassValueConvert() [2/2]

template<typename T >
void Convert::CassValueConvert ( const CassValue *  Val,
T t 
)

◆ CassValueConvert< bool >()

template<>
void Convert::CassValueConvert< bool > ( const CassValue *  Val,
bool v 
)

Definition at line 60 of file cass_conv.cpp.

References NStr::NumericToString(), RAISE_CASS_ERROR, and RAISE_DB_ERROR.

Referenced by CCassQuery::FieldGetBoolValue().

◆ CassValueConvert< double >()

template<>
void Convert::CassValueConvert< double > ( const CassValue *  Val,
double &  v 
)

Definition at line 222 of file cass_conv.cpp.

References RAISE_CASS_ERROR, and RAISE_DB_ERROR.

Referenced by CCassQuery::FieldGetFloatValue().

◆ CassValueConvert< int16_t >()

template<>
void Convert::CassValueConvert< int16_t > ( const CassValue *  Val,
int16_t v 
)

Definition at line 104 of file cass_conv.cpp.

References NStr::NumericToString(), RAISE_CASS_ERROR, and RAISE_DB_ERROR.

Referenced by CCassQuery::FieldGetInt16Value().

◆ CassValueConvert< int32_t >()

template<>
void Convert::CassValueConvert< int32_t > ( const CassValue *  Val,
int32_t v 
)

Definition at line 132 of file cass_conv.cpp.

References NStr::NumericToString(), RAISE_CASS_ERROR, and RAISE_DB_ERROR.

Referenced by CCassQuery::FieldGetInt32Value().

◆ CassValueConvert< int64_t >()

template<>
void Convert::CassValueConvert< int64_t > ( const CassValue *  Val,
int64_t v 
)

◆ CassValueConvert< int8_t >()

template<>
void Convert::CassValueConvert< int8_t > ( const CassValue *  Val,
int8_t v 
)

Definition at line 83 of file cass_conv.cpp.

References NStr::NumericToString(), RAISE_CASS_ERROR, and RAISE_DB_ERROR.

Referenced by CCassQuery::FieldGetInt8Value().

◆ CassValueConvert< string >()

template<>
void Convert::CassValueConvert< string > ( const CassValue *  Val,
string v 
)

◆ CassValueConvertDef()

template<class T >
void Convert::CassValueConvertDef ( const CassValue *  Val,
const T _default,
T v 
)

Definition at line 121 of file cass_conv.hpp.

References CassValueConvert().

◆ TupleToCassTupleImpl() [1/2]

template<size_t N, typename... T>
void Convert::TupleToCassTupleImpl ( const std::tuple< T... > &  ,
CassTuple *  ,
char   
)

◆ TupleToCassTupleImpl() [2/2]

template<size_t N, typename ... T>
void Convert::TupleToCassTupleImpl ( const std::tuple< T... > &  t,
CassTuple *  dest,
int64_t   
)

Definition at line 164 of file cass_conv.hpp.

References N, t, T, TupleToCassTupleImpl(), and ValueToCassTupleItem().

◆ ValueToCassCollection() [1/2]

template<typename ... T>
void Convert::ValueToCassCollection ( const std::tuple< T... > &  v,
CassCollection *  coll 
)

◆ ValueToCassCollection() [2/2]

template<typename T >
void Convert::ValueToCassCollection ( const T v,
CassCollection *  coll 
)

Definition at line 130 of file cass_conv.hpp.

References T.

Referenced by CCassPrm::Assign(), CCassPrm::AssignList(), and CCassPrm::AssignSet().

◆ ValueToCassCollection< bool >()

template<>
void Convert::ValueToCassCollection< bool > ( const bool v,
CassCollection *  coll 
)

Definition at line 290 of file cass_conv.cpp.

References b, and RAISE_CASS_ERROR.

◆ ValueToCassCollection< double >()

template<>
void Convert::ValueToCassCollection< double > ( const double &  v,
CassCollection *  coll 
)

Definition at line 336 of file cass_conv.cpp.

References RAISE_CASS_ERROR.

◆ ValueToCassCollection< float >()

template<>
void Convert::ValueToCassCollection< float > ( const float &  v,
CassCollection *  coll 
)

Definition at line 345 of file cass_conv.cpp.

References RAISE_CASS_ERROR.

◆ ValueToCassCollection< int16_t >()

template<>
void Convert::ValueToCassCollection< int16_t > ( const int16_t v,
CassCollection *  coll 
)

Definition at line 309 of file cass_conv.cpp.

References RAISE_CASS_ERROR.

◆ ValueToCassCollection< int32_t >()

template<>
void Convert::ValueToCassCollection< int32_t > ( const int32_t v,
CassCollection *  coll 
)

Definition at line 318 of file cass_conv.cpp.

References RAISE_CASS_ERROR.

◆ ValueToCassCollection< int64_t >()

template<>
void Convert::ValueToCassCollection< int64_t > ( const int64_t v,
CassCollection *  coll 
)

Definition at line 327 of file cass_conv.cpp.

References RAISE_CASS_ERROR.

◆ ValueToCassCollection< int8_t >()

template<>
void Convert::ValueToCassCollection< int8_t > ( const int8_t v,
CassCollection *  coll 
)

Definition at line 300 of file cass_conv.cpp.

References RAISE_CASS_ERROR.

◆ ValueToCassCollection< string >()

template<>
void Convert::ValueToCassCollection< string > ( const string v,
CassCollection *  coll 
)

Definition at line 354 of file cass_conv.cpp.

References RAISE_CASS_ERROR.

◆ ValueToCassTuple()

template<typename ... T>
void Convert::ValueToCassTuple ( const std::tuple< T... > &  value,
CassTuple *  dest 
)

Definition at line 214 of file cass_conv.hpp.

References T, TupleToCassTupleImpl(), and rapidjson::value.

Referenced by CCassPrm::Assign().

◆ ValueToCassTupleItem() [1/2]

template<typename ... T>
void Convert::ValueToCassTupleItem ( const std::tuple< T... > &  value,
CassTuple *  dest,
int  index 
)

◆ ValueToCassTupleItem() [2/2]

template<typename T >
void Convert::ValueToCassTupleItem ( const T value,
CassTuple *  dest,
int  index 
)

Definition at line 144 of file cass_conv.hpp.

References T.

Referenced by TupleToCassTupleImpl().

◆ ValueToCassTupleItem< bool >()

template<>
void Convert::ValueToCassTupleItem< bool > ( const bool value,
CassTuple *  dest,
int  index 
)

Definition at line 363 of file cass_conv.cpp.

References RAISE_CASS_ERROR, and rapidjson::value.

◆ ValueToCassTupleItem< double >()

template<>
void Convert::ValueToCassTupleItem< double > ( const double &  value,
CassTuple *  dest,
int  index 
)

Definition at line 403 of file cass_conv.cpp.

References RAISE_CASS_ERROR, and rapidjson::value.

◆ ValueToCassTupleItem< float >()

template<>
void Convert::ValueToCassTupleItem< float > ( const float &  value,
CassTuple *  dest,
int  index 
)

Definition at line 411 of file cass_conv.cpp.

References RAISE_CASS_ERROR, and rapidjson::value.

◆ ValueToCassTupleItem< int16_t >()

template<>
void Convert::ValueToCassTupleItem< int16_t > ( const int16_t value,
CassTuple *  dest,
int  index 
)

Definition at line 379 of file cass_conv.cpp.

References RAISE_CASS_ERROR, and rapidjson::value.

◆ ValueToCassTupleItem< int32_t >()

template<>
void Convert::ValueToCassTupleItem< int32_t > ( const int32_t value,
CassTuple *  dest,
int  index 
)

Definition at line 387 of file cass_conv.cpp.

References RAISE_CASS_ERROR, and rapidjson::value.

◆ ValueToCassTupleItem< int64_t >()

template<>
void Convert::ValueToCassTupleItem< int64_t > ( const int64_t value,
CassTuple *  dest,
int  index 
)

Definition at line 395 of file cass_conv.cpp.

References RAISE_CASS_ERROR, and rapidjson::value.

◆ ValueToCassTupleItem< int8_t >()

template<>
void Convert::ValueToCassTupleItem< int8_t > ( const int8_t value,
CassTuple *  dest,
int  index 
)

Definition at line 371 of file cass_conv.cpp.

References RAISE_CASS_ERROR, and rapidjson::value.

◆ ValueToCassTupleItem< string >()

template<>
void Convert::ValueToCassTupleItem< string > ( const string value,
CassTuple *  dest,
int  index 
)

Definition at line 419 of file cass_conv.cpp.

References RAISE_CASS_ERROR, and rapidjson::value.

Modified on Wed Apr 17 13:09:52 2024 by modify_doxy.py rev. 669887