#include <Logic.h>
|
| virtual void | print (std::ostream &, size_t indSize, size_t indLevel) const override |
Definition at line 87 of file Logic.h.
◆ NodeType
◆ LogicOPS() [1/2]
| TrigConf::LogicOPS::LogicOPS |
( |
NodeType | nodeType | ) |
|
Definition at line 103 of file Logic.cxx.
103 :
105{}
NodeType nodeType() const
◆ LogicOPS() [2/2]
| TrigConf::LogicOPS::LogicOPS |
( |
NodeType | nodeType, |
|
|
std::unique_ptr< Logic > && | left ) |
Definition at line 107 of file Logic.cxx.
107 :
109{
110 m_subs.push_back(std::move(left));
111}
std::vector< std::unique_ptr< Logic > > m_subs
◆ ~LogicOPS()
| virtual TrigConf::LogicOPS::~LogicOPS |
( |
| ) |
|
|
overridevirtualdefault |
◆ addSubLogic()
| void TrigConf::LogicOPS::addSubLogic |
( |
std::unique_ptr< Logic > && | right | ) |
|
Definition at line 114 of file Logic.cxx.
115{
116 m_subs.push_back(std::move(right));
117}
◆ elements()
| virtual std::map< std::string, bool > TrigConf::Logic::elements |
( |
| ) |
const |
|
pure virtualinherited |
◆ elementsCount()
| virtual std::map< std::string, unsigned int > TrigConf::Logic::elementsCount |
( |
| ) |
const |
|
pure virtualinherited |
◆ evaluate() [1/2]
| virtual bool TrigConf::Logic::evaluate |
( |
const std::map< std::string, bool > & | elementsState | ) |
const |
|
pure virtualinherited |
◆ evaluate() [2/2]
| virtual bool TrigConf::Logic::evaluate |
( |
const std::map< std::string, unsigned int > & | elementsCount | ) |
const |
|
pure virtualinherited |
◆ 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 |
|
overrideprivatevirtual |
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}
◆ 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 |
◆ takeSubLogics()
| std::vector< std::unique_ptr< TrigConf::Logic > > TrigConf::LogicOPS::takeSubLogics |
( |
| ) |
|
◆ 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 |
|
private |
The documentation for this class was generated from the following files: