1 /* === S I N F G =========================================================== */
2 /*! \file valuenode_scale.h
3 ** \brief Template Header
5 ** $Id: valuenode_scale.h,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SINFG_VALUENODE_SCALE_H
25 #define __SINFG_VALUENODE_SCALE_H
27 /* === H E A D E R S ======================================================= */
29 #include "valuenode.h"
31 /* === M A C R O S ========================================================= */
33 /* === C L A S S E S & S T R U C T S ======================================= */
37 struct ValueNode_Scale : public LinkableValueNode
39 typedef etl::handle<ValueNode_Scale> Handle;
40 typedef etl::handle<const ValueNode_Scale> ConstHandle;
43 ValueNode::RHandle value_node;
44 ValueNode::RHandle scalar;
50 //static Handle create(ValueBase::Type id=ValueBase::TYPE_NIL);
52 //static Handle create(ValueNode::Handle value_node, Real scalar);
54 virtual ~ValueNode_Scale();
57 bool set_value_node(const ValueNode::Handle &a);
60 ValueNode::Handle get_value_node()const;
62 void set_scalar(Real x);
64 bool set_scalar(const ValueNode::Handle &x);
66 ValueNode::Handle get_scalar()const;
71 virtual ValueNode::LooseHandle get_link_vfunc(int i)const;
73 virtual int link_count()const;
75 virtual String link_name(int i)const;
76 virtual int get_link_index_from_name(const String &name)const;
78 virtual ValueBase operator()(Time t)const;
80 virtual String get_name()const;
82 virtual String get_local_name()const;
84 virtual String link_local_name(int i)const;
87 virtual bool set_link_vfunc(int i,ValueNode::Handle x);
89 virtual LinkableValueNode* create_new()const;
92 using sinfg::LinkableValueNode::get_link_vfunc;
93 using sinfg::LinkableValueNode::set_link_vfunc;
94 static bool check_type(ValueBase::Type type);
95 static ValueNode_Scale* create(const ValueBase &x);
96 }; // END of class ValueNode_Scale
98 }; // END of namespace sinfg
100 /* === E N D =============================================================== */