code::DataTrend Class Reference

List of all members.

Detailed Description

A trend of numeric data.

Author:
Thomas E. Vaughan (original)
Author
lakshman
Date
2009/06/02 20:17:37


Public Types

typedef std::map< Time, W2UnitStorageType
 Short-hand.
typedef StorageType::const_iterator const_iterator
 Convenience.

Public Member Functions

const_iterator begin () const
 Return an iterator to the beginning of internal storage.
const_iterator end () const
 Return an iterator to the end of internal storage.
 DataTrend (const std::string &name="SomeTrend")
 Make an empty trend.
double value (const Time &t) const
 Return most recent numeric value at a given Time.
void insert (const Time &t, const W2Unit &value)
 Insert a value at a particular time.
size_t size () const
 Return the number of elements in the internal storage.
Time getEarliestTime ()
 Returns the earliest and latest times in this DataTrend.
Time getLatestTime ()

Protected Attributes

std::string myName
 Name of corresponding DataField.
StorageType myData
 Data.


Member Typedef Documentation

typedef StorageType::const_iterator code::DataTrend::const_iterator

Convenience.

typedef std::map< Time, W2Unit > code::DataTrend::StorageType

Short-hand.


Constructor & Destructor Documentation

code::DataTrend::DataTrend ( const std::string &  name = "SomeTrend"  ) 

Make an empty trend.


Member Function Documentation

const_iterator code::DataTrend::begin (  )  const

Return an iterator to the beginning of internal storage.

const_iterator code::DataTrend::end (  )  const

Return an iterator to the end of internal storage.

Time code::DataTrend::getEarliestTime (  ) 

Returns the earliest and latest times in this DataTrend.

Time code::DataTrend::getLatestTime (  ) 

void code::DataTrend::insert ( const Time t,
const W2Unit value 
)

Insert a value at a particular time.

size_t code::DataTrend::size (  )  const

Return the number of elements in the internal storage.

double code::DataTrend::value ( const Time t  )  const

Return most recent numeric value at a given Time.

Constants::MissingData (dimensionless) is returned if no data exist before the given time.


Member Data Documentation

StorageType code::DataTrend::myData [protected]

Data.

std::string code::DataTrend::myName [protected]

Name of corresponding DataField.


Generated on Fri May 4 13:40:11 2012 for WDSS-IIw2 by  doxygen 1.4.7