17 #include <pia/common/common_definitions.h> 19 #include <pia/common/common_RootObject.h> 105 void SetName(
const char* pName);
173 return m_LatestValue;
183 return m_UpdateCount;
192 void Trace(u64 flag)
const;
203 char m_Name[MAX_NAME_LENGTH + 1];
void Trace(u64 flag) const
Prints information useful for debugging.
s64 GetMaxValue(void) const
Gets the maximum value currently being used by Update.
Definition: common_Watermark.h:149
const char * GetName(void) const
Gets the name of an instance.
Definition: common_Watermark.h:114
void EnableUpdate(void)
Enables updating values with the Update function.
Definition: common_Watermark.h:67
Watermark(void)
Instantiates the object with default parameters (default constructor). The instance is constructed wi...
void DisableUpdate(void)
Disables updating values with Update.
Definition: common_Watermark.h:80
void Reset(void)
Re-initializes the values maintained by the instance (maximum, minimum, updated values, and the number of calls to Update).
void SetName(const char *pName)
Sets a name for the instance.
~Watermark(void)
Destroys the object.
static const size_t MAX_NAME_LENGTH
Specifies the maximum length of a name that can be set using the SetName function.
Definition: common_Watermark.h:43
s64 GetMinValue(void) const
Gets the minimum value currently being used by Update.
Definition: common_Watermark.h:160
void Update(s64 value)
Updates the value.
Contains member functions for profiling things like peak values in the Pia library's resource usage (...
Definition: common_Watermark.h:35
bool IsUpdateEnabled(void) const
Returns whether Update functionality is enabled.
Definition: common_Watermark.h:92
s64 GetUpdateCount(void) const
Gets the number of times Update has been called so far.
Definition: common_Watermark.h:181
This is the common base class used inside the Pia library.
Definition: common_RootObject.h:40
s64 GetLatestValue(void) const
Gets the update value passed in the last call to Update.
Definition: common_Watermark.h:171