24 #ifndef _OPENCOG_SUBSTITUTOR
25 #define _OPENCOG_SUBSTITUTOR
48 const std::map<Handle, Handle> *
_vmap;
52 std::map<Handle,Handle>::const_iterator it =
_vmap->find(expr);
53 if (
_vmap->end() != it )
63 for (
const Handle& h : lexpr->getOutgoingSet())
66 oset_results.push_back(hg);
87 throw InvalidParamException(TRACE_INFO,
88 "Asked to substitute a null expression");
102 #endif // _OPENCOG_SUBSTITUTOR
const std::map< Handle, Handle > * _vmap
std::vector< Handle > HandleSeq
a list of handles
Substitutor(AtomSpace *as)
std::shared_ptr< Link > LinkPtr
static const Handle UNDEFINED
Handle substitute(const Handle &expr, const std::map< Handle, Handle > &vars)
static LinkPtr LinkCast(const Handle &h)
TruthValuePtr getTruthValue()
Handle walk_tree(const Handle &expr)
Handle add_atom(AtomPtr atom, bool async=false)