SourceForge.net Logo timeSeries: timeSeries Class Library

tsVal< T > Class Template Reference
[Return types]

timeSeries value return class More...

#include <tsVal.h>

List of all members.

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
operator* () const
 dereferencing also converts a tsVal to an rval (not an lval!!)
tsValoperator= (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

Detailed Description

template<class T>
class tsVal< T >

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.


Constructor & Destructor Documentation

template<class T >
tsVal< T >::tsVal ( const tsBase< T > *  tsptr,
int  indx1,
int  indx2 = 0 
) [inline]
Parameters:
tsptr a pointer to a tsBase object
indx1 the dimension index
indx2 the sample index

Member Function Documentation

template<class T >
tsVal& tsVal< T >::operator= ( val  )  [inline]

implement the COW algorithm whenever tsVal appears on the lhs of an = statement see the description of the timeSeries and timeSeriesArray classes

Generated on Tue Mar 16 15:10:52 2010 for timeSeries by  doxygen 1.6.3