~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function_container.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-10 09:27:50 UTC
  • mto: (2430.1.6 rf)
  • mto: This revision was merged to the branch mainline in revision 2436.
  • Revision ID: olafvdspek@gmail.com-20111010092750-ryxgmn7zj5yvxfkf
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_FUNCTION_CONTAINER_H
22
 
#define DRIZZLED_FUNCTION_CONTAINER_H
 
21
#pragma once
23
22
 
24
 
#include <set>
25
23
#include <boost/unordered_map.hpp>
26
 
#include "drizzled/util/string.h"
 
24
#include <drizzled/plugin/table_function.h>
 
25
#include <drizzled/util/string.h>
27
26
 
28
27
namespace drizzled {
29
28
 
30
 
struct Native_func_registry;
31
 
typedef boost::unordered_map<std::string, Native_func_registry *, util::insensitive_hash, util::insensitive_equal_to> NativeFunctionsMap;
32
 
 
33
 
class FunctionContainer {
 
29
class FunctionContainer 
 
30
{
34
31
public:
35
 
  static NativeFunctionsMap &getMap();
 
32
  typedef boost::unordered_map<std::string, Create_func*, util::insensitive_hash, util::insensitive_equal_to> Map;
 
33
 
 
34
  static const Map& getMap();
 
35
  static Map& getMutableMap();
36
36
};
37
37
 
38
38
} /* namepsace drizzled */
39
39
 
40
 
#endif /* DRIZZLED_FUNCTION_CONTAINER_H */