1 /* === S I N F G =========================================================== */
2 /*! \file valuenode_reference.cpp
3 ** \brief Template File
5 ** $Id: valuenode_reference.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_reference.h"
32 #include "valuenode_const.h"
37 /* === U S I N G =========================================================== */
41 using namespace sinfg;
43 /* === M A C R O S ========================================================= */
45 /* === G L O B A L S ======================================================= */
47 /* === P R O C E D U R E S ================================================= */
49 /* === M E T H O D S ======================================================= */
51 ValueNode_Reference::ValueNode_Reference(const ValueBase::Type &x):
56 ValueNode_Reference::ValueNode_Reference(const ValueNode::Handle &x):
57 LinkableValueNode(x->get_type())
63 ValueNode_Reference::create(const ValueBase &x)
65 return new ValueNode_Reference(ValueNode_Const::create(x));
69 ValueNode_Reference::create_new()const
71 return new ValueNode_Reference(get_type());
74 ValueNode_Reference::~ValueNode_Reference()
80 ValueNode_Reference::set_link_vfunc(int i,ValueNode::Handle x)
83 if(x->get_type()!=get_type() && !PlaceholderValueNode::Handle::cast_dynamic(x))
86 signal_child_changed()(i);signal_value_changed()();
90 ValueNode::LooseHandle
91 ValueNode_Reference::get_link_vfunc(int i)const
98 ValueNode_Reference::link_count()const
104 ValueNode_Reference::link_local_name(int i)const
111 ValueNode_Reference::link_name(int i)const
117 ValueNode_Reference::get_link_index_from_name(const String &name)const
122 throw Exception::BadLinkName(name);
126 ValueNode_Reference::operator()(Time t)const
133 ValueNode_Reference::get_name()const
139 ValueNode_Reference::get_local_name()const
141 return _("Reference");
145 ValueNode_Reference::check_type(ValueBase::Type type)