~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/abs.h

  • Committer: Monty Taylor
  • Date: 2009-04-25 20:29:54 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 1003.
  • Revision ID: mordred@inaugust.com-20090425202954-slopmkjj7vxal5lk
Migrated archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef PLUGIN_MATH_FUNCTIONS_ABS_H
21
 
#define PLUGIN_MATH_FUNCTIONS_ABS_H
 
20
#ifndef DRIZZLED_FUNCTION_MATH_ABS_H
 
21
#define DRIZZLED_FUNCTION_MATH_ABS_H
22
22
 
23
23
#include <drizzled/function/func.h>
24
24
#include <drizzled/function/num1.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
class Item_func_abs :public Item_func_num1
30
27
{
31
28
public:
32
 
  Item_func_abs() :Item_func_num1() {}
 
29
  Item_func_abs(Item *a) :Item_func_num1(a) {}
33
30
  double real_op();
34
31
  int64_t int_op();
35
32
  my_decimal *decimal_op(my_decimal *);
36
33
  const char *func_name() const { return "abs"; }
37
34
  void fix_length_and_dec();
38
 
  bool check_argument_count(int n) { return n == 1; }
 
35
  bool check_vcol_func_processor(unsigned char *)
 
36
  { return false; }
 
37
 
39
38
};
40
39
 
41
 
} /* namespace drizzled */
42
 
 
43
 
#endif /* PLUGIN_MATH_FUNCTIONS_ABS_H */
 
40
#endif /* DRIZZLED_FUNCTION_MATH_ABS_H */