CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
reco::parser::ExpressionCondition Struct Reference

#include <ExpressionCondition.h>

Inheritance diagram for reco::parser::ExpressionCondition:
reco::parser::ExpressionBase

Public Member Functions

 ExpressionCondition (ExpressionStack &expStack, SelectorStack &selStack)
 
virtual double value (const edm::ObjectWithDict &o) const
 
- Public Member Functions inherited from reco::parser::ExpressionBase
virtual ~ExpressionBase ()
 

Private Attributes

SelectorPtr cond_
 
ExpressionPtr false_
 
ExpressionPtr true_
 

Detailed Description

Definition at line 19 of file ExpressionCondition.h.

Constructor & Destructor Documentation

reco::parser::ExpressionCondition::ExpressionCondition ( ExpressionStack expStack,
SelectorStack selStack 
)
inline

Definition at line 23 of file ExpressionCondition.h.

References cond_, false_, and true_.

23  {
24  false_ = expStack.back(); expStack.pop_back();
25  true_ = expStack.back(); expStack.pop_back();
26  cond_ = selStack.back(); selStack.pop_back();
27  }

Member Function Documentation

virtual double reco::parser::ExpressionCondition::value ( const edm::ObjectWithDict o) const
inlinevirtual

Implements reco::parser::ExpressionBase.

Definition at line 20 of file ExpressionCondition.h.

References cond_, false_, python.connectstrParser::o, and true_.

Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Mixins.UsingBlock::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), and Vispa.Views.PropertyView.FileProperty::labelDoubleClicked().

20  {
21  return (*cond_)(o) ? true_->value(o) : false_->value(o);
22  }

Member Data Documentation

SelectorPtr reco::parser::ExpressionCondition::cond_
private

Definition at line 30 of file ExpressionCondition.h.

Referenced by ExpressionCondition(), and value().

ExpressionPtr reco::parser::ExpressionCondition::false_
private

Definition at line 29 of file ExpressionCondition.h.

Referenced by ExpressionCondition(), and value().

ExpressionPtr reco::parser::ExpressionCondition::true_
private

Definition at line 29 of file ExpressionCondition.h.

Referenced by ExpressionCondition(), and value().