Menu

famouso::mw::afp::shared::NoOverflowErrorChecking Class Reference

Policy: No overflow error checking. More...

#include <OverflowErrorChecking.h>

Public Member Functions

 NoOverflowErrorChecking ()
 Constructor.
bool error ()
 Return whether an error occured. Always returns false for this policy implementation.
template<class T1 , class T2 >
void check_smaller (T1 v1, T2 v2)
 Check if v1 < v2. Does nothing for this policy implementation.
template<class T1 , class T2 >
void check_smaller_or_equal (T1 v1, T2 v2)
 Check if v1 <= v2. Does nothing for this policy implementation.
template<class T1 , class T2 >
void check_equal (T1 v1, T2 v2)
 Check if v1 == v2. Does nothing for this policy implementation.
void set_error ()
 Make error() returning true. Does nothing for this policy implementation.
void reset ()
 Make error() returning false. Does nothing for this policy implementation.

Detailed Description

Policy: No overflow error checking.

Use this policy in AFP config to include no overflow error checking code into AFP implementation. This is useful to reduce code size and execution time, but also reduces robustness of AFP concerning input it cannot handle (mainly too much data).

Alternatives: OverflowErrorChecking


Constructor & Destructor Documentation

famouso::mw::afp::shared::NoOverflowErrorChecking::NoOverflowErrorChecking (  )  [inline]

Constructor.


Member Function Documentation

template<class T1 , class T2 >
void famouso::mw::afp::shared::NoOverflowErrorChecking::check_equal ( T1  v1,
T2  v2 
) [inline]

Check if v1 == v2. Does nothing for this policy implementation.

template<class T1 , class T2 >
void famouso::mw::afp::shared::NoOverflowErrorChecking::check_smaller ( T1  v1,
T2  v2 
) [inline]

Check if v1 < v2. Does nothing for this policy implementation.

template<class T1 , class T2 >
void famouso::mw::afp::shared::NoOverflowErrorChecking::check_smaller_or_equal ( T1  v1,
T2  v2 
) [inline]

Check if v1 <= v2. Does nothing for this policy implementation.

bool famouso::mw::afp::shared::NoOverflowErrorChecking::error (  )  [inline]

Return whether an error occured. Always returns false for this policy implementation.

void famouso::mw::afp::shared::NoOverflowErrorChecking::reset (  )  [inline]

Make error() returning false. Does nothing for this policy implementation.

void famouso::mw::afp::shared::NoOverflowErrorChecking::set_error (  )  [inline]

Make error() returning true. Does nothing for this policy implementation.


The documentation for this class was generated from the following file: