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 ()
 
MinV () const
 
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

m_min
 
m_max
 
bool m_defined
 

Detailed Description

template<class T>
class RANGE< T >

Definition at line 25 of file range.h.

Constructor & Destructor Documentation

◆ RANGE() [1/2]

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

Definition at line 28 of file range.h.

◆ RANGE() [2/2]

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

Definition at line 33 of file range.h.

Member Function Documentation

◆ Defined()

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

Definition at line 83 of file range.h.

References RANGE< T >::m_defined.

◆ Grow()

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

Definition at line 52 of file range.h.

References RANGE< T >::m_defined, RANGE< T >::m_max, and RANGE< T >::m_min.

◆ Inside()

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

Definition at line 67 of file range.h.

References RANGE< T >::m_defined, RANGE< T >::m_max, and RANGE< T >::m_min.

◆ MaxV()

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

Definition at line 41 of file range.h.

References RANGE< T >::m_max.

◆ MinV()

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

Definition at line 36 of file range.h.

References RANGE< T >::m_min.

◆ Overlaps()

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

Definition at line 75 of file range.h.

References RANGE< T >::m_defined, RANGE< T >::m_max, and RANGE< T >::m_min.

◆ Set()

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

Definition at line 46 of file range.h.

References RANGE< T >::m_max, and RANGE< T >::m_min.

Member Data Documentation

◆ m_defined

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

◆ m_max

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

◆ m_min

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

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