PlayRho  2.0.0
An interactive physics engine & library.
Checker Types

Types for checking values. More...

Classes

struct  playrho::detail::FiniteChecker< T >
 Finite constrained value checker. More...
 
struct  playrho::detail::NegativeChecker< T >
 Negative constrained value checker. More...
 
struct  playrho::detail::NonNegativeChecker< T >
 Non-negative constrained value checker. More...
 
struct  playrho::detail::NonPositiveChecker< T >
 Non-positive constrained value checker. More...
 
struct  playrho::detail::NonZeroChecker< T >
 Non-zero constrained value checker. More...
 
struct  playrho::detail::NoOpChecker< T >
 No-op value checker. More...
 
struct  playrho::detail::PositiveChecker< T >
 Positive constrained value checker. More...
 
struct  playrho::detail::UnitIntervalChecker< T >
 Unit-interval constrained value checker. More...
 
struct  playrho::detail::UnitMagnitudeChecker< T >
 Unit magnitude constrained value checker. More...
 
struct  playrho::detail::ZeroToUnderOneChecker< T >
 Right open unit-interval constrained value checker. More...
 

Detailed Description

Types for checking values.

Types for checking values for use in types like Checked. Valid checkers must minimally provide a one-parameter functor taking the value to be checked and returning nullptr if valid or a non-null pointer to a C-style nul-terminated ASCII string in static storage indicating why the given value is invalid. Additionally, checkers can optionally provide a no-parameter functor returning a default value for the type and that checker.

Note
It's expected that these functors are non-throwing.
An example conforming checker is the NoOpChecker.
See also
Checked, NoOpChecker.