Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
boolean.h
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
*
4
* Copyright (C) 2010 Brian Aker
5
* Copyright (C) 2010 Brian Aker
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
23
#pragma once
24
25
#include <drizzled/function/math/int.h>
26
27
namespace
drizzled
28
{
29
30
namespace
item
31
{
32
33
namespace
function
34
{
35
36
class
Boolean
:
public
Item_int_func
37
{
38
public
:
39
Boolean
() :
40
Item_int_func
()
41
{}
42
43
Boolean
(
Item
*a) :
44
Item_int_func
(a)
45
{}
46
47
Boolean
(
Item
*a,
Item
*b) :
48
Item_int_func
(a,b)
49
{}
50
51
Boolean
(
Session
*session,
Boolean
*item) :
52
Item_int_func
(session, item)
53
{}
54
55
bool
is_bool_func()
56
{
57
return
true
;
58
}
59
60
void
fix_length_and_dec()
61
{
62
decimals= 0;
63
max_length= 1;
64
}
65
66
uint32_t decimal_precision()
const
67
{
68
return
1;
69
}
70
};
71
72
}
/* namespace function */
73
}
/* namespace item */
74
}
/* namespace drizzled */
75
drizzled::Session
Definition:
session.h:81
drizzled::item::function::Boolean
Definition:
boolean.h:36
drizzled::Item
Definition:
item.h:56
drizzled::Item_int_func
Definition:
int.h:28
drizzled
item
function
boolean.h
Generated on Fri May 23 2014 13:09:06 for drizzle by
1.8.7