Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Data Fields
UUtils::CompareAsc< T > Struct Template Reference

#include <UUtils.hh>

Public Member Functions

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

Data Fields

fData
 

Detailed Description

template<typename T>
struct UUtils::CompareAsc< T >

Definition at line 114 of file UUtils.hh.

Constructor & Destructor Documentation

template<typename T >
UUtils::CompareAsc< T >::CompareAsc ( d)
inline

Definition at line 117 of file UUtils.hh.

117 : fData(d) {}

Member Function Documentation

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

Definition at line 120 of file UUtils.hh.

References UUtils::CompareAsc< T >::fData.

121  {
122  return *(fData + i1) < *(fData + i2);
123  }

Field Documentation

template<typename T >
T UUtils::CompareAsc< T >::fData

Definition at line 125 of file UUtils.hh.

Referenced by UUtils::CompareAsc< T >::operator()().


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