22 #ifndef _OPENCOG_STRINGINDEX_H
23 #define _OPENCOG_STRINGINDEX_H
43 std::map<std::string, Atom*>
idx;
48 idx.insert(std::pair<std::string, Atom*>(str, a));
50 Atom*
get(
const std::string& str)
const
52 std::map<std::string, Atom*>::const_iterator it;
54 if (it !=
idx.end())
return it->second;
57 void remove(
const std::string& str)
70 #endif // _OPENCOG_STRINGINDEX_H
void insert(const std::string &str, Atom *a)
std::map< std::string, Atom * > idx