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 31 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 33 of file TPriorityValue.h.

◆ TPriorityValue() [2/4]

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

Definition at line 34 of file TPriorityValue.h.

◆ TPriorityValue() [3/4]

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

Definition at line 35 of file TPriorityValue.h.

◆ TPriorityValue() [4/4]

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

Definition at line 36 of file TPriorityValue.h.

◆ ~TPriorityValue()

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

Member Function Documentation

◆ Address() [1/2]

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

◆ Address() [2/2]

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

Definition at line 75 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ operator T()

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

Definition at line 149 of file TPriorityValue.h.

◆ operator!=() [1/2]

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

Definition at line 127 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 101 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 131 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 105 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 139 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 113 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 87 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 123 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 97 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 135 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 109 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 143 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 117 of file TPriorityValue.h.

References TPriorityValue< T >::fValue.

◆ Priority()

◆ Reset()

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

Definition at line 60 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 66 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

Definition at line 51 of file TPriorityValue.h.

References TPriorityValue< T >::fPriority.

Referenced by TChannel::ParseInputData().

◆ 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