~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/registry.h

  • Committer: Monty Taylor
  • Date: 2009-10-13 06:36:19 UTC
  • mfrom: (1178 staging)
  • mto: (1182.1.1 staging)
  • mto: This revision was merged to the branch mainline in revision 1183.
  • Revision ID: mordred@inaugust.com-20091013063619-zplf8vwn216i9qlb
Merged up with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <map>
24
24
#include <set>
25
25
#include <string>
 
26
#include <vector>
26
27
#include <algorithm>
27
28
#include <functional>
28
29
 
108
109
  typedef typename std::set<T>::iterator iterator;
109
110
  typedef size_t size_type;
110
111
 
111
 
  T find(const char *name, size_t length)
 
112
  T find(const char *name, size_t length) const
112
113
  {
113
114
    std::string find_str(name, length);
114
115
    return find(find_str);
115
116
  }
116
117
 
117
 
  T find(const std::string &name)
 
118
  T find(const std::string &name) const
118
119
  {
119
120
 
120
 
    typename std::map<std::string, T>::iterator find_iter;
 
121
    typename std::map<std::string, T>::const_iterator find_iter;
121
122
    find_iter=  item_map.find(name);
122
123
    if (find_iter != item_map.end())
123
124
      return (*find_iter).second;