6 #ifndef DYNAMIC_GRAPH_SIGNAL_PTR_T_CPP
7 #define DYNAMIC_GRAPH_SIGNAL_PTR_T_CPP
10 #undef VP_TEMPLATE_DEBUG_MODE
11 #define VP_TEMPLATE_DEBUG_MODE 0
15 template <
class T,
class Time>
20 "In SignalPtr: SIN ptr not set.",
" (in signal <%s>)",
26 template <
class T,
class Time>
29 <<
"->" << signalPtr << std::endl;
33 "In SignalPtr: SIN ptr not set.",
34 " (in signal <%s>)", getName().c_str());
40 template <
class T,
class Time>
49 dgTDEBUG(5) <<
"# In T = " << getName() <<
" ="
54 dgTDEBUG(25) <<
"Cast ok." << std::endl;
60 template <
class T,
class Time>
62 if ((isPlugged()) && (!autoref())) {
63 return getPtr()->needUpdate(t);
68 template <
class T,
class Time>
70 if ((isPlugged()) && (!autoref())) {
71 return getPtr()->getTime();
76 template <
class T,
class Time>
81 template <
class T,
class Time>
87 }
else if (autoref()) {
92 return getPtr()->access(t);
96 template <
class T,
class Time>
103 return getPtr()->accessCopy();
105 template <
class T,
class Time>
107 std::string LeaderLocalName;
108 std::string LeaderNodeName;
110 if (isPlugged() && !autoref()) {
111 std::string itLocalName, itNodeName;
112 getPtr()->ExtractNodeAndLocalNames(itLocalName, itNodeName);
113 os <<
"\t\"" << itNodeName <<
"\" -> \"" << LeaderNodeName <<
"\""
115 <<
"\t [ headlabel = \"" << LeaderLocalName <<
"\" , taillabel = \""
116 << itLocalName <<
"\", fontsize=7, fontcolor=red ]" << std::endl;
121 template <
class T,
class Time>
124 <<
"||" << signalPtr;
127 if ((isPlugged()) && (!autoref())) {
128 os <<
" -->-- PLUGGED";
133 os <<
" AUTOPLUGGED";
140 template <
class T,
class Time>
145 std::string next2)
const {
147 if ((isPlugged()) && (!autoref())) {
148 getPtr()->displayDependencies(