KiCad PCB EDA Suite
Loading...
Searching...
No Matches
RANGED_NUM< T > Class Template Reference

#include <ranged_num.h>

Public Member Functions

 RANGED_NUM (T aValue=0, T aTolerancePlus=0, T aToleranceMinus=0)
 
 operator T ()
 
RANGED_NUMoperator= (const T aValue)
 
bool Matches (const T &aOther) const
 

Private Attributes

T m_value
 
T m_tolerancePlus
 
T m_toleranceMinus
 

Detailed Description

template<class T>
class RANGED_NUM< T >

Definition at line 25 of file ranged_num.h.

Constructor & Destructor Documentation

◆ RANGED_NUM()

template<class T>
RANGED_NUM< T >::RANGED_NUM ( T aValue = 0,
T aTolerancePlus = 0,
T aToleranceMinus = 0 )
inline

Definition at line 27 of file ranged_num.h.

References m_toleranceMinus, m_tolerancePlus, m_value, and T.

Referenced by operator=().

Member Function Documentation

◆ Matches()

template<class T>
bool RANGED_NUM< T >::Matches ( const T & aOther) const
inline

Definition at line 44 of file ranged_num.h.

References m_toleranceMinus, m_tolerancePlus, m_value, and T.

Referenced by PNS::findCoupledVertices().

◆ operator T()

template<class T>
RANGED_NUM< T >::operator T ( )
inline

Definition at line 33 of file ranged_num.h.

◆ operator=()

template<class T>
RANGED_NUM & RANGED_NUM< T >::operator= ( const T aValue)
inline

Definition at line 38 of file ranged_num.h.

References m_value, RANGED_NUM(), and T.

Member Data Documentation

◆ m_toleranceMinus

template<class T>
T RANGED_NUM< T >::m_toleranceMinus
private

Definition at line 50 of file ranged_num.h.

Referenced by Matches(), and RANGED_NUM().

◆ m_tolerancePlus

template<class T>
T RANGED_NUM< T >::m_tolerancePlus
private

Definition at line 50 of file ranged_num.h.

Referenced by Matches(), and RANGED_NUM().

◆ m_value

template<class T>
T RANGED_NUM< T >::m_value
private

Definition at line 50 of file ranged_num.h.

Referenced by Matches(), operator=(), and RANGED_NUM().


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