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

#include <HandleSetIndex.h>

Public Member Functions

void insert (Handle h, const UnorderedHandleSet &uset)
 
const UnorderedHandleSetget (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
 

Detailed Description

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.

Member Function Documentation

const UnorderedHandleSet& opencog::HandleSetIndex::get ( Handle  h) const
inline

Definition at line 52 of file HandleSetIndex.h.

References idx.

+ Here is the caller graph for this function:

void opencog::HandleSetIndex::insert ( Handle  h,
const UnorderedHandleSet uset 
)
inline

Definition at line 48 of file HandleSetIndex.h.

References idx.

+ Here is the caller graph for this function:

void opencog::HandleSetIndex::remove ( Handle  h)
inline

Definition at line 60 of file HandleSetIndex.h.

References idx.

+ Here is the caller graph for this function:

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.

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

Definition at line 64 of file HandleSetIndex.h.

References idx.

Member Data Documentation

std::map<Handle, const UnorderedHandleSet> opencog::HandleSetIndex::idx
private

Definition at line 45 of file HandleSetIndex.h.


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