~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/registry.h

  • Committer: Monty Taylor
  • Date: 2009-08-17 20:54:05 UTC
  • mto: (1115.3.12 captain)
  • mto: This revision was merged to the branch mainline in revision 1121.
  • Revision ID: mordred@inaugust.com-20090817205405-xogz4uoii3c2co4c
Moved UDFs to slot organization.

Show diffs side-by-side

added added

removed removed

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