Signals link I/O ports of entities. They can be constant-valued signals, or copy the value of a heap variable, or evaluated as a function. See SignalPtr and SignalTimeDependent for other types of signals, and SignalArray for a way of grouping them. More...
#include <fwd.hh>
Public Types | |
| typedef int * | Mutex |
| typedef int * | MutexError |
Public Member Functions | |
| virtual const T & | access (const Time &t) |
| virtual const T & | accessCopy () const |
| virtual std::ostream & | display (std::ostream &os) const |
| virtual void | get (std::ostream &value) const |
| virtual void | getClassName (std::string &aClassName) const |
| bool | getKeepReference () |
| operator const T & () const | |
| virtual const T & | operator() (const Time &t) |
| virtual Signal< T, Time > & | operator= (const T &t) |
| virtual void | recompute (const Time &t) |
| virtual void | set (std::istringstream &value) |
| virtual void | setConstant (const T &t) |
| virtual void | setFunction (boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL) |
| void | setKeepReference (const bool &b) |
| virtual void | setReference (const T *t, Mutex *mutexref=NULL) |
| virtual void | setReferenceNonConstant (T *t, Mutex *mutexref=NULL) |
| Signal (std::string name) | |
| virtual void | trace (std::ostream &os) const |
| virtual | ~Signal () |
Protected Types | |
| enum | SignalType { CONSTANT, REFERENCE, REFERENCE_NON_CONST, FUNCTION } |
Protected Attributes | |
| bool | copyInit |
| bool | keepReference |
| Mutex * | providerMutex |
| SignalType | signalType |
| T * | Tcopy |
| T | Tcopy1 |
| T | Tcopy2 |
| boost::function2< T &, T &, Time > | Tfunction |
| const T * | Treference |
| T * | TreferenceNonConst |
Static Protected Attributes | |
| const static bool | KEEP_REFERENCE_DEFAULT = false |
| static const SignalType | SIGNAL_TYPE_DEFAULT = CONSTANT |
Private Member Functions | |
| T & | getTwork () |
| const T & | getTwork () const |
| const T & | setTcopy (const T &t) |
| const T & | switchTcopy () |
Signals link I/O ports of entities. They can be constant-valued signals, or copy the value of a heap variable, or evaluated as a function. See SignalPtr and SignalTimeDependent for other types of signals, and SignalArray for a way of grouping them.
There are several ways to specify the value output by a signal:
| typedef int* dynamicgraph::Signal< T, Time >::Mutex |
Definition at line 63 of file include/dynamic-graph/signal.h.
| typedef int* dynamicgraph::Signal< T, Time >::MutexError |
Definition at line 64 of file include/dynamic-graph/signal.h.
|
protected |
| Enumerator | |
|---|---|
| CONSTANT | |
| REFERENCE | |
| REFERENCE_NON_CONST | |
| FUNCTION | |
Definition at line 43 of file include/dynamic-graph/signal.h.
| dynamicgraph::Signal< T, Time >::Signal | ( | std::string | name | ) |
Definition at line 24 of file signal.t.cpp.
|
inlinevirtual |
Definition at line 77 of file include/dynamic-graph/signal.h.
|
virtual |
Definition at line 139 of file signal.t.cpp.
|
virtual |
Definition at line 134 of file signal.t.cpp.
|
virtual |
Definition at line 218 of file signal.t.cpp.
|
virtual |
Definition at line 37 of file signal.t.cpp.
|
inlinevirtual |
Definition at line 105 of file include/dynamic-graph/signal.h.
|
inline |
Definition at line 91 of file include/dynamic-graph/signal.h.
|
private |
Definition at line 71 of file signal.t.cpp.
|
private |
|
inline |
Definition at line 104 of file include/dynamic-graph/signal.h.
|
inlinevirtual |
Definition at line 102 of file include/dynamic-graph/signal.h.
|
virtual |
Definition at line 195 of file signal.t.cpp.
|
inlinevirtual |
Definition at line 96 of file include/dynamic-graph/signal.h.
|
virtual |
Definition at line 32 of file signal.t.cpp.
|
virtual |
Definition at line 98 of file signal.t.cpp.
|
virtual |
Definition at line 124 of file signal.t.cpp.
|
inline |
Definition at line 92 of file include/dynamic-graph/signal.h.
|
virtual |
Definition at line 105 of file signal.t.cpp.
|
virtual |
Definition at line 114 of file signal.t.cpp.
|
private |
Definition at line 56 of file signal.t.cpp.
|
private |
Definition at line 87 of file signal.t.cpp.
|
virtual |
Definition at line 42 of file signal.t.cpp.
|
protected |
Definition at line 49 of file include/dynamic-graph/signal.h.
|
staticprotected |
Definition at line 56 of file include/dynamic-graph/signal.h.
|
protected |
Definition at line 55 of file include/dynamic-graph/signal.h.
|
protected |
Definition at line 68 of file include/dynamic-graph/signal.h.
|
staticprotected |
Definition at line 44 of file include/dynamic-graph/signal.h.
|
protected |
Definition at line 46 of file include/dynamic-graph/signal.h.
|
protected |
Definition at line 48 of file include/dynamic-graph/signal.h.
|
protected |
Definition at line 47 of file include/dynamic-graph/signal.h.
|
protected |
Definition at line 47 of file include/dynamic-graph/signal.h.
|
protected |
Definition at line 53 of file include/dynamic-graph/signal.h.
|
protected |
Definition at line 51 of file include/dynamic-graph/signal.h.
|
protected |
Definition at line 52 of file include/dynamic-graph/signal.h.