21 #ifndef __RANGED_NUM_H 22 #define __RANGED_NUM_H 26 RANGED_NUM( T aValue = 0, T aTolerancePlus = 0, T aToleranceMinus = 0 ) :
28 m_tolerancePlus( aTolerancePlus ),
29 m_toleranceMinus( aToleranceMinus )
43 bool Matches(
const T& aOther )
const 45 return ( aOther >= m_value - m_toleranceMinus && aOther <= m_value + m_tolerancePlus );
49 T m_value, m_tolerancePlus, m_toleranceMinus;
Definition: ranged_num.h:24