BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
CompareDesc< T > Struct Template Reference

Description

template<typename T>
struct CompareDesc< T >

Definition at line 714 of file TMath.h.

Public Member Functions

 CompareDesc (T d)
 
template<typename Index >
bool operator() (Index i1, Index i2)
 

Public Attributes

fData
 

Constructor & Destructor Documentation

◆ CompareDesc()

template<typename T >
CompareDesc< T >::CompareDesc ( d)
inline

Definition at line 716 of file TMath.h.

716 : fData(d) {}

Member Function Documentation

◆ operator()()

template<typename T >
template<typename Index >
bool CompareDesc< T >::operator() ( Index  i1,
Index  i2 
)
inline

Definition at line 719 of file TMath.h.

719  {
720  return *(fData + i1) > *(fData + i2);
721  }

References CompareDesc< T >::fData.

Member Data Documentation

◆ fData

template<typename T >
T CompareDesc< T >::fData

Definition at line 723 of file TMath.h.

Referenced by CompareDesc< T >::operator()().


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