33 using namespace opencog;
45 throw InvalidParamException(TRACE_INFO,
46 "Cannot create a fully grounded DeleteLink!");
58 for (
const Handle& h : oset)
60 Type t = h->getType();
61 if (VARIABLE_NODE != t)
62 as->removeAtom(h,
true);
83 throw InvalidParamException(TRACE_INFO,
84 "Expecting a DeleteLink, got %s", tname.c_str());
DeleteLink(const HandleSeq &, TruthValuePtr tv=TruthValue::DEFAULT_TV(), AttentionValuePtr av=AttentionValue::DEFAULT_AV())
std::vector< Handle > HandleSeq
a list of handles
std::shared_ptr< TruthValue > TruthValuePtr
std::shared_ptr< AttentionValue > AttentionValuePtr
ClassServer & classserver(ClassServerFactory *=ClassServer::createInstance)
static const Handle UNDEFINED
virtual Handle execute(AtomSpace *=NULL) const
const std::string & getTypeName(Type type)
unsigned short Type
type of Atoms, represented as short integer (16 bits)