Public Member Functions | Protected Attributes

PeriodicValue< T, P > Class Template Reference

PeriodicValue handles periodic data through mathematical operations. More...

List of all members.

Public Member Functions

val (bool positive=true) const
PeriodicValue< T, P > operator+ (T nv) const
PeriodicValue< T, P > operator- (T nv) const
PeriodicValue< T, P > operator* (T nv) const
PeriodicValue< T, P > operator/ (T nv) const
PeriodicValue< T, P > operator+ (const PeriodicValue< T, P > &nv) const
PeriodicValue< T, P > operator- (const PeriodicValue< T, P > &nv) const
PeriodicValue< T, P > operator* (const PeriodicValue< T, P > &nv) const
PeriodicValue< T, P > operator/ (const PeriodicValue< T, P > &nv) const
const PeriodicValue< T, P > & operator= (T nv) const
const PeriodicValue< T, P > & operator+= (T nv)
const PeriodicValue< T, P > & operator-= (T nv)
const PeriodicValue< T, P > & operator*= (T nv)
const PeriodicValue< T, P > & operator/= (T nv)
const PeriodicValue< T, P > & operator= (const PeriodicValue< T, P > &nv) const
const PeriodicValue< T, P > & operator+= (const PeriodicValue< T, P > &nv)
const PeriodicValue< T, P > & operator-= (const PeriodicValue< T, P > &nv)
const PeriodicValue< T, P > & operator*= (const PeriodicValue< T, P > &nv)
const PeriodicValue< T, P > & operator/= (const PeriodicValue< T, P > &nv)
bool operator< (const PeriodicValue< T, P > &b) const
bool operator> (const PeriodicValue< T, P > &b) const
bool operator< (T b) const
bool operator> (T b) const
 PeriodicValue (T nv)

Protected Attributes

val_

Detailed Description

template<class T, int P>
class PeriodicValue< T, P >

PeriodicValue handles periodic data through mathematical operations.

>


Constructor & Destructor Documentation

template<class T, int P>
PeriodicValue< T, P >::PeriodicValue ( nv  )  [inline]

Member Function Documentation

template<class T, int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator* ( nv  )  const [inline]
template<class T, int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator* ( const PeriodicValue< T, P > &  nv  )  const [inline]
template<class T, int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator*= ( const PeriodicValue< T, P > &  nv  )  [inline]
template<class T, int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator*= ( nv  )  [inline]
template<class T, int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator+ ( nv  )  const [inline]
template<class T, int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator+ ( const PeriodicValue< T, P > &  nv  )  const [inline]
template<class T, int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator+= ( const PeriodicValue< T, P > &  nv  )  [inline]
template<class T, int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator+= ( nv  )  [inline]
template<class T, int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator- ( nv  )  const [inline]
template<class T, int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator- ( const PeriodicValue< T, P > &  nv  )  const [inline]
template<class T, int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator-= ( const PeriodicValue< T, P > &  nv  )  [inline]
template<class T, int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator-= ( nv  )  [inline]
template<class T, int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator/ ( const PeriodicValue< T, P > &  nv  )  const [inline]
template<class T, int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator/ ( nv  )  const [inline]
template<class T, int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator/= ( const PeriodicValue< T, P > &  nv  )  [inline]
template<class T, int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator/= ( nv  )  [inline]
template<class T, int P>
bool PeriodicValue< T, P >::operator< ( b  )  const [inline]
template<class T, int P>
bool PeriodicValue< T, P >::operator< ( const PeriodicValue< T, P > &  b  )  const [inline]
template<class T, int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator= ( nv  )  const [inline]
template<class T, int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator= ( const PeriodicValue< T, P > &  nv  )  const [inline]
template<class T, int P>
bool PeriodicValue< T, P >::operator> ( const PeriodicValue< T, P > &  b  )  const [inline]
template<class T, int P>
bool PeriodicValue< T, P >::operator> ( b  )  const [inline]
template<class T, int P>
T PeriodicValue< T, P >::val ( bool  positive = true  )  const [inline]

Returns the value between 0 and P if positive is true, or between -P/2 and P/2 if positive is false;


Member Data Documentation

template<class T, int P>
T PeriodicValue< T, P >::val_ [protected]