OpenCog Framework
Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
|
#include <HandleSetIndex.h>
Public Member Functions | |
void | insert (Handle h, const UnorderedHandleSet &uset) |
const UnorderedHandleSet & | get (Handle h) const |
void | remove (Handle h) |
size_t | size (void) const |
void | remove (bool(*)(const UnorderedHandleSet &)) |
void | remove (bool(*)(Handle)) |
Private Attributes | |
std::map< Handle, const UnorderedHandleSet > | idx |
Implements a Handle index as an RB-tree (C++ map) That is, given a Handle, it will return an UnorderedHandleSet associated with that Handle. This index is the "opposite" to the HandleSeqIndex; the map goes in the opposite direction.
Definition at line 42 of file HandleSetIndex.h.
|
inline |
Definition at line 52 of file HandleSetIndex.h.
References idx.
|
inline |
Definition at line 48 of file HandleSetIndex.h.
References idx.
|
inline |
Definition at line 60 of file HandleSetIndex.h.
References idx.
void HandleSetIndex::remove | ( | bool(*)(const UnorderedHandleSet &) | filter | ) |
Definition at line 27 of file HandleSetIndex.cc.
void HandleSetIndex::remove | ( | bool(*)(Handle) | filter | ) |
Definition at line 32 of file HandleSetIndex.cc.
References idx.
|
inline |
Definition at line 64 of file HandleSetIndex.h.
References idx.
|
private |
Definition at line 45 of file HandleSetIndex.h.