39 #ifndef MULTIVECTOR_HPP 40 #define MULTIVECTOR_HPP 42 #include "../rtt-config.h" 45 #ifdef OS_HAVE_STREAMS 51 #ifdef ORO_PRAGMA_INTERFACE 71 template <
unsigned S = 6,
class T =
double>
94 operator const T* ()
const 115 for (
unsigned int i = 0; i < S;++i )
124 for (
unsigned int i = 0; i < S;++i )
134 template<
class Alloc>
137 for (
unsigned int i = 0; i < S;++i )
138 if ( i < vect.size() )
152 for (
unsigned int i = 0; i < S; ++i )
153 data[ i ] += d.
data[ i ];
166 for (
unsigned int i = 0; i < S; ++i )
167 data[ i ] *= d.
data[ i ];
180 for (
unsigned int i = 0; i < S; ++i )
196 for (
unsigned int i = 0; i < S; ++i )
197 tmp.
data[ i ] = data[ i ] - d.
data[ i ];
206 for (
unsigned int i = 0; i < S; ++i )
207 tmp.
data[ i ] = - data[ i ];
222 for (
unsigned int i = 0; i < S; ++i )
223 tmp[ i ] = data[ i ] + d.
data[ i ];
238 for (
unsigned int i = 0; i < S; ++i )
239 tmp[ i ] = data[ i ] * d.
data[ i ];
248 for (
unsigned int i = 0; i < S; ++i )
249 tmp[ i ] = data[ i ] / d;
264 for (
unsigned int i = 0; i < S; ++i )
265 tmp[ i ] = d * data[ i ];
279 for (
unsigned int i = 0; i < S; ++i )
280 data[ i ] = d.
data[ i ];
294 for (
unsigned int i = 0; i < S; ++i )
295 if (data[ i ] != d.
data[ i ])
309 for (
unsigned int i = 0; i < S; ++i )
310 if (data[ i ] != d.
data[ i ])
319 template<
class Alloc>
323 for (
unsigned int i = 0; i < S; ++i )
331 template<
class Alloc>
334 if ( vect.size() != S )
336 for (
unsigned int i = 0; i < S; ++i )
366 for (
unsigned int i = 0; i < S; ++i )
385 template<
unsigned S,
typename D>
391 template<
unsigned S,
typename D>
397 template<
unsigned S,
typename D>
427 template <
unsigned int S,
class T>
428 std::ostream &operator<<(std::ostream &os, MultiVector<S,T> &q)
430 #ifdef OS_HAVE_STREAMS 431 std::stringstream ss;
433 for (
unsigned int i = 0; i < (S - 1) ; i++) {
436 ss << q[ S - 1 ] <<
")";
445 template <
unsigned int S,
class T>
448 #ifdef OS_HAVE_STREAMS 452 for (
unsigned int i = 0; i < (S - 1) ; i++) {
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.