6 #ifndef DYNAMIC_GRAPH_SIGNAL_ARRAY_H 7 #define DYNAMIC_GRAPH_SIGNAL_ARRAY_H 20 class SignalArray_const {
40 rank(siga.getSize()) {
41 for (
unsigned int i = 0; i <
rank; ++i) const_array[i] = &siga[i];
47 rank(siga.getSize()) {
48 for (
unsigned int i = 0; i <
rank; ++i) const_array[i] = &siga[i];
57 const_array.resize(size);
59 const_array[rank++] = el;
70 return *const_array[idx];
94 mutable std::vector<SignalBase<Time> *>
array;
111 for (
unsigned int i = 0; i <
rank; ++i) array[i] = &siga[i];
143 template <
class Time>
virtual SignalBase< Time > & operator[](const unsigned int &idx) const
dynamicgraph::SignalArray_const< double > sig
static const int DEFAULT_SIZE
void addElmt(const SignalBase< Time > *el)
std::vector< const SignalBase< Time > * > const_array
The base class for signals: not to be used as such.
virtual unsigned int getSize() const
virtual SignalArray_const< Time > & operator<<(const SignalBase< Time > &sig)
void addElmt(SignalBase< Time > *el)
virtual const SignalBase< Time > & operator[](const unsigned int &idx) const
std::vector< SignalBase< Time > * > array
DYNAMIC_GRAPH_DLLAPI SignalArray< int > sotNOSIGNAL