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

#include <NameIndex.h>

+ Inheritance diagram for opencog::NameIndex:
+ Collaboration diagram for opencog::NameIndex:

Public Member Functions

void insertAtom (Atom *a)
 
void removeAtom (Atom *a)
 
- Public Member Functions inherited from opencog::StringIndex
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
 

Detailed Description

Implements an atom name index as an RB-tree (C++ map) That is, given an atom name, this returns an AtomPtr to that atom. This class can only hold one AtomPtr for a given name. For a multi-name storage, use the NodeIndex, which keys by name and atom type.

Definition at line 40 of file NameIndex.h.

Member Function Documentation

void opencog::NameIndex::insertAtom ( Atom a)
inline

Definition at line 44 of file NameIndex.h.

References python.create_atoms_by_type::a, opencog::Node::getName(), and opencog::StringIndex::insert().

+ Here is the caller graph for this function:

void opencog::NameIndex::removeAtom ( Atom a)
inline

Definition at line 50 of file NameIndex.h.

References python.create_atoms_by_type::a, and opencog::Node::getName().

+ Here is the caller graph for this function:


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