22 using namespace opencog;
50 if (NUMBER_NODE == t)
return Handle(h);
54 throw InvalidParamException(TRACE_INFO,
55 "Expecteing a FreeLink (PlusLink, TimesLink, etc");
66 if (DELETE_LINK == hr->getType())
94 "cog-execute!",
"exec"));
97 "cog-evaluate!",
"exec"));
100 "cog-reduce!",
"exec"));
105 #if PYTHON_BUG_IS_FIXED
static TruthValuePtr do_evaluate(AtomSpace *, Handle)
void opencog_exec_init(void)
static std::vector< FunctionWrap * > _binders
static LinkPtr factory(LinkPtr)
std::shared_ptr< TruthValue > TruthValuePtr
Wrapper class, to invoke misc extension code from guile.
static TruthValuePtr ss_evaluate(AtomSpace *atomspace, const Handle &h)
ClassServer & classserver(ClassServerFactory *=ClassServer::createInstance)
static const Handle UNDEFINED
static FreeLinkPtr FreeLinkCast(const Handle &h)
std::shared_ptr< FreeLink > FreeLinkPtr
bool remove_atom(Handle h, bool recursive=false)
static LinkPtr LinkCast(const Handle &h)
Handle execute(const Handle &expr)
static Handle ss_reduce(AtomSpace *atomspace, const Handle &h)
unsigned short Type
type of Atoms, represented as short integer (16 bits)
static Handle ss_execute(AtomSpace *atomspace, const Handle &h)
Handle add_atom(AtomPtr atom, bool async=false)