#include <Logic.h>
|
| virtual void | print (std::ostream &, size_t indSize, size_t indLevel) const override |
Definition at line 101 of file Logic.h.
◆ NodeType
◆ LogicAND() [1/2]
| TrigConf::LogicAND::LogicAND |
( |
| ) |
|
Definition at line 145 of file Logic.cxx.
145 :
147{}
LogicOPS(NodeType nodeType)
◆ LogicAND() [2/2]
| TrigConf::LogicAND::LogicAND |
( |
std::unique_ptr< Logic > && | left | ) |
|
◆ ~LogicAND()
| virtual TrigConf::LogicAND::~LogicAND |
( |
| ) |
|
|
overridevirtualdefault |
◆ addSubLogic()
| void TrigConf::LogicOPS::addSubLogic |
( |
std::unique_ptr< Logic > && | right | ) |
|
|
inherited |
Definition at line 114 of file Logic.cxx.
115{
116 m_subs.push_back(std::move(right));
117}
std::vector< std::unique_ptr< Logic > > m_subs
◆ elements()
| std::map< std::string, bool > TrigConf::LogicAND::elements |
( |
| ) |
const |
|
overridevirtual |
Implements TrigConf::Logic.
Definition at line 174 of file Logic.cxx.
174 {
175 std::map<std::string, bool>
elements;
177 for ( const auto& el : subLogic->elements() ) {
179 }
180 }
182}
std::map< std::string, bool > elements() const override
const std::vector< std::unique_ptr< Logic > > & subLogics() const
◆ elementsCount()
| std::map< std::string, unsigned int > TrigConf::LogicAND::elementsCount |
( |
| ) |
const |
|
overridevirtual |
Implements TrigConf::Logic.
Definition at line 185 of file Logic.cxx.
185 {
188 for ( const auto& el : subLogic->elementsCount() ) {
190 }
191 }
193}
std::map< std::string, unsigned int > elementsCount() const override
◆ evaluate() [1/2]
| bool TrigConf::LogicAND::evaluate |
( |
const std::map< std::string, bool > & | elementsState | ) |
const |
|
overridevirtual |
Implements TrigConf::Logic.
Definition at line 154 of file Logic.cxx.
154 {
156 if(! subLogic->evaluate(elementsState) ) {
157 return negate() ? true :
false;
158 }
159 }
160 return negate() ? false :
true;
161}
◆ evaluate() [2/2]
| bool TrigConf::LogicAND::evaluate |
( |
const std::map< std::string, unsigned int > & | elementsCount | ) |
const |
|
overridevirtual |
◆ expression()
| const std::string & TrigConf::Logic::expression |
( |
| ) |
const |
|
inherited |
◆ negate()
| bool TrigConf::Logic::negate |
( |
| ) |
const |
|
inherited |
◆ nodeType()
| NodeType TrigConf::Logic::nodeType |
( |
| ) |
const |
|
inlineinherited |
◆ print() [1/2]
| void TrigConf::Logic::print |
( |
std::ostream & | o = std::cout | ) |
const |
|
inherited |
Definition at line 37 of file Logic.cxx.
37 {
41 }
43}
void print(std::ostream &=std::cout) const
◆ print() [2/2]
| void TrigConf::LogicOPS::print |
( |
std::ostream & | o, |
|
|
size_t | indSize, |
|
|
size_t | indLevel ) const |
|
overrideprivatevirtualinherited |
Implements TrigConf::Logic.
Definition at line 132 of file Logic.cxx.
132 {
133 o << std::string(indSize*indLevel, ' ');
134 if(
negate() ) { o <<
"NOT "; }
136 for(
auto & subLogic :
m_subs ) {
137 subLogic->print(o,indSize, indLevel+1);
138 }
139 o << std::string(indSize*indLevel, ' ') << ")" << std::endl;
140}
NodeType nodeType() const
◆ setExpression()
| void TrigConf::Logic::setExpression |
( |
const std::string & | expr | ) |
|
|
inherited |
◆ setNegate()
| void TrigConf::Logic::setNegate |
( |
bool | negate = true | ) |
|
|
inherited |
◆ subLogics()
| const std::vector< std::unique_ptr< TrigConf::Logic > > & TrigConf::LogicOPS::subLogics |
( |
| ) |
const |
|
inherited |
◆ takeSubLogics()
| std::vector< std::unique_ptr< TrigConf::Logic > > TrigConf::LogicOPS::takeSubLogics |
( |
| ) |
|
|
inherited |
◆ m_expression
| std::string TrigConf::Logic::m_expression { "" } |
|
privateinherited |
◆ m_negate
| bool TrigConf::Logic::m_negate { false } |
|
privateinherited |
◆ m_nodeType
◆ m_subs
| std::vector<std::unique_ptr<Logic> > TrigConf::LogicOPS::m_subs |
|
privateinherited |
The documentation for this class was generated from the following files: