Geant4-11
Public Member Functions | Private Attributes
anonymous_namespace{G4AttValueFilterT.hh}::InInterval< T > Class Template Reference

#include <G4AttValueFilterT.hh>

Public Member Functions

 InInterval (const T &value)
 
bool operator() (const std::pair< const G4String, std::pair< T, T > > &myPair) const
 

Private Attributes

fValue
 

Detailed Description

template<typename T>
class anonymous_namespace{G4AttValueFilterT.hh}::InInterval< T >

Definition at line 55 of file G4AttValueFilterT.hh.

Constructor & Destructor Documentation

◆ InInterval()

template<typename T >
anonymous_namespace{G4AttValueFilterT.hh}::InInterval< T >::InInterval ( const T &  value)
inline

Member Function Documentation

◆ operator()()

template<typename T >
bool anonymous_namespace{G4AttValueFilterT.hh}::InInterval< T >::operator() ( const std::pair< const G4String, std::pair< T, T > > &  myPair) const
inline

Definition at line 58 of file G4AttValueFilterT.hh.

59 {
60 T min = myPair.second.first;
61 T max = myPair.second.second;
62 return ((fValue > min || fValue == min) && (fValue < max));
63 }
T max(const T t1, const T t2)
brief Return the largest of the two arguments
T min(const T t1, const T t2)
brief Return the smallest of the two arguments

References G4INCL::Math::max(), and G4INCL::Math::min().

Field Documentation

◆ fValue

template<typename T >
T anonymous_namespace{G4AttValueFilterT.hh}::InInterval< T >::fValue
private

Definition at line 65 of file G4AttValueFilterT.hh.


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