This is the documentation for Enlighten.
class Enlighten ProfileHistory
template<Geo::s32>
class Enlighten::ProfileHistory
A simple class for recording a history of double valued stats.
The default copy construction is usable.
Functions
Name | Description |
|---|---|
Add a profile item to the history. | |
Get the guid we relate to. | |
Get the last added profile item. | |
Get the average of the profile items in the history. | |
Get the number of profile items in the history. | |
Get the max value of the profile items in the history. | |
Get the min value of the profile items in the history. | |
Less than comparison operator to allow us to sort ProfileHistory objects. | |
Empty constructor. | |
Construct a history from a guid. | |
Reset to empty (clear all history) | |
Set the guid we relate to. |
void Enlighten::ProfileHistory< tNumProfileItems >::AddItem
public: void AddItem
(
Geo::s32 item,
double value
)
Add a profile item to the history.
const Geo::GeoGuid& Enlighten::ProfileHistory< tNumProfileItems >::GetGuid
public: const Geo::GeoGuid & GetGuid() const
Get the guid we relate to.
double Enlighten::ProfileHistory< tNumProfileItems >::GetItem
public: double GetItem
(
Geo::s32 item
) const
Get the last added profile item.