CMS 3D CMS Logo

Public Member Functions | Private Attributes

sortByStringFunction< Object > Class Template Reference

#include <CachingVariable.h>

List of all members.

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 243 of file CachingVariable.h.


Constructor & Destructor Documentation

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

Definition at line 245 of file CachingVariable.h.

: f_(f){}
template<typename Object >
sortByStringFunction< Object >::~sortByStringFunction ( ) [inline]

Definition at line 246 of file CachingVariable.h.

{}

Member Function Documentation

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

Definition at line 248 of file CachingVariable.h.

References sortByStringFunction< Object >::f_.

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

Member Data Documentation

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

Definition at line 252 of file CachingVariable.h.

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