PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
Checked Value Types

Types for checked values. More...

Typedefs

template<typename T >
using playrho::DefaultCheckedValue = CheckedValue< T >
 Default checked value type. More...
 
template<typename T >
using playrho::Finite = CheckedValue< T, FiniteChecker< T > >
 Finite constrained value type.
 
template<typename T >
using playrho::Negative = CheckedValue< T, NegativeChecker< T > >
 Negative constrained value type.
 
template<typename T >
using playrho::NonNegative = CheckedValue< T, NonNegativeChecker< T > >
 Non-negative constrained value type.
 
template<typename T >
using playrho::NonPositive = CheckedValue< T, NonPositiveChecker< T > >
 Non-positive constrained value type.
 
template<typename T >
using playrho::NonZero = std::enable_if_t<!std::is_pointer< T >::value, CheckedValue< T, NonZeroChecker< T > >>
 Non-zero constrained value type.
 
template<typename T >
using playrho::NonNull = std::enable_if_t< std::is_pointer< T >::value, CheckedValue< T, NonZeroChecker< T > >>
 Non-null constrained value type.
 
template<typename T >
using playrho::Positive = CheckedValue< T, PositiveChecker< T > >
 Positive constrained value type.
 
template<typename T >
using playrho::UnitInterval = CheckedValue< T, UnitIntervalChecker< T > >
 Unit interval constrained value type.
 

Detailed Description

Types for checked values.

Type aliases for checked values via on-construction checks that may throw an exception if an attempt is made to construct the checked value type with a value not allowed by the specific alias.

See also
CheckedValue

Typedef Documentation

◆ DefaultCheckedValue

template<typename T >
using playrho::DefaultCheckedValue = typedef CheckedValue<T>

Default checked value type.

A checked value type using the default checker type.

Note
This is basically a no-op for base line testing and demonstration purposes.