Public Types | |
typedef std::map< Time, W2Unit > | StorageType |
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. |
typedef StorageType::const_iterator code::DataTrend::const_iterator |
Convenience.
typedef std::map< Time, W2Unit > code::DataTrend::StorageType |
Short-hand.
code::DataTrend::DataTrend | ( | const std::string & | name = "SomeTrend" |
) |
Make an empty trend.
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::getLatestTime | ( | ) |
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.
StorageType code::DataTrend::myData [protected] |
Data.
std::string code::DataTrend::myName [protected] |
Name of corresponding DataField.