CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions
geomsort::ExtractZ< T, Scalar > Class Template Reference

#include <GeometricSorting.h>

Public Types

typedef Scalar result_type
 

Public Member Functions

Scalar operator() (const T *p) const
 
Scalar operator() (const T &p) const
 

Detailed Description

template<class T, class Scalar = typename T::Scalar>
class geomsort::ExtractZ< T, Scalar >

functor to sort in Z using precomputed_value_sort. Can be used for any object with a member position().

Use:

precomputed_value_sort(v.begin(), v.end(), ExtractZ<Surface>());

Date:
2007/01/17 20:58:43
Revision:
1.1
Author
N. Amapane - CERN

Definition at line 73 of file GeometricSorting.h.

Member Typedef Documentation

template<class T , class Scalar = typename T::Scalar>
typedef Scalar geomsort::ExtractZ< T, Scalar >::result_type

Definition at line 74 of file GeometricSorting.h.

Member Function Documentation

template<class T , class Scalar = typename T::Scalar>
Scalar geomsort::ExtractZ< T, Scalar >::operator() ( const T p) const
inline

Definition at line 75 of file GeometricSorting.h.

75 {return p->position().z();}
template<class T , class Scalar = typename T::Scalar>
Scalar geomsort::ExtractZ< T, Scalar >::operator() ( const T p) const
inline

Definition at line 76 of file GeometricSorting.h.

76 {return p.position().z();}