CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
reco::parser::CutSetter Struct Reference

#include <CutSetter.h>

Public Member Functions

 CutSetter (SelectorPtr &cut, SelectorStack &selStack)
 
void operator() (const char *, const char *) const
 

Public Attributes

SelectorPtrcut_
 
SelectorStackselStack_
 

Detailed Description

Definition at line 19 of file CutSetter.h.

Constructor & Destructor Documentation

◆ CutSetter()

reco::parser::CutSetter::CutSetter ( SelectorPtr cut,
SelectorStack selStack 
)
inline

Definition at line 20 of file CutSetter.h.

20 : cut_(cut), selStack_(selStack) {}
SelectorStack & selStack_
Definition: CutSetter.h:29
SelectorPtr & cut_
Definition: CutSetter.h:28

Member Function Documentation

◆ operator()()

void reco::parser::CutSetter::operator() ( const char *  ,
const char *   
) const
inline

Definition at line 22 of file CutSetter.h.

References cms::cuda::assert(), cut_, and selStack_.

22  {
23  assert(nullptr == cut_.get());
24  assert(!selStack_.empty());
25  cut_ = selStack_.back();
26  selStack_.pop_back();
27  }
SelectorStack & selStack_
Definition: CutSetter.h:29
assert(be >=bs)
SelectorPtr & cut_
Definition: CutSetter.h:28

Member Data Documentation

◆ cut_

SelectorPtr& reco::parser::CutSetter::cut_

Definition at line 28 of file CutSetter.h.

Referenced by operator()().

◆ selStack_

SelectorStack& reco::parser::CutSetter::selStack_

Definition at line 29 of file CutSetter.h.

Referenced by operator()().