~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/function.h

  • Committer: Lee Bieber
  • Date: 2010-12-23 23:11:00 UTC
  • mfrom: (2024.1.1 clean)
  • Revision ID: kalebral@gmail.com-20101223231100-0rqirgz7ugkl10yp
Merge Brian - session list cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define DRIZZLED_PLUGIN_FUNCTION_H
22
22
 
23
23
 
24
 
#include <drizzled/item/func.h>
25
 
#include <drizzled/plugin.h>
26
 
#include <drizzled/plugin/plugin.h>
 
24
#include "drizzled/plugin/plugin.h"
 
25
#include "drizzled/item/func.h"
27
26
 
28
27
#include <string>
29
28
#include <vector>
30
29
#include <functional>
31
30
 
32
 
#include <boost/unordered_map.hpp>
33
 
 
34
 
#include "drizzled/visibility.h"
35
 
 
36
31
namespace drizzled
37
32
{
38
33
 
43
38
  class Root;
44
39
}
45
40
 
46
 
namespace util
47
 
{
48
 
struct insensitive_hash;
49
 
struct insensitive_equal_to;
50
 
}
51
 
 
52
41
namespace plugin
53
42
{
54
43
 
55
44
/**
56
45
 * Functions in the server: AKA UDF
57
46
 */
58
 
class DRIZZLED_API Function
 
47
class Function
59
48
  : public Plugin,
60
49
    public std::unary_function<memory::Root*, Item_func *>
61
50
{
80
69
   */
81
70
  static void removePlugin(const plugin::Function *function_obj);
82
71
 
 
72
  /**
 
73
   * Accept a new connection (Protocol object) on one of the configured
 
74
   * listener interfaces.
 
75
   */
83
76
  static const plugin::Function *get(const char *name, size_t len=0);
84
77
 
85
78
  typedef boost::unordered_map<std::string, const plugin::Function *, util::insensitive_hash, util::insensitive_equal_to> UdfMap;
86
 
  typedef boost::unordered_map<std::string, const plugin::Function *, util::insensitive_hash, util::insensitive_equal_to> Map;
87
79
 
88
80
  static const UdfMap &getMap();
89
81
};