synfig-core  1.0.3
valuenode_reciprocal.h
Go to the documentation of this file.
1 /* === S Y N F I G ========================================================= */
23 /* ========================================================================= */
24 
25 /* === S T A R T =========================================================== */
26 
27 #ifndef __SYNFIG_VALUENODE_RECIPROCAL_H
28 #define __SYNFIG_VALUENODE_RECIPROCAL_H
29 
30 /* === H E A D E R S ======================================================= */
31 
32 #include <synfig/valuenode.h>
33 
34 /* === M A C R O S ========================================================= */
35 
36 /* === C L A S S E S & S T R U C T S ======================================= */
37 
38 namespace synfig {
39 
41 {
42  ValueNode::RHandle link_;
43  ValueNode::RHandle epsilon_;
44  ValueNode::RHandle infinite_;
45 
46 public:
47  typedef etl::handle<ValueNode_Reciprocal> Handle;
48  typedef etl::handle<const ValueNode_Reciprocal> ConstHandle;
49 
51 
52  virtual ValueBase operator()(Time t)const;
53 
54  virtual ~ValueNode_Reciprocal();
55 
56  virtual String get_name()const;
57  virtual String get_local_name()const;
58 
59  virtual ValueNode::LooseHandle get_link_vfunc(int i)const;
60 
61 protected:
63  virtual bool set_link_vfunc(int i,ValueNode::Handle x);
64 
65 public:
67 
69  static bool check_type(Type &type);
70  static ValueNode_Reciprocal* create(const ValueBase &x);
71  virtual Vocab get_children_vocab_vfunc()const;
72 }; // END of class ValueNode_Reciprocal
73 
74 }; // END of namespace synfig
75 
76 /* === E N D =============================================================== */
77 
78 #endif