![]() |
ATLAS Offline Software
|
#include <Logic.h>
Public Types | |
| enum | NodeType { LEAF , AND , OR } |
Public Member Functions | |
| LogicOPS (NodeType nodeType) | |
| LogicOPS (NodeType nodeType, std::unique_ptr< Logic > &&left) | |
| virtual | ~LogicOPS () override=default |
| void | addSubLogic (std::unique_ptr< Logic > &&right) |
| const std::vector< std::unique_ptr< Logic > > & | subLogics () const |
| std::vector< std::unique_ptr< Logic > > | takeSubLogics () |
| NodeType | nodeType () const |
| void | setNegate (bool negate=true) |
| bool | negate () const |
| void | setExpression (const std::string &) |
| const std::string & | expression () const |
| virtual bool | evaluate (const std::map< std::string, bool > &elementsState) const =0 |
| virtual bool | evaluate (const std::map< std::string, unsigned int > &elementsCount) const =0 |
| virtual std::map< std::string, bool > | elements () const =0 |
| virtual std::map< std::string, unsigned int > | elementsCount () const =0 |
| void | print (std::ostream &=std::cout) const |
Private Member Functions | |
| virtual void | print (std::ostream &, size_t indSize, size_t indLevel) const override |
Private Attributes | |
| std::vector< std::unique_ptr< Logic > > | m_subs |
| NodeType | m_nodeType { LEAF } |
| bool | m_negate { false } |
| std::string | m_expression { "" } |
|
inherited |
| TrigConf::LogicOPS::LogicOPS | ( | NodeType | nodeType | ) |
|
overridevirtualdefault |
| void TrigConf::LogicOPS::addSubLogic | ( | std::unique_ptr< Logic > && | right | ) |
|
pure virtualinherited |
Implemented in TrigConf::LogicAND, TrigConf::LogicLeaf, and TrigConf::LogicOR.
|
pure virtualinherited |
Implemented in TrigConf::LogicAND, TrigConf::LogicLeaf, and TrigConf::LogicOR.
|
pure virtualinherited |
Implemented in TrigConf::LogicAND, TrigConf::LogicLeaf, and TrigConf::LogicOR.
|
pure virtualinherited |
Implemented in TrigConf::LogicAND, TrigConf::LogicLeaf, and TrigConf::LogicOR.
|
inherited |
|
inherited |
|
inherited |
|
overrideprivatevirtual |
Implements TrigConf::Logic.
Definition at line 134 of file Logic.cxx.
|
inherited |
|
inherited |
| const std::vector< std::unique_ptr< TrigConf::Logic > > & TrigConf::LogicOPS::subLogics | ( | ) | const |
| std::vector< std::unique_ptr< TrigConf::Logic > > TrigConf::LogicOPS::takeSubLogics | ( | ) |
|
privateinherited |
|
privateinherited |
|
private |