CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
sortByStringFunction< Object > Class Template Reference

#include <StringObjectFunction.h>

Public Member Functions

bool operator() (const Object *o1, const Object *o2)
 
 sortByStringFunction (StringObjectFunction< Object > *f)
 
 ~sortByStringFunction ()
 

Private Attributes

StringObjectFunction< Object > * f_
 

Detailed Description

template<typename Object>
class sortByStringFunction< Object >

Definition at line 34 of file StringObjectFunction.h.

Constructor & Destructor Documentation

◆ sortByStringFunction()

template<typename Object >
sortByStringFunction< Object >::sortByStringFunction ( StringObjectFunction< Object > *  f)
inline

Definition at line 36 of file StringObjectFunction.h.

36 : f_(f) {}

◆ ~sortByStringFunction()

template<typename Object >
sortByStringFunction< Object >::~sortByStringFunction ( )
inline

Definition at line 37 of file StringObjectFunction.h.

37 {}

Member Function Documentation

◆ operator()()

template<typename Object >
bool sortByStringFunction< Object >::operator() ( const Object *  o1,
const Object *  o2 
)
inline

Definition at line 39 of file StringObjectFunction.h.

39 { return (*f_)(*o1) > (*f_)(*o2); }

References sortByStringFunction< Object >::f_.

Member Data Documentation

◆ f_

template<typename Object >
StringObjectFunction<Object>* sortByStringFunction< Object >::f_
private

Definition at line 42 of file StringObjectFunction.h.

Referenced by sortByStringFunction< Object >::operator()().

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
sortByStringFunction::f_
StringObjectFunction< Object > * f_
Definition: StringObjectFunction.h:42