1 /* === S I N F G =========================================================== */
3 ** \brief Template File
5 ** $Id: valuenode_const.cpp,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 /* === H E A D E R S ======================================================= */
31 #include "valuenode_const.h"
36 /* === U S I N G =========================================================== */
40 using namespace sinfg;
42 /* === M A C R O S ========================================================= */
44 /* === G L O B A L S ======================================================= */
46 /* === P R O C E D U R E S ================================================= */
48 /* === M E T H O D S ======================================================= */
50 ValueNode_Const::ValueNode_Const()
56 ValueNode_Const::ValueNode_Const(const ValueBase &x):
57 ValueNode (x.get_type()),
65 ValueNode_Const::create(const ValueBase &x)
67 return new ValueNode_Const(x);
72 ValueNode_Const::clone(const GUID& deriv_guid)const
74 { ValueNode* x(find_value_node(get_guid()^deriv_guid).get()); if(x)return x; }
75 ValueNode* ret(new ValueNode_Const(value));
76 ret->set_guid(get_guid()^deriv_guid);
81 ValueNode_Const::~ValueNode_Const()
87 ValueNode_Const::operator()(Time t)const
94 ValueNode_Const::get_value()const
100 ValueNode_Const::get_value()
106 ValueNode_Const::set_value(const ValueBase &data)
117 ValueNode_Const::get_name()const
123 ValueNode_Const::get_local_name()const
125 return _("Constant");
128 void ValueNode_Const::get_times_vfunc(Node::time_set &set) const