#include <Logic.h>
|
| virtual void | print (std::ostream &, size_t indSize, size_t indLevel) const override |
Definition at line 113 of file Logic.h.
◆ NodeType
◆ LogicOR() [1/2]
| TrigConf::LogicOR::LogicOR |
( |
| ) |
|
Definition at line 195 of file Logic.cxx.
195 :
197{}
LogicOPS(NodeType nodeType)
◆ LogicOR() [2/2]
| TrigConf::LogicOR::LogicOR |
( |
std::unique_ptr< Logic > && | left | ) |
|
◆ ~LogicOR()
| virtual TrigConf::LogicOR::~LogicOR |
( |
| ) |
|
|
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::LogicOR::elements |
( |
| ) |
const |
|
overridevirtual |
Implements TrigConf::Logic.
Definition at line 224 of file Logic.cxx.
224 {
225 std::map<std::string, bool>
elements;
227 for ( const auto& el : subLogic->elements() ) {
229 }
230 }
232}
const std::vector< std::unique_ptr< Logic > > & subLogics() const
std::map< std::string, bool > elements() const override
◆ elementsCount()
| std::map< std::string, unsigned int > TrigConf::LogicOR::elementsCount |
( |
| ) |
const |
|
overridevirtual |
Implements TrigConf::Logic.
Definition at line 235 of file Logic.cxx.
235 {
238 for ( const auto& el : subLogic->elementsCount() ) {
240 }
241 }
243}
std::map< std::string, unsigned int > elementsCount() const override
◆ evaluate() [1/2]
| bool TrigConf::LogicOR::evaluate |
( |
const std::map< std::string, bool > & | elementsState | ) |
const |
|
overridevirtual |
Implements TrigConf::Logic.
Definition at line 204 of file Logic.cxx.
204 {
206 if( subLogic->evaluate(elementsState) ) {
207 return negate() ? false :
true;
208 }
209 }
210 return negate() ? true :
false;
211}
◆ evaluate() [2/2]
| bool TrigConf::LogicOR::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: