Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

template<Geo::s32>
class Enlighten::ProfileHistory

A simple class for recording a history of double valued stats.

The default copy construction is usable.

Functions

NameDescription
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.


Anchor
a83691ce3b61393ae37d3a6dc31b976e0
a83691ce3b61393ae37d3a6dc31b976e0

void Enlighten::ProfileHistory< tNumProfileItems >::AddItem

...

public: void AddItem
(
    Geo::s32 item,
    double value
)

...

Add a profile item to the history.


Anchor
a54136b41b8991ea7c96cb41f8cc975c3
a54136b41b8991ea7c96cb41f8cc975c3

const Geo::GeoGuid& Enlighten::ProfileHistory< tNumProfileItems >::GetGuid

...

public: const Geo::GeoGuid & GetGuid() const

...

Get the guid we relate to.


Anchor
aa212ce438aa6b188c78c83e5ea91945b
aa212ce438aa6b188c78c83e5ea91945b

double Enlighten::ProfileHistory< tNumProfileItems >::GetItem

...

public: double GetItem
(
    Geo::s32 item
) const

...

Get the last added profile item.


Anchor
a0a9314222b5f96fabd70d2303cf55931
a0a9314222b5f96fabd70d2303cf55931

double Enlighten::ProfileHistory< tNumProfileItems >::GetItemAverage

...

public: double GetItemAverage
(
    Geo::s32 item
) const

...

Get the average of the profile items in the history.


Anchor
a32083675d913f7f6add97538b619fae7
a32083675d913f7f6add97538b619fae7

Geo::u64 Enlighten::ProfileHistory< tNumProfileItems >::GetItemCount

...

public: Geo::u64 GetItemCount
(
    Geo::s32 item
) const

...

Get the number of profile items in the history.


Anchor
aecd0a49c4588a3bfa6f3b6602058a9ce
aecd0a49c4588a3bfa6f3b6602058a9ce

double Enlighten::ProfileHistory< tNumProfileItems >::GetItemMaximum

...

public: double GetItemMaximum
(
    Geo::s32 item
) const

...

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


Anchor
abf574418f3328ee1b9ff4d79bc6ad74a
abf574418f3328ee1b9ff4d79bc6ad74a

double Enlighten::ProfileHistory< tNumProfileItems >::GetItemMinimum

...

public: double GetItemMinimum
(
    Geo::s32 item
) const

...

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


Anchor
a3b34ebc64ac88c5a27bc9bdcac007b60
a3b34ebc64ac88c5a27bc9bdcac007b60

bool Enlighten::ProfileHistory< tNumProfileItems >::operator<

...

public: bool operator<
(
    const ProfileHistory< tNumProfileItems > & rhs
)

...

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


Anchor
a6337502e45064dde1263d0cdd4409d47
a6337502e45064dde1263d0cdd4409d47

Enlighten::ProfileHistory< tNumProfileItems >::ProfileHistory

...

public: ProfileHistory()

...

Empty constructor.

You must either subsequently copy construct this object or assign a guid with SetGuid().


Anchor
a05ed0f23a81a5b3c402afde61cb3419a
a05ed0f23a81a5b3c402afde61cb3419a

Enlighten::ProfileHistory< tNumProfileItems >::ProfileHistory

...

public: ProfileHistory
(
    const Geo::GeoGuid & systemGuid
)

...

Construct a history from a guid.


Anchor
aa7d7611e8b9dd54192209852b9830beb
aa7d7611e8b9dd54192209852b9830beb

void Enlighten::ProfileHistory< tNumProfileItems >::Reset

...

public: void Reset()

...

Reset to empty (clear all history)


Anchor
a1526cf50508a294eed9cf4a841410c7e
a1526cf50508a294eed9cf4a841410c7e

void Enlighten::ProfileHistory< tNumProfileItems >::SetGuid

...

public: void SetGuid
(
    const Geo::GeoGuid & g
)

...

Set the guid we relate to.