prepare-temp-type.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2008 Maciej Sobczak, Stephen Hutton
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 //
7 
8 #ifndef SOCI_PREPARE_TEMP_TYPE_INCLUDED
9 #define SOCI_PREPARE_TEMP_TYPE_INCLUDED
10 
11 #include "into-type.h"
12 #include "use-type.h"
13 #include "use.h"
15 
16 namespace soci
17 {
18 
19 namespace details
20 {
21 
22 // this needs to be lightweight and copyable
24 {
25 public:
28  prepare_temp_type & operator=(prepare_temp_type const &);
29 
31 
32  template <typename T>
34  {
35  rcpi_->accumulate(t);
36  return *this;
37  }
38 
39  prepare_temp_type & operator,(into_type_ptr const & i);
40 
41  template <typename T, typename Indicator>
43  {
44  rcpi_->exchange(ic);
45  return *this;
46  }
47  template <typename T, typename Indicator>
49  {
50  rcpi_->exchange(uc);
51  return *this;
52  }
53 
54  ref_counted_prepare_info * get_prepare_info() const { return rcpi_; }
55 
56 
57 private:
59 };
60 
61 } // namespace details
62 
63 } // namespace soci
64 
65 #endif
ref_counted_prepare_info * rcpi_
#define SOCI_DECL
Definition: soci-config.h:31
prepare_temp_type & operator,(into_container< T, Indicator > const &ic)
prepare_temp_type & operator<<(T const &t)
prepare_temp_type & operator,(use_container< T, Indicator > const &uc)
ref_counted_prepare_info * get_prepare_info() const


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:40