8 #ifndef SOCI_TYPE_CONVERSION_H_INCLUDED 9 #define SOCI_TYPE_CONVERSION_H_INCLUDED 40 public into_type<typename type_conversion<T>::base_type>
51 assert(ownInd_ == ind_);
60 assert(ownInd_ == ind_);
86 public use_type<typename type_conversion<T>::base_type>
98 assert(ownInd_ == ind_);
106 , value_(const_cast<T &>(value))
111 assert(ownInd_ == ind_);
118 std::string
const & name = std::string())
129 std::string
const & name = std::string())
131 , value_(const_cast<T &>(value))
147 if (readOnly_ ==
false)
176 template <
typename T>
180 mutable std::vector<typename type_conversion<T>::base_type>
vec_;
185 template <
typename T>
188 public into_type<std::vector<typename type_conversion<T>::base_type> >
191 typedef typename std::vector
203 assert(ownInd_ == ind_);
213 virtual std::size_t
size()
const 218 std::size_t
const userSize = value_.size();
235 for (std::size_t i = 0; i != sz; ++i)
255 template <
typename T>
258 public use_type<std::vector<typename type_conversion<T>::base_type> >
261 typedef typename std::vector
267 std::string
const & name=std::string())
275 assert(ownInd_ == ind_);
279 std::vector<indicator> & ind,
280 std::string
const & name = std::string())
294 for (std::size_t i = 0; i != sz; ++i)
303 std::size_t
const sz = value_.size();
306 for (std::size_t i = 0; i != sz; ++i)
323 template <
typename T>
329 template <
typename T>
335 template <
typename T>
341 template <
typename T>
347 template <
typename T>
354 template <
typename T>
365 #endif // SOCI_TYPE_CONVERSION_H_INCLUDED base_vector_holder(std::size_t sz=0)
std::vector< indicator > ownInd_
std::vector< indicator > ownInd_
conversion_into_type(T &value)
into_type_ptr do_into(T &t, basic_type_tag)
conversion_into_type(std::vector< T > &value, std::vector< indicator > &ind)
std::vector< typename type_conversion< T >::base_type > base_type
std::vector< typename type_conversion< T >::base_type > base_type
static void to_base(T const &in, base_type &out, indicator &ind)
std::vector< typename type_conversion< T >::base_type > vec_
std::vector< indicator > & ind_
virtual void resize(std::size_t sz)
conversion_into_type(T &value, indicator &ind)
conversion_use_type(std::vector< T > &value, std::vector< indicator > &ind, std::string const &name=std::string())
type_conversion< T >::base_type base_type
conversion_into_type(std::vector< T > &value)
type_ptr< into_type_base > into_type_ptr
type_ptr< use_type_base > use_type_ptr
conversion_use_type(T const &value, indicator &ind, std::string const &name=std::string())
type_conversion< T >::base_type val_
virtual std::size_t size() const
static void from_base(base_type const &in, indicator ind, T &out)
conversion_use_type(T &value, std::string const &name=std::string())
use_type_ptr do_use(T &t, std::string const &name, user_type_tag)
std::vector< T > & value_
type_conversion< T >::base_type base_type
std::vector< T > & value_
conversion_use_type(T &value, indicator &ind, std::string const &name=std::string())
conversion_use_type(T const &value, std::string const &name=std::string())
std::vector< indicator > & ind_
conversion_use_type(std::vector< T > &value, std::string const &name=std::string())