Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
core
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
"
14
#include "
ref-counted-prepare-info.h
"
15
16
namespace
soci
17
{
18
19
namespace
details
20
{
21
22
// this needs to be lightweight and copyable
23
class
SOCI_DECL
prepare_temp_type
24
{
25
public
:
26
prepare_temp_type
(
session
&);
27
prepare_temp_type
(
prepare_temp_type
const
&);
28
prepare_temp_type
& operator=(
prepare_temp_type
const
&);
29
30
~
prepare_temp_type
();
31
32
template
<
typename
T>
33
prepare_temp_type
&
operator<<
(T
const
& 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>
42
prepare_temp_type
&
operator,
(
into_container<T, Indicator>
const
&ic)
43
{
44
rcpi_->exchange(ic);
45
return
*
this
;
46
}
47
template
<
typename
T,
typename
Indicator>
48
prepare_temp_type
&
operator,
(
use_container<T, Indicator>
const
&uc)
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
:
58
ref_counted_prepare_info
*
rcpi_
;
59
};
60
61
}
// namespace details
62
63
}
// namespace soci
64
65
#endif
soci::details::prepare_temp_type::rcpi_
ref_counted_prepare_info * rcpi_
Definition:
prepare-temp-type.h:58
into-type.h
soci::details::prepare_temp_type
Definition:
prepare-temp-type.h:23
SOCI_DECL
#define SOCI_DECL
Definition:
soci-config.h:31
soci::details::prepare_temp_type::operator,
prepare_temp_type & operator,(into_container< T, Indicator > const &ic)
Definition:
prepare-temp-type.h:42
soci::details::prepare_temp_type::operator<<
prepare_temp_type & operator<<(T const &t)
Definition:
prepare-temp-type.h:33
ref-counted-prepare-info.h
soci::details::prepare_temp_type::operator,
prepare_temp_type & operator,(use_container< T, Indicator > const &uc)
Definition:
prepare-temp-type.h:48
soci::details::use_container
Definition:
use.h:19
use-type.h
soci::session
Definition:
session.h:40
soci::details::into_container
Definition:
into.h:28
soci::details::prepare_temp_type::get_prepare_info
ref_counted_prepare_info * get_prepare_info() const
Definition:
prepare-temp-type.h:54
use.h
soci::details::ref_counted_prepare_info
Definition:
ref-counted-prepare-info.h:32
soci::details::type_ptr
Definition:
type-ptr.h:14
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