|
OpenCog Framework
Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
|
#include <DeleteLink.h>
Inheritance diagram for opencog::DeleteLink:
Collaboration diagram for opencog::DeleteLink:Additional Inherited Members | |
Static Public Member Functions inherited from opencog::FunctionLink | |
| static Handle | do_execute (AtomSpace *, const Handle &) |
| static LinkPtr | factory (LinkPtr) |
| static Handle | factory (Type, const HandleSeq &) |
Protected Types inherited from opencog::Atom | |
| typedef std::shared_ptr< InSet > | InSetPtr |
Protected Attributes inherited from opencog::FreeLink | |
| HandleSeq | _varseq |
| std::map< Handle, unsigned int > | _index |
Protected Attributes inherited from opencog::Link | |
| HandleSeq | _outgoing |
Protected Attributes inherited from opencog::Atom | |
| UUID | _uuid |
| AtomTable * | _atomTable |
| Type | _type |
| char | _flags |
| TruthValuePtr | _truthValue |
| AttentionValuePtr | _attentionValue |
| std::mutex | _mtx |
| InSetPtr | _incoming_set |
The DeleteLink is used to delete any atom that is not a VariableNode. That is, if in attempts to insert a DeleteLink into the atomspace, and the DeleteLink does not have any VariableNodes in it, the insertion will fail, and furthermore, the atom(s) that it is holding (in its outgoing set) will be deleted from the atomspace! In essence, the DeleteLink is a link that can never be grounded!
Definition at line 46 of file DeleteLink.h.
| DeleteLink::DeleteLink | ( | const HandleSeq & | oset, |
| TruthValuePtr | tv = TruthValue::DEFAULT_TV(), |
||
| AttentionValuePtr | av = AttentionValue::DEFAULT_AV() |
||
| ) |
Definition at line 68 of file DeleteLink.cc.
References init().
| DeleteLink::DeleteLink | ( | Link & | l | ) |
Definition at line 75 of file DeleteLink.cc.
References opencog::classserver(), opencog::Atom::getType(), opencog::ClassServer::getTypeName(), and init().
|
protected |
Definition at line 35 of file DeleteLink.cc.
References opencog::FreeLink::_varseq.
Here is the caller graph for this function: