|
OpenCog Framework
Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
|
#include <NodeIndex.h>
Public Member Functions | |
| NodeIndex () | |
| void | insertAtom (Atom *a) |
| void | removeAtom (Atom *a) |
| void | resize () |
| size_t | size () const |
| Atom * | getAtom (Type type, const std::string &str) const |
| UnorderedHandleSet | getHandleSet (Type type, const std::string &, bool subclass) const |
| template<typename OutputIterator > | |
| OutputIterator | getHandleSet (OutputIterator result, Type type, const std::string &name, bool subclass) const |
Private Attributes | |
| std::vector< NameIndex > | idx |
Implements an (type, name) index array of RB-trees (C++ set) That is, given only the type and name of an atom, this will return the corresponding handle of that atom.
Definition at line 42 of file NodeIndex.h.
| NodeIndex::NodeIndex | ( | ) |
Definition at line 29 of file NodeIndex.cc.
References resize().
Definition at line 63 of file NodeIndex.h.
References opencog::StringIndex::get(), and idx.
Here is the caller graph for this function:| UnorderedHandleSet NodeIndex::getHandleSet | ( | Type | type, |
| const std::string & | name, | ||
| bool | subclass | ||
| ) | const |
Definition at line 46 of file NodeIndex.cc.
References python.atom_type_names::atom, opencog::classserver(), getAtom(), opencog::Atom::getHandle(), and idx.
|
inline |
Definition at line 72 of file NodeIndex.h.
References python.atom_type_names::atom, opencog::classserver(), getAtom(), opencog::Atom::getHandle(), idx, and python.bindlink::result.
|
inline |
Definition at line 50 of file NodeIndex.h.
References opencog::Atom::getType(), idx, and opencog::NameIndex::insertAtom().
Here is the caller graph for this function:
|
inline |
Definition at line 55 of file NodeIndex.h.
References opencog::Atom::getType(), idx, and opencog::NameIndex::removeAtom().
Here is the caller graph for this function:| void NodeIndex::resize | ( | ) |
Definition at line 34 of file NodeIndex.cc.
References opencog::classserver(), and idx.
Here is the caller graph for this function:| size_t NodeIndex::size | ( | void | ) | const |
Definition at line 39 of file NodeIndex.cc.
References idx.
Here is the caller graph for this function:
|
private |
Definition at line 45 of file NodeIndex.h.