~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/function.h

  • Committer: Monty Taylor
  • Date: 2009-12-25 08:50:15 UTC
  • mto: This revision was merged to the branch mainline in revision 1255.
  • Revision ID: mordred@inaugust.com-20091225085015-83sux5qsvy312gew
MEM_ROOT == memory::Root

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <vector>
29
29
#include <functional>
30
30
 
31
 
typedef struct st_mem_root MEM_ROOT;
32
31
class Item_func;
33
32
 
34
33
namespace drizzled
35
34
{
 
35
 
 
36
namespace memory
 
37
{
 
38
  class Root;
 
39
}
 
40
 
36
41
namespace plugin
37
42
{
38
43
 
41
46
 */
42
47
class Function
43
48
  : public Plugin,
44
 
    public std::unary_function<MEM_ROOT*, Item_func *>
 
49
    public std::unary_function<drizzled::memory::Root*, Item_func *>
45
50
{
46
51
  Function();
47
52
  Function(const Function &);
49
54
public:
50
55
  Function(std::string in_name)
51
56
   : Plugin(in_name, "Function"),
52
 
     std::unary_function<MEM_ROOT*, Item_func *>()
 
57
     std::unary_function<drizzled::memory::Root*, Item_func *>()
53
58
  { }
54
59
  virtual result_type operator()(argument_type root) const= 0;
55
60
  virtual ~Function() {}