class Enlighten ProfileHistory

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

Name

Description

AddItem(Geo::s32, double)

Add a profile item to the history.

GetGuid()

Get the guid we relate to.

GetItem(Geo::s32)

Get the last added profile item.

GetItemAverage(Geo::s32)

Get the average of the profile items in the history.

GetItemCount(Geo::s32)

Get the number of profile items in the history.

GetItemMaximum(Geo::s32)

Get the max value of the profile items in the history.

GetItemMinimum(Geo::s32)

Get the min value of the profile items in the history.

operator<(const ProfileHistory< tNumProfileItems > &)

Less than comparison operator to allow us to sort ProfileHistory objects.

ProfileHistory()

Empty constructor.

ProfileHistory(const Geo::GeoGuid &)

Construct a history from a guid.

Reset()

Reset to empty (clear all history)

SetGuid(const Geo::GeoGuid &)

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.



double Enlighten::ProfileHistory< tNumProfileItems >::GetItemAverage