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 38 of file StringObjectFunction.h.

Constructor & Destructor Documentation

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

Definition at line 40 of file StringObjectFunction.h.

40 : f_(f){}
StringObjectFunction< Object > * f_
template<typename Object >
sortByStringFunction< Object >::~sortByStringFunction ( )
inline

Definition at line 41 of file StringObjectFunction.h.

41 {}

Member Function Documentation

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

Definition at line 43 of file StringObjectFunction.h.

43  {
44  return (*f_)(*o1) > (*f_)(*o2);
45  }
StringObjectFunction< Object > * f_

Member Data Documentation

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

Definition at line 47 of file StringObjectFunction.h.