GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
TPriorityValue< T > Class Template Reference

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

Public Member Functions

 TPriorityValue ()
 
 TPriorityValue (T value, EPriority priority=EPriority::kDefault)
 
 TPriorityValue (const TPriorityValue &rhs)
 
 TPriorityValue (TPriorityValue &&rhs)
 
 ~TPriorityValue ()
 
T * Address ()
 
const T * Address () const
 
 operator T () 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)
 
bool operator<= (const T &rhs) const
 
TPriorityValue< T > & operator= (const TPriorityValue< T > &rhs)
 
TPriorityValue< T > & operator= (TPriorityValue< T > &&rhs)
 
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)
 
bool operator>= (const T &rhs) const
 
EPriority Priority () const
 
void Reset (T val)
 
void ResetPriority ()
 
void Set (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 > &)
 

#include <TPriorityValue.h>

Constructor & Destructor Documentation

◆ TPriorityValue() [1/4]

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

Definition at line 28 of file TPriorityValue.h.

◆ TPriorityValue() [2/4]

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

Definition at line 32 of file TPriorityValue.h.

◆ TPriorityValue() [3/4]

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

Definition at line 37 of file TPriorityValue.h.

◆ TPriorityValue() [4/4]

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

Definition at line 42 of file TPriorityValue.h.

◆ ~TPriorityValue()

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

Definition at line 47 of file TPriorityValue.h.

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

◆ operator T()

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

Definition at line 142 of file TPriorityValue.h.

◆ operator!=() [1/2]

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

Definition at line 105 of file TPriorityValue.h.

◆ operator!=() [2/2]

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

Definition at line 125 of file TPriorityValue.h.

◆ operator<() [1/2]

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

Definition at line 108 of file TPriorityValue.h.

◆ operator<() [2/2]

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

Definition at line 128 of file TPriorityValue.h.

◆ operator<=() [1/2]

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

Definition at line 114 of file TPriorityValue.h.

◆ operator<=() [2/2]

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

Definition at line 134 of file TPriorityValue.h.

◆ operator=() [1/2]

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

Definition at line 85 of file TPriorityValue.h.

◆ operator=() [2/2]

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

Definition at line 93 of file TPriorityValue.h.

◆ operator==() [1/2]

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

Definition at line 102 of file TPriorityValue.h.

◆ operator==() [2/2]

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

Definition at line 122 of file TPriorityValue.h.

◆ operator>() [1/2]

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

Definition at line 111 of file TPriorityValue.h.

◆ operator>() [2/2]

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

Definition at line 131 of file TPriorityValue.h.

◆ operator>=() [1/2]

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

Definition at line 117 of file TPriorityValue.h.

◆ operator>=() [2/2]

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

Definition at line 137 of file TPriorityValue.h.

◆ Priority()

template<class T>
EPriority TPriorityValue< T >::Priority ( ) const
inline

Definition at line 80 of file TPriorityValue.h.

◆ Reset()

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

Definition at line 69 of file TPriorityValue.h.

Referenced by TChannel::Clear().

◆ ResetPriority()

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

Definition at line 74 of file TPriorityValue.h.

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

◆ Set()

◆ SetPriority()

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

Definition at line 61 of file TPriorityValue.h.

Referenced by TChannel::ParseInputData().

◆ Value()

Friends And Related Function Documentation

◆ operator<<

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

Member Data Documentation

◆ fPriority

◆ fValue