Project
Loading...
Searching...
No Matches
o2::math_utils::detail::Bracket< T > Class Template Reference

#include <Bracket.h>

Public Types

enum  Relation : int { Below = -1 , Inside = 0 , Above = 1 }
 

Public Member Functions

 Bracket (T minv, T maxv)
 
 Bracket ()=default
 
 Bracket (const Bracket< T > &src)=default
 
 Bracket (Bracket< T > &&src)=default
 
Bracketoperator= (const Bracket< T > &src)=default
 
Bracketoperator= (Bracket< T > &&src)=default
 
 ~Bracket ()=default
 
bool operator< (T other) const
 
bool operator> (T other) const
 
bool operator< (const Bracket< T > &other) const
 
bool operator> (const Bracket< T > &other) const
 
bool operator== (const Bracket< T > &other) const
 
bool operator!= (const Bracket< T > &other) const
 
void setMax (T v) noexcept
 
void setMin (T v) noexcept
 
void set (T minv, T maxv) noexcept
 
TgetMax ()
 
TgetMin ()
 
T getMax () const
 
T getMin () const
 
T mean () const
 
T delta () const
 
Bracket getOverlap (const Bracket< T > &other) const
 
void scale (T c)
 
bool isZeroLength () const
 
bool isValid () const
 
bool isInvalid () const
 
void update (T v)
 
Relation isOutside (const Bracket< T > &t) const
 
Relation isOutside (T t, T tErr) const
 
Relation isOutside (T t) const
 
std::string asString () const
 

Detailed Description

template<typename T = float>
class o2::math_utils::detail::Bracket< T >

Definition at line 33 of file Bracket.h.

Member Enumeration Documentation

◆ Relation

template<typename T = float>
enum o2::math_utils::detail::Bracket::Relation : int
Enumerator
Below 
Inside 
Above 

Definition at line 36 of file Bracket.h.

Constructor & Destructor Documentation

◆ Bracket() [1/4]

template<typename T >
o2::math_utils::detail::Bracket< T >::Bracket ( T  minv,
T  maxv 
)

Definition at line 91 of file Bracket.h.

◆ Bracket() [2/4]

template<typename T = float>
o2::math_utils::detail::Bracket< T >::Bracket ( )
default

◆ Bracket() [3/4]

template<typename T = float>
o2::math_utils::detail::Bracket< T >::Bracket ( const Bracket< T > &  src)
default

◆ Bracket() [4/4]

template<typename T = float>
o2::math_utils::detail::Bracket< T >::Bracket ( Bracket< T > &&  src)
default

◆ ~Bracket()

template<typename T = float>
o2::math_utils::detail::Bracket< T >::~Bracket ( )
default

Member Function Documentation

◆ asString()

template<typename T >
std::string o2::math_utils::detail::Bracket< T >::asString ( ) const

Definition at line 252 of file Bracket.h.

◆ delta()

template<typename T >
T o2::math_utils::detail::Bracket< T >::delta ( ) const
inline

Definition at line 181 of file Bracket.h.

◆ getMax() [1/2]

template<typename T >
T & o2::math_utils::detail::Bracket< T >::getMax ( )
inline

Definition at line 151 of file Bracket.h.

◆ getMax() [2/2]

template<typename T >
T o2::math_utils::detail::Bracket< T >::getMax ( ) const
inline

Definition at line 163 of file Bracket.h.

◆ getMin() [1/2]

template<typename T >
T & o2::math_utils::detail::Bracket< T >::getMin ( )
inline

Definition at line 157 of file Bracket.h.

◆ getMin() [2/2]

template<typename T >
T o2::math_utils::detail::Bracket< T >::getMin ( ) const
inline

Definition at line 169 of file Bracket.h.

◆ getOverlap()

template<typename T >
Bracket< T > o2::math_utils::detail::Bracket< T >::getOverlap ( const Bracket< T > &  other) const
inline

Definition at line 224 of file Bracket.h.

◆ isInvalid()

template<typename T >
bool o2::math_utils::detail::Bracket< T >::isInvalid ( ) const
inline

Definition at line 193 of file Bracket.h.

◆ isOutside() [1/3]

template<typename T >
Bracket< T >::Relation o2::math_utils::detail::Bracket< T >::isOutside ( const Bracket< T > &  t) const
inline

< check if provided bracket is outside of this bracket

Definition at line 230 of file Bracket.h.

◆ isOutside() [2/3]

template<typename T >
Bracket< T >::Relation o2::math_utils::detail::Bracket< T >::isOutside ( T  t) const
inline

< check if provided point is outside of this bracket

Definition at line 244 of file Bracket.h.

◆ isOutside() [3/3]

template<typename T >
Bracket< T >::Relation o2::math_utils::detail::Bracket< T >::isOutside ( T  t,
T  tErr 
) const
inline

< check if the provided value t with error tErr is outside of the bracket

Definition at line 237 of file Bracket.h.

◆ isValid()

template<typename T >
bool o2::math_utils::detail::Bracket< T >::isValid ( ) const
inline

Definition at line 187 of file Bracket.h.

◆ isZeroLength()

template<typename T >
bool o2::math_utils::detail::Bracket< T >::isZeroLength ( ) const
inline

Definition at line 199 of file Bracket.h.

◆ mean()

template<typename T >
T o2::math_utils::detail::Bracket< T >::mean ( ) const
inline

Definition at line 175 of file Bracket.h.

◆ operator!=()

template<typename T >
bool o2::math_utils::detail::Bracket< T >::operator!= ( const Bracket< T > &  other) const
inline

Definition at line 126 of file Bracket.h.

◆ operator<() [1/2]

template<typename T >
bool o2::math_utils::detail::Bracket< T >::operator< ( const Bracket< T > &  other) const
inline

Definition at line 108 of file Bracket.h.

◆ operator<() [2/2]

template<typename T >
bool o2::math_utils::detail::Bracket< T >::operator< ( T  other) const
inline

Definition at line 96 of file Bracket.h.

◆ operator=() [1/2]

template<typename T = float>
Bracket & o2::math_utils::detail::Bracket< T >::operator= ( Bracket< T > &&  src)
default

◆ operator=() [2/2]

template<typename T = float>
Bracket & o2::math_utils::detail::Bracket< T >::operator= ( const Bracket< T > &  src)
default

◆ operator==()

template<typename T >
bool o2::math_utils::detail::Bracket< T >::operator== ( const Bracket< T > &  other) const
inline

Definition at line 120 of file Bracket.h.

◆ operator>() [1/2]

template<typename T >
bool o2::math_utils::detail::Bracket< T >::operator> ( const Bracket< T > &  other) const
inline

Definition at line 114 of file Bracket.h.

◆ operator>() [2/2]

template<typename T >
bool o2::math_utils::detail::Bracket< T >::operator> ( T  other) const
inline

Definition at line 102 of file Bracket.h.

◆ scale()

template<typename T >
void o2::math_utils::detail::Bracket< T >::scale ( T  c)
inline

Definition at line 217 of file Bracket.h.

◆ set()

template<typename T >
void o2::math_utils::detail::Bracket< T >::set ( T  minv,
T  maxv 
)
inlinenoexcept

Definition at line 144 of file Bracket.h.

◆ setMax()

template<typename T >
void o2::math_utils::detail::Bracket< T >::setMax ( T  v)
inlinenoexcept

Definition at line 132 of file Bracket.h.

◆ setMin()

template<typename T >
void o2::math_utils::detail::Bracket< T >::setMin ( T  v)
inlinenoexcept

Definition at line 138 of file Bracket.h.

◆ update()

template<typename T >
void o2::math_utils::detail::Bracket< T >::update ( T  v)
inline

Definition at line 205 of file Bracket.h.


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