Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
core
ref-counted-prepare-info.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 "
ref-counted-prepare-info.h
"
10
#include "
session.h
"
11
12
using namespace
soci
;
13
using namespace
soci::details
;
14
15
void
ref_counted_prepare_info::final_action
()
16
{
17
// deallocate all bind and define objects
18
for
(std::size_t i =
intos_
.size(); i > 0; --i)
19
{
20
delete
intos_
[i - 1];
21
intos_
.resize(i - 1);
22
}
23
24
for
(std::size_t i =
uses_
.size(); i > 0; --i)
25
{
26
delete
uses_
[i - 1];
27
uses_
.resize(i - 1);
28
}
29
}
30
31
std::string
ref_counted_prepare_info::get_query
()
const
32
{
33
return
session_
.
get_query
();
34
}
soci::details
Definition:
db2/common.h:15
session.h
soci::details::ref_counted_prepare_info::get_query
std::string get_query() const
Definition:
ref-counted-prepare-info.cpp:31
soci::details::ref_counted_prepare_info::session_
session & session_
Definition:
ref-counted-prepare-info.h:58
soci::details::ref_counted_prepare_info::final_action
void final_action()
Definition:
ref-counted-prepare-info.cpp:15
ref-counted-prepare-info.h
soci::session::get_query
std::string get_query() const
Definition:
core/session.cpp:216
soci::details::ref_counted_prepare_info::uses_
use_type_vector uses_
Definition:
ref-counted-prepare-info.h:61
soci::details::ref_counted_prepare_info::intos_
into_type_vector intos_
Definition:
ref-counted-prepare-info.h:60
soci
Definition:
db2/common.h:15
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