prepare-temp-type.cpp
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 #define SOCI_SOURCE
9 #include "prepare-temp-type.h"
11 #include "session.h"
12 
13 using namespace soci;
14 using namespace soci::details;
15 
17  : rcpi_(new ref_counted_prepare_info(s))
18 {
19  // this is the beginning of new query
20  s.get_query_stream().str("");
21 }
22 
24  :rcpi_(o.rcpi_)
25 {
26  rcpi_->inc_ref();
27 }
28 
30 {
31  o.rcpi_->inc_ref();
32  rcpi_->dec_ref();
33  rcpi_ = o.rcpi_;
34 
35  return *this;
36 }
37 
39 {
40  rcpi_->dec_ref();
41 }
42 
44 {
45  rcpi_->exchange(i);
46  return *this;
47 }
ref_counted_prepare_info * rcpi_
std::ostringstream & get_query_stream()
prepare_temp_type & operator=(prepare_temp_type const &)
prepare_temp_type & operator,(into_type_ptr const &i)


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