26 #ifndef _OPENCOG_NODE_H
27 #define _OPENCOG_NODE_H
29 #include <opencog/util/oc_assert.h>
47 void init(
const std::string&);
50 { OC_ASSERT(
false,
"Node: bad use of copy ctor"); }
94 std::string
toString(std::string indent =
"");
116 {
return std::dynamic_pointer_cast<
Node>(
a); }
119 #define createNode std::make_shared<Node>
124 #endif // _OPENCOG_NODE_H
AttentionValuePtr getAttentionValue()
Node(Type t, const std::string &s, TruthValuePtr tv=TruthValue::DEFAULT_TV(), AttentionValuePtr av=AttentionValue::DEFAULT_AV())
std::shared_ptr< Atom > AtomPtr
std::shared_ptr< TruthValue > TruthValuePtr
std::shared_ptr< AttentionValue > AttentionValuePtr
std::string toString(std::string indent="")
static NodePtr NodeCast(const Handle &h)
virtual bool operator!=(const Atom &) const
void init(const std::string &)
std::string toShortString(std::string indent="")
const std::string & getName() const
static TruthValuePtr DEFAULT_TV()
static AttentionValuePtr DEFAULT_AV()
to be used as default attention value
std::shared_ptr< Node > NodePtr
TruthValuePtr getTruthValue()
unsigned short Type
type of Atoms, represented as short integer (16 bits)
virtual bool operator==(const Atom &) const