23 #ifndef _OPENCOG_ASSIGN_LINK_H
24 #define _OPENCOG_ASSIGN_LINK_H
36 class AssignLink :
public FunctionLink
124 {
return std::dynamic_pointer_cast<
AssignLink>(
a); }
127 #define createAssignLink std::make_shared<AssignLink>
148 {
return std::dynamic_pointer_cast<
InsertLink>(
a); }
151 #define createInsertLink std::make_shared<InsertLink>
172 {
return std::dynamic_pointer_cast<
RemoveLink>(
a); }
175 #define createRemoveLink std::make_shared<RemoveLink>
180 #endif // _OPENCOG_ASSIGN_LINK_H
static AssignLinkPtr AssignLinkCast(const Handle &h)
std::vector< Handle > HandleSeq
a list of handles
std::shared_ptr< Atom > AtomPtr
std::shared_ptr< TruthValue > TruthValuePtr
std::shared_ptr< AttentionValue > AttentionValuePtr
std::shared_ptr< AssignLink > AssignLinkPtr
virtual Handle execute(AtomSpace *=NULL) const
RemoveLink(const HandleSeq &, TruthValuePtr tv=TruthValue::DEFAULT_TV(), AttentionValuePtr av=AttentionValue::DEFAULT_AV())
static RemoveLinkPtr RemoveLinkCast(const Handle &h)
InsertLink(const HandleSeq &, TruthValuePtr tv=TruthValue::DEFAULT_TV(), AttentionValuePtr av=AttentionValue::DEFAULT_AV())
static InsertLinkPtr InsertLinkCast(const Handle &h)
AssignLink(const HandleSeq &, TruthValuePtr tv=TruthValue::DEFAULT_TV(), AttentionValuePtr av=AttentionValue::DEFAULT_AV())
virtual Handle execute(AtomSpace *=NULL) const
static TruthValuePtr DEFAULT_TV()
virtual Handle execute(AtomSpace *=NULL) const
static AttentionValuePtr DEFAULT_AV()
to be used as default attention value
std::shared_ptr< InsertLink > InsertLinkPtr
unsigned short Type
type of Atoms, represented as short integer (16 bits)
std::shared_ptr< RemoveLink > RemoveLinkPtr