GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TPriorityValue< T > Class Template Reference

Detailed Description

template<class T>
class TPriorityValue< T >

The TPriorityValue defines a template of values with priorities. The priorities are used to over-write values set by the root-file by those read from an input file, and those by values set manually by the user

Definition at line 32 of file TPriorityValue.h.

Public Member Functions

 TPriorityValue ()
 
 TPriorityValue (const TPriorityValue &rhs)
 
 TPriorityValue (T value, EPriority priority=EPriority::kDefault)
 
 TPriorityValue (TPriorityValue &&rhs) noexcept
 
 ~TPriorityValue ()=default
 
T * Address ()
 
const T * Address () const
 
 operator T () const
 
bool operator!= (const T &rhs) const
 
bool operator!= (const TPriorityValue< T > &rhs)
 
bool operator< (const T &rhs) const
 
bool operator< (const TPriorityValue< T > &rhs)
 
bool operator<= (const T &rhs) const
 
bool operator<= (const TPriorityValue< T > &rhs)
 
TPriorityValue< T > & operator= (const TPriorityValue< T > &rhs)
 
TPriorityValue< T > & operator= (TPriorityValue< T > &&rhs) noexcept
 
bool operator== (const T &rhs) const
 
bool operator== (const TPriorityValue< T > &rhs)
 
bool operator> (const T &rhs) const
 
bool operator> (const TPriorityValue< T > &rhs)
 
bool operator>= (const T &rhs) const
 
bool operator>= (const TPriorityValue< T > &rhs)
 
EPriority Priority () const
 
void Reset (T val)
 
void ResetPriority ()
 
void Set (const T &val, EPriority priority)
 
void SetPriority (EPriority priority)
 
const T & Value () const
 

Private Attributes

EPriority fPriority
 
fValue {}
 

Friends

template<class U >
std::ostream & operator<< (std::ostream &, const TPriorityValue< U > &)
 

Constructor & Destructor Documentation

◆ TPriorityValue() [1/4]

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

Definition at line 34 of file TPriorityValue.h.

◆ TPriorityValue() [2/4]

template<class T >
TPriorityValue< T >::TPriorityValue ( T value,
EPriority priority = EPriority::kDefault )
inlineexplicit

Definition at line 35 of file TPriorityValue.h.

◆ TPriorityValue() [3/4]

template<class T >
TPriorityValue< T >::TPriorityValue ( const TPriorityValue< T > & rhs)
inline

Definition at line 36 of file TPriorityValue.h.

◆ TPriorityValue() [4/4]

template<class T >
TPriorityValue< T >::TPriorityValue ( TPriorityValue< T > && rhs)
inlinenoexcept

Definition at line 37 of file TPriorityValue.h.

◆ ~TPriorityValue()

template<class T >
TPriorityValue< T >::~TPriorityValue ( )
default

Member Function Documentation

◆ Address() [1/2]

◆ Address() [2/2]

template<class T >
const T * TPriorityValue< T >::Address ( ) const
inline

Definition at line 72 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator T()

template<class T >
TPriorityValue< T >::operator T ( ) const
inlineexplicit

Definition at line 146 of file TPriorityValue.h.

◆ operator!=() [1/2]

template<class T >
bool TPriorityValue< T >::operator!= ( const T & rhs) const
inline

Definition at line 124 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator!=() [2/2]

template<class T >
bool TPriorityValue< T >::operator!= ( const TPriorityValue< T > & rhs)
inline

Definition at line 98 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator<() [1/2]

template<class T >
bool TPriorityValue< T >::operator< ( const T & rhs) const
inline

Definition at line 128 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator<() [2/2]

template<class T >
bool TPriorityValue< T >::operator< ( const TPriorityValue< T > & rhs)
inline

Definition at line 102 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator<=() [1/2]

template<class T >
bool TPriorityValue< T >::operator<= ( const T & rhs) const
inline

Definition at line 136 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator<=() [2/2]

template<class T >
bool TPriorityValue< T >::operator<= ( const TPriorityValue< T > & rhs)
inline

Definition at line 110 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator=() [1/2]

template<class T >
TPriorityValue< T > & TPriorityValue< T >::operator= ( const TPriorityValue< T > & rhs)
inline

◆ operator=() [2/2]

template<class T >
TPriorityValue< T > & TPriorityValue< T >::operator= ( TPriorityValue< T > && rhs)
inlinenoexcept

Definition at line 84 of file TPriorityValue.h.

References TPriorityValue< T >::fPriority, and TPriorityValue< T >::fValue.

◆ operator==() [1/2]

template<class T >
bool TPriorityValue< T >::operator== ( const T & rhs) const
inline

Definition at line 120 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator==() [2/2]

template<class T >
bool TPriorityValue< T >::operator== ( const TPriorityValue< T > & rhs)
inline

Definition at line 94 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator>() [1/2]

template<class T >
bool TPriorityValue< T >::operator> ( const T & rhs) const
inline

Definition at line 132 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator>() [2/2]

template<class T >
bool TPriorityValue< T >::operator> ( const TPriorityValue< T > & rhs)
inline

Definition at line 106 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator>=() [1/2]

template<class T >
bool TPriorityValue< T >::operator>= ( const T & rhs) const
inline

Definition at line 140 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator>=() [2/2]

template<class T >
bool TPriorityValue< T >::operator>= ( const TPriorityValue< T > & rhs)
inline

Definition at line 114 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ Priority()

◆ Reset()

template<class T >
void TPriorityValue< T >::Reset ( T val)
inline

Definition at line 57 of file TPriorityValue.h.

References TPriorityValue< T >::fValue, and TPriorityValue< T >::ResetPriority().

Referenced by TChannel::Clear().

◆ ResetPriority()

template<class T >
void TPriorityValue< T >::ResetPriority ( )
inline

Definition at line 63 of file TPriorityValue.h.

References TPriorityValue< T >::fPriority, and kDefault.

Referenced by TPriorityValue< T >::Reset().

◆ Set()

◆ SetPriority()

template<class T >
void TPriorityValue< T >::SetPriority ( EPriority priority)
inline

◆ Value()

Friends And Related Symbol Documentation

◆ operator<<

template<class T >
template<class U >
std::ostream & operator<< ( std::ostream & ,
const TPriorityValue< U > &  )
friend

Member Data Documentation

◆ fPriority

◆ fValue