ValueNode_Not::ValueNode_Not(const ValueBase &x):
LinkableValueNode(x.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
bool value(x.get(bool()));
set_link("link", ValueNode_Const::create(!value));
{
return type==ValueBase::TYPE_BOOL;
}
+
+LinkableValueNode::Vocab
+ValueNode_Not::get_children_vocab_vfunc()const
+{
+ if(children_vocab.size())
+ return children_vocab;
+
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc(ValueBase(),"link")
+ .set_local_name(_("Link"))
+ .set_description(_("Value node used to do the NOT operation"))
+ );
+
+ return ret;
+}