CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::parser::ExpressionCondition Struct Reference

#include <ExpressionCondition.h>

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

List of all members.

Public Member Functions

 ExpressionCondition (ExpressionStack &expStack, SelectorStack &selStack)
virtual double value (const edm::ObjectWithDict &o) const

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_.

                                                                                { 
        false_ = expStack.back(); expStack.pop_back();
        true_  = expStack.back(); expStack.pop_back();
        cond_  = selStack.back(); selStack.pop_back();
      }

Member Function Documentation

virtual double reco::parser::ExpressionCondition::value ( const edm::ObjectWithDict o) const [inline, virtual]

Implements reco::parser::ExpressionBase.

Definition at line 20 of file ExpressionCondition.h.

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

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

Member Data Documentation

Definition at line 30 of file ExpressionCondition.h.

Referenced by ExpressionCondition(), and value().

Definition at line 29 of file ExpressionCondition.h.

Referenced by ExpressionCondition(), and value().

Definition at line 29 of file ExpressionCondition.h.

Referenced by ExpressionCondition(), and value().