The Gaudi Framework  master (594c33fa)
NTuple::Range< TYP > Class Template Reference

Class defining a range. More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/NTuple.h>

Public Member Functions

 Range (TYP low, TYP upper)
 Standard constructor. More...
 
 Range (const Range< TYP > &copy)
 Copy constructor. More...
 
Rangeoperator= (const Range< TYP > &copy)
 Adjust ranges. More...
 
virtual ~Range ()=default
 Destructor. More...
 
TYP lower () const
 Lower boundary of range. More...
 
TYP upper () const
 Upper boundary of range. More...
 
TYP distance () const
 Distance between lower and upper range. More...
 
IOpaqueAddressmin ()
 
IOpaqueAddressmax ()
 

Static Public Member Functions

static TYP min ()
 Minimal number of data. More...
 
static TYP max ()
 Maximal number of data. More...
 

Private Attributes

TYP m_lower
 Lower boundary of range. More...
 
TYP m_upper
 Upper boundary of range. More...
 

Detailed Description

template<class TYP>
class NTuple::Range< TYP >

Class defining a range.

Definition at line 46 of file NTuple.h.

Constructor & Destructor Documentation

◆ Range() [1/2]

template<class TYP >
NTuple::Range< TYP >::Range ( TYP  low,
TYP  upper 
)
inline

Standard constructor.

Definition at line 74 of file NTuple.h.

74 : m_lower( std::move( low ) ), m_upper( std::move( upper ) ) {}

◆ Range() [2/2]

template<class TYP >
NTuple::Range< TYP >::Range ( const Range< TYP > &  copy)
inline

Copy constructor.

Definition at line 76 of file NTuple.h.

76 : m_lower( copy.m_lower ), m_upper( copy.m_upper ) {}

◆ ~Range()

template<class TYP >
virtual NTuple::Range< TYP >::~Range ( )
virtualdefault

Destructor.

Member Function Documentation

◆ distance()

template<class TYP >
TYP NTuple::Range< TYP >::distance ( ) const
inline

Distance between lower and upper range.

Definition at line 90 of file NTuple.h.

90 { return m_upper - m_lower; }

◆ lower()

template<class TYP >
TYP NTuple::Range< TYP >::lower ( ) const
inline

Lower boundary of range.

Definition at line 86 of file NTuple.h.

86 { return m_lower; }

◆ max() [1/2]

template<class TYP >
static TYP NTuple::Range< TYP >::max ( )
inlinestatic

Maximal number of data.

Definition at line 94 of file NTuple.h.

◆ max() [2/2]

Definition at line 123 of file NTuple.h.

123  {
124  return (IOpaqueAddress*)0xffffffff;
125  }

◆ min() [1/2]

template<class TYP >
static TYP NTuple::Range< TYP >::min ( )
inlinestatic

Minimal number of data.

Definition at line 92 of file NTuple.h.

◆ min() [2/2]

Definition at line 119 of file NTuple.h.

119  {
120  return (IOpaqueAddress*)0x0;
121  }

◆ operator=()

template<class TYP >
Range& NTuple::Range< TYP >::operator= ( const Range< TYP > &  copy)
inline

Adjust ranges.

Definition at line 78 of file NTuple.h.

78  {
79  m_lower = copy.m_lower;
80  m_upper = copy.m_upper;
81  return *this;
82  }

◆ upper()

template<class TYP >
TYP NTuple::Range< TYP >::upper ( ) const
inline

Upper boundary of range.

Definition at line 88 of file NTuple.h.

88 { return m_upper; }

Member Data Documentation

◆ m_lower

template<class TYP >
TYP NTuple::Range< TYP >::m_lower
private

Lower boundary of range.

Definition at line 68 of file NTuple.h.

◆ m_upper

template<class TYP >
TYP NTuple::Range< TYP >::m_upper
private

Upper boundary of range.

Definition at line 70 of file NTuple.h.


The documentation for this class was generated from the following file:
std::move
T move(T... args)
IOpaqueAddress
Definition: IOpaqueAddress.h:33
std::copy
T copy(T... args)
NTuple::Range::upper
TYP upper() const
Upper boundary of range.
Definition: NTuple.h:88
std::numeric_limits::min
T min(T... args)
NTuple::Range::m_upper
TYP m_upper
Upper boundary of range.
Definition: NTuple.h:70
NTuple::Range::m_lower
TYP m_lower
Lower boundary of range.
Definition: NTuple.h:68
std::numeric_limits::max
T max(T... args)