The ZX Ecosystem v5.1.0;_GUI_v3.1.0
Loading...
Searching...
No Matches
Classes
Overflow policies for the SimpleStats class

Description

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

Collaboration diagram for Overflow policies for the SimpleStats class:

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 Documentation

◆ SSOvPol_ThrowExc

class SSOvPol_ThrowExc
template<typename T>
class SSOvPol_ThrowExc< T >

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

Constructor & Destructor Documentation

◆ SSOvPol_ThrowExc()

template<typename T >
SSOvPol_ThrowExc< T >::SSOvPol_ThrowExc ( unsigned *  n)
inline

Default constructor.

Definition at line 60 of file SimpleStatistics.h.

Member Function Documentation

◆ full()

template<typename T >
bool SSOvPol_ThrowExc< T >::full ( void  )
inline

Exception when full.

Definition at line 63 of file SimpleStatistics.h.

◆ SSOvPol_IgnoreMoreData

class SSOvPol_IgnoreMoreData
template<typename T>
class SSOvPol_IgnoreMoreData< T >

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

Constructor & Destructor Documentation

◆ SSOvPol_IgnoreMoreData()

template<typename T >
SSOvPol_IgnoreMoreData< T >::SSOvPol_IgnoreMoreData ( unsigned *  n)
inline

Default constructor.

Definition at line 74 of file SimpleStatistics.h.

Member Function Documentation

◆ full()

template<typename T >
bool SSOvPol_IgnoreMoreData< T >::full ( void  )
inline

Discard any data after full.

Definition at line 77 of file SimpleStatistics.h.

◆ SSOvPol_Reset

class SSOvPol_Reset
template<typename T>
class SSOvPol_Reset< T >

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

Constructor & Destructor Documentation

◆ SSOvPol_Reset()

template<typename T >
SSOvPol_Reset< T >::SSOvPol_Reset ( unsigned *  nd)
inline

Default constructor.

Definition at line 88 of file SimpleStatistics.h.

Member Function Documentation

◆ full()

template<typename T >
bool SSOvPol_Reset< T >::full ( void  )
inline

Reset and force to take the current datum as the first new one.

Definition at line 91 of file SimpleStatistics.h.