00001 /* === S Y N F I G ========================================================= */ 00022 /* ========================================================================= */ 00023 00024 /* === S T A R T =========================================================== */ 00025 00026 #ifndef __SYNFIG_VALUENODE_NOT_H 00027 #define __SYNFIG_VALUENODE_NOT_H 00028 00029 /* === H E A D E R S ======================================================= */ 00030 00031 #include "valuenode.h" 00032 00033 /* === M A C R O S ========================================================= */ 00034 00035 /* === C L A S S E S & S T R U C T S ======================================= */ 00036 00037 namespace synfig { 00038 00039 class ValueNode_Not : public LinkableValueNode 00040 { 00041 ValueNode::RHandle link_; 00042 00043 public: 00044 typedef etl::handle<ValueNode_Not> Handle; 00045 typedef etl::handle<const ValueNode_Not> ConstHandle; 00046 00047 ValueNode_Not(const ValueBase &x); 00048 00049 virtual ValueBase operator()(Time t)const; 00050 00051 virtual ~ValueNode_Not(); 00052 00053 virtual String get_name()const; 00054 virtual String get_local_name()const; 00055 00056 00057 virtual ValueNode::LooseHandle get_link_vfunc(int i)const; 00058 virtual int link_count()const; 00059 virtual String link_name(int i)const; 00060 00061 virtual String link_local_name(int i)const; 00062 virtual int get_link_index_from_name(const String &name)const; 00063 00064 protected: 00065 LinkableValueNode* create_new()const; 00066 virtual bool set_link_vfunc(int i,ValueNode::Handle x); 00067 00068 public: 00069 using synfig::LinkableValueNode::get_link_vfunc; 00070 00071 using synfig::LinkableValueNode::set_link_vfunc; 00072 static bool check_type(ValueBase::Type type); 00073 static ValueNode_Not* create(const ValueBase &x); 00074 }; // END of class ValueNode_Not 00075 00076 }; // END of namespace synfig 00077 00078 /* === E N D =============================================================== */ 00079 00080 #endif