Go to the documentation of this file.
16 #include <boost/bind.hpp>
17 #include <boost/function.hpp>
20 #ifdef HAVE_LIBBOOST_THREAD
21 #include <boost/thread.hpp>
40 template <
class T,
class Time>
41 class Signal :
public SignalBase<Time> {
59 #ifdef HAVE_LIBBOOST_THREAD
60 typedef boost::try_mutex
Mutex;
80 virtual void get(std::ostream &value)
const;
81 virtual void set(std::istringstream &value);
82 virtual void trace(std::ostream &os)
const;
88 virtual void setFunction(boost::function2<T &, T &, Time> t,
89 Mutex *mutexref = NULL);
95 virtual const T &
access(
const Time &t);
99 virtual std::ostream &
display(std::ostream &os)
const;
106 aClassName =
typeid(
this).
name();
120 #endif // #ifndef __SIGNAL_HH
virtual void recompute(const Time &t)
Signals link I/O ports of entities. They can be constant-valued signals, or copy the value of a heap ...
static const SignalType SIGNAL_TYPE_DEFAULT
virtual void get(std::ostream &value) const
virtual Signal< T, Time > & operator=(const T &t)
virtual const T & operator()(const Time &t)
virtual const T & accessCopy() const
virtual const T & access(const Time &t)
virtual void setReference(const T *t, Mutex *mutexref=NULL)
virtual void getClassName(std::string &aClassName) const
virtual void setFunction(boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL)
const T & setTcopy(const T &t)
boost::function2< T &, T &, Time > Tfunction
virtual void trace(std::ostream &os) const
virtual void setConstant(const T &t)
virtual void set(std::istringstream &value)
virtual std::ostream & display(std::ostream &os) const
const static bool KEEP_REFERENCE_DEFAULT
The base class for signals: not to be used as such.
virtual void setReferenceNonConstant(T *t, Mutex *mutexref=NULL)
void setKeepReference(const bool &b)
dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Aug 2 2024 08:36:38