CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
StringCutObjectSelector< T, DefaultLazyness > Struct Template Reference

#include <StringCutObjectSelector.h>

Public Member Functions

bool operator() (const T &t) const
 
 StringCutObjectSelector (const std::string &cut, bool lazy=DefaultLazyness)
 
 StringCutObjectSelector (const reco::parser::SelectorPtr &select)
 

Private Attributes

reco::parser::SelectorPtr select_
 
edm::TypeWithDict type_
 

Detailed Description

template<typename T, bool DefaultLazyness = false>
struct StringCutObjectSelector< T, DefaultLazyness >

Definition at line 16 of file StringCutObjectSelector.h.

Constructor & Destructor Documentation

◆ StringCutObjectSelector() [1/2]

template<typename T, bool DefaultLazyness = false>
StringCutObjectSelector< T, DefaultLazyness >::StringCutObjectSelector ( const std::string &  cut,
bool  lazy = DefaultLazyness 
)
inline

Definition at line 17 of file StringCutObjectSelector.h.

17  : type_(typeid(T)) {
18  if (!reco::parser::cutParser<T>(cut, select_, lazy)) {
19  throw edm::Exception(edm::errors::Configuration, "failed to parse \"" + cut + "\"");
20  }
21  }
reco::parser::SelectorPtr select_
long double T

◆ StringCutObjectSelector() [2/2]

template<typename T, bool DefaultLazyness = false>
StringCutObjectSelector< T, DefaultLazyness >::StringCutObjectSelector ( const reco::parser::SelectorPtr select)
inline

Definition at line 22 of file StringCutObjectSelector.h.

22 : select_(select), type_(typeid(T)) {}
reco::parser::SelectorPtr select_
long double T

Member Function Documentation

◆ operator()()

template<typename T, bool DefaultLazyness = false>
bool StringCutObjectSelector< T, DefaultLazyness >::operator() ( const T t) const
inline

Member Data Documentation

◆ select_

template<typename T, bool DefaultLazyness = false>
reco::parser::SelectorPtr StringCutObjectSelector< T, DefaultLazyness >::select_
private

◆ type_

template<typename T, bool DefaultLazyness = false>
edm::TypeWithDict StringCutObjectSelector< T, DefaultLazyness >::type_
private