CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
RefSelector< S > Struct Template Reference

#include <RefSelector.h>

Public Member Functions

template<typename Ref >
bool operator() (const Ref &ref) const
 
 RefSelector (const S &sel)
 

Private Attributes

S sel_
 

Detailed Description

template<typename S>
struct RefSelector< S >

Definition at line 5 of file RefSelector.h.

Constructor & Destructor Documentation

template<typename S>
RefSelector< S >::RefSelector ( const S sel)
inline

Definition at line 6 of file RefSelector.h.

6 : sel_(sel) {}

Member Function Documentation

template<typename S>
template<typename Ref >
bool RefSelector< S >::operator() ( const Ref &  ref) const
inline

Definition at line 8 of file RefSelector.h.

References RefSelector< S >::sel_.

8  {
9  return sel_(*ref);
10  }

Member Data Documentation

template<typename S>
S RefSelector< S >::sel_
private

Definition at line 13 of file RefSelector.h.

Referenced by RefSelector< S >::operator()().