thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::MinCmp< T, Indx > Class Template Reference

Special calss for Minimum comparisons. More...

#include <MaxCmp.h>

Inheritance diagram for ThePEG::MinCmp< T, Indx >:

Public Member Functions

 MinCmp ()
 Constructors are not inherited.
 
 MinCmp (const T &t, Indx in=Indx())
 Constructors are not inherited.
 
- Public Member Functions inherited from ThePEG::MaxCmp< T, Indx, Cmp >
 MaxCmp ()
 The default constructor.
 
 MaxCmp (const T &t, Indx in=Indx())
 Constructor specifying an initial maximum value, t.
 
bool operator() (const T &t, Indx i=Indx())
 If t is the largest value seen so far return true.
 
 operator const T & () const
 Return the largest value so far.
 
const T & value () const
 Return the largest value so far.
 
Indx index () const
 Return the index of the largest object seen so far.
 
bool operator! () const
 Return true if no index has been chosen.
 

Detailed Description

template<typename T, typename Indx = int>
class ThePEG::MinCmp< T, Indx >

Special calss for Minimum comparisons.

Definition at line 114 of file MaxCmp.h.

Constructor & Destructor Documentation

◆ MinCmp() [1/2]

template<typename T , typename Indx = int>
ThePEG::MinCmp< T, Indx >::MinCmp ( )
inline

Constructors are not inherited.

Definition at line 121 of file MaxCmp.h.

◆ MinCmp() [2/2]

template<typename T , typename Indx = int>
ThePEG::MinCmp< T, Indx >::MinCmp ( const T &  t,
Indx  in = Indx() 
)
inline

Constructors are not inherited.

Definition at line 126 of file MaxCmp.h.


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