![]() |
The ZX Ecosystem v5.1.0;_GUI_v3.1.0
|
All these policies must have a method that will be called when the dataset is full, according to this prototype:
bool full(void)
The method must return FALSE if the new datum cannot be taken into account.
All the policies must also have a constructor that admits a pointer to the internal number of data of the SimpleStats object (an unsigned).
Classes | |
class | SSOvPol_ThrowExc< T > |
Overflow policy for SimpleStats that throws an exception if dataset is full. More... | |
class | SSOvPol_IgnoreMoreData< T > |
Overflow policy for SimpleStats that ignores further data after full. More... | |
class | SSOvPol_Reset< T > |
Overflow policy for SimpleStats that resets dataset & start afresh, if full. More... | |
class SSOvPol_ThrowExc |
Overflow policy for SimpleStats that throws an exception if dataset is full.
Definition at line 56 of file SimpleStatistics.h.
Public Member Functions | |
SSOvPol_ThrowExc (unsigned *n) | |
Default constructor. More... | |
bool | full (void) |
Exception when full. More... | |
|
inline |
Default constructor.
Definition at line 60 of file SimpleStatistics.h.
|
inline |
Exception when full.
Definition at line 63 of file SimpleStatistics.h.
class SSOvPol_IgnoreMoreData |
Overflow policy for SimpleStats that ignores further data after full.
Definition at line 70 of file SimpleStatistics.h.
Public Member Functions | |
SSOvPol_IgnoreMoreData (unsigned *n) | |
Default constructor. More... | |
bool | full (void) |
Discard any data after full. More... | |
|
inline |
Default constructor.
Definition at line 74 of file SimpleStatistics.h.
|
inline |
Discard any data after full.
Definition at line 77 of file SimpleStatistics.h.
class SSOvPol_Reset |
Overflow policy for SimpleStats that resets dataset & start afresh, if full.
Definition at line 84 of file SimpleStatistics.h.
Public Member Functions | |
SSOvPol_Reset (unsigned *nd) | |
Default constructor. More... | |
bool | full (void) |
Reset and force to take the current datum as the first new one. More... | |
|
inline |
Default constructor.
Definition at line 88 of file SimpleStatistics.h.
|
inline |
Reset and force to take the current datum as the first new one.
Definition at line 91 of file SimpleStatistics.h.