OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
opencog::StringIndex Class Reference

#include <StringIndex.h>

+ Inheritance diagram for opencog::StringIndex:

Public Member Functions

void insert (const std::string &str, Atom *a)
 
Atomget (const std::string &str) const
 
void remove (const std::string &str)
 
size_t size (void) const
 

Private Attributes

std::map< std::string, Atom * > idx
 

Detailed Description

Implements map from string to atom pointers. Used to implement the lookup of atoms according to thier name.

Definition at line 40 of file StringIndex.h.

Member Function Documentation

Atom* opencog::StringIndex::get ( const std::string &  str) const
inline

Definition at line 50 of file StringIndex.h.

References idx.

+ Here is the caller graph for this function:

void opencog::StringIndex::insert ( const std::string &  str,
Atom a 
)
inline

Definition at line 46 of file StringIndex.h.

References idx.

+ Here is the caller graph for this function:

void opencog::StringIndex::remove ( const std::string &  str)
inline

Definition at line 57 of file StringIndex.h.

References idx.

size_t opencog::StringIndex::size ( void  ) const
inline

Definition at line 61 of file StringIndex.h.

References idx.

Member Data Documentation

std::map<std::string, Atom*> opencog::StringIndex::idx
private

Definition at line 43 of file StringIndex.h.


The documentation for this class was generated from the following file: