timeSeries value return class More...
#include <tsVal.h>
Public Member Functions | |
| tsVal (const tsBase< T > *tsptr, int indx1, int indx2=0) | |
| operator T () const | |
| silently convert a tsVal to an rval of type T | |
| T | operator* () const |
| dereferencing also converts a tsVal to an rval (not an lval!!) | |
| tsVal & | operator= (T val) |
| T & | operator+= (const tsVal< T > &rhs) |
| assign-sum | |
| T & | operator+= (const T &rhs) |
| assign-sum | |
| T & | operator-= (const tsVal< T > &rhs) |
| assign-difference | |
| T & | operator-= (const T &rhs) |
| assign-difference | |
| T & | operator*= (const tsVal< T > &rhs) |
| assign-multiply | |
| T & | operator*= (const T &rhs) |
| assign-multiply | |
| T & | operator/= (const tsVal< T > &rhs) |
| assign-divide | |
| T & | operator/= (const T &rhs) |
| assign-divide | |
| template<class U > | |
| const T | operator+ (const U &rhs) |
| addition | |
| template<class U > | |
| const T | operator- (const U &rhs) |
| subtraction | |
| template<class U > | |
| const T | operator* (const U &rhs) |
| multiplication | |
| template<class U > | |
| const T | operator/ (const U &rhs) |
| division | |
timeSeries value return class
Indexing a timeSeries or a tsAPtr (with []) yields a tsVal. The tsVal class implements Copy On Write for all non-shared instances of tsBase.
| tsVal< T >::tsVal | ( | const tsBase< T > * | tsptr, | |
| int | indx1, | |||
| int | indx2 = 0 | |||
| ) | [inline] |
| tsptr | a pointer to a tsBase object | |
| indx1 | the dimension index | |
| indx2 | the sample index |
implement the COW algorithm whenever tsVal appears on the lhs of an = statement see the description of the timeSeries and timeSeriesArray classes
1.6.3