File: classmysqlpp_1_1tiny__int.html

package info (click to toggle)
mysql%2B%2B 3.0.9-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 11,228 kB
  • ctags: 9,647
  • sloc: cpp: 33,154; sh: 3,098; perl: 778; makefile: 700
file content (202 lines) | stat: -rw-r--r-- 23,498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>MySQL++ Reference Manual</title>
	<meta http-equiv="Content-type" content="text/html;charset=iso-8859-1">
	<link href="doxygen.css" rel="stylesheet" type="text/css">
	<link href="refman.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<b>mysqlpp</b>::<a class="el" href="classmysqlpp_1_1tiny__int.html">tiny_int</a></div>
<h1>mysqlpp::tiny_int&lt; VT &gt; Class Template Reference</h1><!-- doxytag: class="mysqlpp::tiny_int" -->Class for holding an SQL <code>TINYINT</code> value.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="tiny__int_8h-source.html">tiny_int.h</a>&gt;</code>
<p>
<a href="classmysqlpp_1_1tiny__int-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9897d070e5985ef9a63b4ac7b0f34bec"></a><!-- doxytag: member="mysqlpp::tiny_int::this_type" ref="9897d070e5985ef9a63b4ac7b0f34bec" args="" -->
typedef <a class="el" href="classmysqlpp_1_1tiny__int.html">tiny_int</a>&lt; VT &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#9897d070e5985ef9a63b4ac7b0f34bec">this_type</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">alias for this object's type <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="41bd9d701b334239937583fcd822982d"></a><!-- doxytag: member="mysqlpp::tiny_int::value_type" ref="41bd9d701b334239937583fcd822982d" args="" -->
typedef VT&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#41bd9d701b334239937583fcd822982d">value_type</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">alias for type of internal value <br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#260d365f3716314aaf9f7f4e1b25a2c1">tiny_int</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#260d365f3716314aaf9f7f4e1b25a2c1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4b508b1914798beeb778b982655b88c9"></a><!-- doxytag: member="mysqlpp::tiny_int::tiny_int" ref="4b508b1914798beeb778b982655b88c9" args="(value_type v)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#4b508b1914798beeb778b982655b88c9">tiny_int</a> (<a class="el" href="classmysqlpp_1_1tiny__int.html#41bd9d701b334239937583fcd822982d">value_type</a> v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create object from any integral type that can be converted to a <code>short</code> <code>int</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b8110660e782d6bf04c72812fc2997a6"></a><!-- doxytag: member="mysqlpp::tiny_int::operator bool" ref="b8110660e782d6bf04c72812fc2997a6" args="() const " -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#b8110660e782d6bf04c72812fc2997a6">operator bool</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return truthiness of value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1403604c879449ad98c26bb12106d605"></a><!-- doxytag: member="mysqlpp::tiny_int::operator int" ref="1403604c879449ad98c26bb12106d605" args="() const " -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#1403604c879449ad98c26bb12106d605">operator int</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return value as an <code>int</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7a97eeda48b033ccdf19a021f4232649"></a><!-- doxytag: member="mysqlpp::tiny_int::operator value_type" ref="7a97eeda48b033ccdf19a021f4232649" args="() const " -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#7a97eeda48b033ccdf19a021f4232649">operator value_type</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return raw data value with no size change. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de6a9d3ddfb2d1fcc75a7ea591e91a8b"></a><!-- doxytag: member="mysqlpp::tiny_int::operator=" ref="de6a9d3ddfb2d1fcc75a7ea591e91a8b" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#de6a9d3ddfb2d1fcc75a7ea591e91a8b">operator=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assign a new value to the object. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="36e18f2ce991fb4296dc59e2212a5fa1"></a><!-- doxytag: member="mysqlpp::tiny_int::operator+=" ref="36e18f2ce991fb4296dc59e2212a5fa1" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#36e18f2ce991fb4296dc59e2212a5fa1">operator+=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add another value to this object. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e5efcbe08b3c794b6891e601087901f0"></a><!-- doxytag: member="mysqlpp::tiny_int::operator-=" ref="e5efcbe08b3c794b6891e601087901f0" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#e5efcbe08b3c794b6891e601087901f0">operator-=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Subtract another value to this object. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bdd076a84876ac52d00310ca82cd1921"></a><!-- doxytag: member="mysqlpp::tiny_int::operator *=" ref="bdd076a84876ac52d00310ca82cd1921" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#bdd076a84876ac52d00310ca82cd1921">operator *=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Multiply this value by another object. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1202e5b687748679fb3fc3f8dd58590c"></a><!-- doxytag: member="mysqlpp::tiny_int::operator/=" ref="1202e5b687748679fb3fc3f8dd58590c" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#1202e5b687748679fb3fc3f8dd58590c">operator/=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Divide this value by another object. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bbc67bd4206bcdc011987d8982c8fde2"></a><!-- doxytag: member="mysqlpp::tiny_int::operator%=" ref="bbc67bd4206bcdc011987d8982c8fde2" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#bbc67bd4206bcdc011987d8982c8fde2">operator%=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Divide this value by another object and store the remainder. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b0e1e3a1f38366e44f1d2f0b22a3c68b"></a><!-- doxytag: member="mysqlpp::tiny_int::operator &amp;=" ref="b0e1e3a1f38366e44f1d2f0b22a3c68b" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#b0e1e3a1f38366e44f1d2f0b22a3c68b">operator &amp;=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Bitwise AND this value by another value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="879dc1f591dee511e6f5e4e551c92745"></a><!-- doxytag: member="mysqlpp::tiny_int::operator|=" ref="879dc1f591dee511e6f5e4e551c92745" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#879dc1f591dee511e6f5e4e551c92745">operator|=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Bitwise OR this value by another value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ffffdfea42926ff6dca2e7d55ec5d991"></a><!-- doxytag: member="mysqlpp::tiny_int::operator^=" ref="ffffdfea42926ff6dca2e7d55ec5d991" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#ffffdfea42926ff6dca2e7d55ec5d991">operator^=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Bitwise XOR this value by another value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="256b54a16c73ac9f5ceb98cc18ea08a2"></a><!-- doxytag: member="mysqlpp::tiny_int::operator&lt;&lt;=" ref="256b54a16c73ac9f5ceb98cc18ea08a2" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#256b54a16c73ac9f5ceb98cc18ea08a2">operator&lt;&lt;=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Shift this value left by <code>v</code> positions. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="110f9067985f3fb752b7f789e51dd807"></a><!-- doxytag: member="mysqlpp::tiny_int::operator&gt;&gt;=" ref="110f9067985f3fb752b7f789e51dd807" args="(int v)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#110f9067985f3fb752b7f789e51dd807">operator&gt;&gt;=</a> (int v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Shift this value right by <code>v</code> positions. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c73c26862208cf500871288153975397"></a><!-- doxytag: member="mysqlpp::tiny_int::operator++" ref="c73c26862208cf500871288153975397" args="()" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#c73c26862208cf500871288153975397">operator++</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add one to this value and return that value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="85a9927cabf14fc6d6c57b3654bcdd98"></a><!-- doxytag: member="mysqlpp::tiny_int::operator--" ref="85a9927cabf14fc6d6c57b3654bcdd98" args="()" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#85a9927cabf14fc6d6c57b3654bcdd98">operator--</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Subtract one from this value and return that value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cb6a9557f17f0d9491bfca78dd447133"></a><!-- doxytag: member="mysqlpp::tiny_int::operator++" ref="cb6a9557f17f0d9491bfca78dd447133" args="(int)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#cb6a9557f17f0d9491bfca78dd447133">operator++</a> (int)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add one to this value and return the previous value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7bc7eacd9a17ee36161595b2715da7c8"></a><!-- doxytag: member="mysqlpp::tiny_int::operator--" ref="7bc7eacd9a17ee36161595b2715da7c8" args="(int)" -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#7bc7eacd9a17ee36161595b2715da7c8">operator--</a> (int)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Subtract one from this value and return the previous value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9b7c226805506b84d2fe2d785b8e534b"></a><!-- doxytag: member="mysqlpp::tiny_int::operator-" ref="9b7c226805506b84d2fe2d785b8e534b" args="(const this_type &amp;i) const " -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#9b7c226805506b84d2fe2d785b8e534b">operator-</a> (const <a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return this value minus <code>i</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5d9c58874950cda1bd363505bf717117"></a><!-- doxytag: member="mysqlpp::tiny_int::operator+" ref="5d9c58874950cda1bd363505bf717117" args="(const this_type &amp;i) const " -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#5d9c58874950cda1bd363505bf717117">operator+</a> (const <a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return this value plus <code>i</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de10b268d38b2203a5592a5c0c074007"></a><!-- doxytag: member="mysqlpp::tiny_int::operator *" ref="de10b268d38b2203a5592a5c0c074007" args="(const this_type &amp;i) const " -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#de10b268d38b2203a5592a5c0c074007">operator *</a> (const <a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return this value multiplied by <code>i</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="84e2e43fcb15f44afab23c9a78f5cd9d"></a><!-- doxytag: member="mysqlpp::tiny_int::operator/" ref="84e2e43fcb15f44afab23c9a78f5cd9d" args="(const this_type &amp;i) const " -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#84e2e43fcb15f44afab23c9a78f5cd9d">operator/</a> (const <a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return this value divided by <code>i</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4bd805adc8fd0d3a010ed8c531855069"></a><!-- doxytag: member="mysqlpp::tiny_int::operator%" ref="4bd805adc8fd0d3a010ed8c531855069" args="(const this_type &amp;i) const " -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#4bd805adc8fd0d3a010ed8c531855069">operator%</a> (const <a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the modulus of this value divided by <code>i</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="77d2d68bd0e1d0905367bbf19fe92bac"></a><!-- doxytag: member="mysqlpp::tiny_int::operator|" ref="77d2d68bd0e1d0905367bbf19fe92bac" args="(const this_type &amp;i) const " -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#77d2d68bd0e1d0905367bbf19fe92bac">operator|</a> (const <a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return this value bitwise OR'd by <code>i</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d985cc35ed8dafe4db56861b530830e4"></a><!-- doxytag: member="mysqlpp::tiny_int::operator &amp;" ref="d985cc35ed8dafe4db56861b530830e4" args="(const this_type &amp;i) const " -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#d985cc35ed8dafe4db56861b530830e4">operator &amp;</a> (const <a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return this value bitwise AND'd by <code>i</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="50ba5b3a3f53ab7833468fd08ea9962c"></a><!-- doxytag: member="mysqlpp::tiny_int::operator^" ref="50ba5b3a3f53ab7833468fd08ea9962c" args="(const this_type &amp;i) const " -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#50ba5b3a3f53ab7833468fd08ea9962c">operator^</a> (const <a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return this value bitwise XOR'd by <code>i</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="48421b3d2437efb340c2fb95a9d4d698"></a><!-- doxytag: member="mysqlpp::tiny_int::operator&lt;&lt;" ref="48421b3d2437efb340c2fb95a9d4d698" args="(const this_type &amp;i) const " -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#48421b3d2437efb340c2fb95a9d4d698">operator&lt;&lt;</a> (const <a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return this value bitwise shifted left by <code>i</code>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88fc850f9d935a56bcd7d67db0a04821"></a><!-- doxytag: member="mysqlpp::tiny_int::operator&gt;&gt;" ref="88fc850f9d935a56bcd7d67db0a04821" args="(const this_type &amp;i) const " -->
<a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1tiny__int.html#88fc850f9d935a56bcd7d67db0a04821">operator&gt;&gt;</a> (const <a class="el" href="classmysqlpp_1_1tiny__int.html">this_type</a> &amp;i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return this value bitwise shifted right by <code>i</code>. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename VT = signed char&gt;<br>
 class mysqlpp::tiny_int&lt; VT &gt;</h3>

Class for holding an SQL <code>TINYINT</code> value. 
<p>
This is required because the closest C++ type, <code>char</code>, doesn't have all the right semantics. For one, inserting a <code>char</code> into a stream won't give you a number. For another, if you don't specify signedness explicitly, C++ doesn't give a default, so it's signed on some platforms, unsigned on others.<p>
The template parameter is intended to allow instantiating it as tiny_int&lt;unsigned char&gt; to hold <code>TINYINT</code> <code>UNSIGNED</code> values. There's nothing stopping you from using any other integer type if you want to be perverse, but please don't do that.<p>
Several of the functions below accept an <code>int</code> argument, but internally we store the data as a <code>char</code> by default. Beware of integer overflows! 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="260d365f3716314aaf9f7f4e1b25a2c1"></a><!-- doxytag: member="mysqlpp::tiny_int::tiny_int" ref="260d365f3716314aaf9f7f4e1b25a2c1" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename VT = signed char&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmysqlpp_1_1tiny__int.html">mysqlpp::tiny_int</a>&lt; VT &gt;::<a class="el" href="classmysqlpp_1_1tiny__int.html">tiny_int</a>           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Default constructor. 
<p>
Value is uninitialized 
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="tiny__int_8h-source.html">tiny_int.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Wed Feb 4 14:43:35 2009 for MySQL++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>