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

#include <range.h>

Public Member Functions

 RANGE (T aMin, T aMax)
 
 RANGE ()
 
T MinV () const
 
T MaxV () const
 
void Set (T aMin, T aMax) const
 
void Grow (T aValue)
 
bool Inside (const T &aValue) const
 
bool Overlaps (const RANGE< T > &aOther) const
 
bool Defined () const
 

Private Attributes

T m_min
 
T m_max
 
bool m_defined
 

Detailed Description

template<class T>
class RANGE< T >

Definition at line 26 of file range.h.

Constructor & Destructor Documentation

◆ RANGE() [1/2]

template<class T>
RANGE< T >::RANGE ( T aMin,
T aMax )
inline

Definition at line 29 of file range.h.

References m_defined, m_max, m_min, and T.

Referenced by Overlaps().

◆ RANGE() [2/2]

template<class T>
RANGE< T >::RANGE ( )
inline

Definition at line 34 of file range.h.

References m_defined.

Member Function Documentation

◆ Defined()

template<class T>
bool RANGE< T >::Defined ( ) const
inline

Definition at line 84 of file range.h.

References m_defined.

◆ Grow()

template<class T>
void RANGE< T >::Grow ( T aValue)
inline

Definition at line 53 of file range.h.

References m_defined, m_max, m_min, and T.

◆ Inside()

template<class T>
bool RANGE< T >::Inside ( const T & aValue) const
inline

Definition at line 68 of file range.h.

References m_defined, m_max, m_min, and T.

◆ MaxV()

template<class T>
T RANGE< T >::MaxV ( ) const
inline

Definition at line 42 of file range.h.

References m_max, and T.

◆ MinV()

template<class T>
T RANGE< T >::MinV ( ) const
inline

Definition at line 37 of file range.h.

References m_min, and T.

◆ Overlaps()

template<class T>
bool RANGE< T >::Overlaps ( const RANGE< T > & aOther) const
inline

Definition at line 76 of file range.h.

References m_defined, m_max, m_min, and RANGE().

◆ Set()

template<class T>
void RANGE< T >::Set ( T aMin,
T aMax ) const
inline

Definition at line 47 of file range.h.

References m_max, m_min, and T.

Member Data Documentation

◆ m_defined

template<class T>
bool RANGE< T >::m_defined
private

Definition at line 91 of file range.h.

Referenced by Defined(), Grow(), Inside(), Overlaps(), RANGE(), and RANGE().

◆ m_max

template<class T>
T RANGE< T >::m_max
private

Definition at line 90 of file range.h.

Referenced by Grow(), Inside(), MaxV(), Overlaps(), RANGE(), and Set().

◆ m_min

template<class T>
T RANGE< T >::m_min
private

Definition at line 90 of file range.h.

Referenced by Grow(), Inside(), MinV(), Overlaps(), RANGE(), and Set().


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