~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/log.h

code clean move Item_func_abs, Item_func_int_exp, Item_func_ln, Item_func_log to functions directory

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 DRIZZLED_FUNCTION_MATH_LOG_H
21
 
#define DRIZZLED_FUNCTION_MATH_LOG_H
22
 
 
23
 
#include <drizzled/function/func.h>
24
 
#include <drizzled/function/math/dec.h>
25
 
 
26
 
namespace drizzled
27
 
{
 
20
#ifndef DRIZZLED_FUNCTIONS_LOG_H
 
21
#define DRIZZLED_FUNCTIONS_LOG_H
 
22
 
 
23
#include <drizzled/functions/func.h> 
28
24
 
29
25
class Item_func_log :public Item_dec_func
30
26
{
31
27
public:
32
 
  Item_func_log(Item *a) :Item_dec_func(a) {}
 
28
  Item_func_log(Item *a) :Item_dec_func(a) {} 
33
29
  Item_func_log(Item *a,Item *b) :Item_dec_func(a,b) {}
34
30
  double val_real();
35
31
  const char *func_name() const { return "log"; }
52
48
  const char *func_name() const { return "log10"; }
53
49
};
54
50
 
55
 
} /* namespace drizzled */
56
 
 
57
 
#endif /* DRIZZLED_FUNCTION_MATH_LOG_H */
 
51
#endif /* DRIZZLED_FUNCTIONS_LOG_H */