AGX Dynamics  2.35.0.1
agx::RangeViolation< T > Class Template Reference

This class will store a computed violation of a range. More...

#include <Range.h>

Public Member Functions

 RangeViolation ()
 Default constructor. sign=0, v=0. More...
 
 RangeViolation (int sign, const T &v)
 
T & excess ()
 
T excess () const
 
int & sign ()
 
int sign () const
 

Detailed Description

template<class T>
class agx::RangeViolation< T >

This class will store a computed violation of a range.

sign is +1 when violating the upper limit, -1 when violating the lower limit, and 0 otherwise. The excess is either 0 if the argument is in range, or the (positive) distance to the nearest bound otherwise.

Definition at line 36 of file Range.h.

Constructor & Destructor Documentation

◆ RangeViolation() [1/2]

template<class T >
agx::RangeViolation< T >::RangeViolation
inline

Default constructor. sign=0, v=0.

Definition at line 203 of file Range.h.

◆ RangeViolation() [2/2]

template<class T >
agx::RangeViolation< T >::RangeViolation ( int  sign,
const T &  v 
)
inline

Definition at line 208 of file Range.h.

Member Function Documentation

◆ excess() [1/2]

template<class T >
T & agx::RangeViolation< T >::excess
Returns
The reference to the excess which is either 0 if the argument is in range, or the (positive) distance to the nearest bound otherwise.

Definition at line 226 of file Range.h.

Referenced by agx::Range< T >::excess().

◆ excess() [2/2]

template<class T >
T agx::RangeViolation< T >::excess
Returns
The excess which is either 0 if the argument is in range, or the (positive) distance to the nearest bound otherwise.

Definition at line 232 of file Range.h.

◆ sign() [1/2]

template<class T >
int & agx::RangeViolation< T >::sign

Definition at line 214 of file Range.h.

Referenced by agx::Range< T >::excess().

◆ sign() [2/2]

template<class T >
int agx::RangeViolation< T >::sign

Definition at line 220 of file Range.h.


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