![]() |
ATLAS Offline Software
|
#include <LogicExpression.h>
Public Member Functions | |
| LogicExpression (std::ostream &o=std::cout) | |
| constructor | |
| virtual | ~LogicExpression ()=default |
| destructor | |
| LogicExpression (const std::string &name, std::ostream &o=std::cout) | |
| virtual int | parse (const std::string &expr, bool enclosed=false) |
| virtual std::string | logicRep () const |
| void | setState (char s) |
| void | setElement (const std::string &e) |
| void | addSubLogic (const LogicExpression &sub) |
| char | state () const |
| const std::string & | element () const |
| const LogicV_t & | subLogics () const |
| const std::shared_ptr< LogicExpression > | subLogic (int i) const |
| bool | isPlaceHolder () const |
| int | totalNumberOfElements () const |
| void | markPlaceHolder () |
| void | normalize () |
| void | printError (const std::string &message, int i) |
| void | printCurrentState () |
| void | print (const std::string &indent="") |
| void | clear () |
Static Public Member Functions | |
| static bool | isValidElementChar (char c) |
| static std::string | extractElementName (const std::string &expr) |
Static Public Attributes | |
| static const char | kAND = '&' |
| AND of sub-logics. | |
| static const char | kOR = '|' |
| OR of sub-logics. | |
| static const char | kNOT = '!' |
| NOT of a sub-logic. (only one sub-logic). | |
| static const char | kELEMENT = '#' |
| simple element. | |
| static const char | kOPEN = '(' |
| empty logic but may have sub-logics. | |
| static const char | kCLOSE = ')' |
| ')' is a valid symbol, but not allowed as a state. | |
Protected Attributes | |
| std::string | m_LogicRep |
| char | m_State |
| LogicV_t | m_SubLogics |
| std::string | m_Element |
| std::ostream & | m_ostream |
| output stream for all messages | |
Definition at line 27 of file LogicExpression.h.
| LogicExpression::LogicExpression | ( | std::ostream & | o = std::cout | ) |
constructor
Definition at line 14 of file LogicExpression.cxx.
|
virtualdefault |
destructor
| LogicExpression::LogicExpression | ( | const std::string & | name, |
| std::ostream & | o = std::cout ) |
|
inline |
Definition at line 56 of file LogicExpression.h.
| void LogicExpression::clear | ( | ) |
Definition at line 293 of file LogicExpression.cxx.
|
inline |
Definition at line 61 of file LogicExpression.h.
|
static |
Definition at line 40 of file LogicExpression.cxx.
|
inline |
Definition at line 64 of file LogicExpression.h.
|
static |
Definition at line 29 of file LogicExpression.cxx.
|
virtual |
Definition at line 176 of file LogicExpression.cxx.
| void LogicExpression::markPlaceHolder | ( | ) |
| void LogicExpression::normalize | ( | ) |
Definition at line 204 of file LogicExpression.cxx.
|
virtual |
Definition at line 51 of file LogicExpression.cxx.
| void LogicExpression::print | ( | const std::string & | indent = "" | ) |
Definition at line 268 of file LogicExpression.cxx.
| void LogicExpression::printCurrentState | ( | ) |
| void LogicExpression::printError | ( | const std::string & | message, |
| int | i ) |
Definition at line 246 of file LogicExpression.cxx.
|
inline |
Definition at line 55 of file LogicExpression.h.
|
inline |
Definition at line 54 of file LogicExpression.h.
|
inline |
Definition at line 60 of file LogicExpression.h.
|
inline |
Definition at line 63 of file LogicExpression.h.
Definition at line 62 of file LogicExpression.h.
| int LogicExpression::totalNumberOfElements | ( | ) | const |
|
static |
AND of sub-logics.
Definition at line 32 of file LogicExpression.h.
|
static |
')' is a valid symbol, but not allowed as a state.
Definition at line 37 of file LogicExpression.h.
|
static |
simple element.
Definition at line 35 of file LogicExpression.h.
|
static |
NOT of a sub-logic. (only one sub-logic).
Definition at line 34 of file LogicExpression.h.
|
static |
empty logic but may have sub-logics.
Definition at line 36 of file LogicExpression.h.
|
static |
OR of sub-logics.
Definition at line 33 of file LogicExpression.h.
|
protected |
Definition at line 85 of file LogicExpression.h.
|
protected |
Definition at line 80 of file LogicExpression.h.
|
protected |
output stream for all messages
Definition at line 87 of file LogicExpression.h.
|
protected |
Definition at line 82 of file LogicExpression.h.
|
protected |
Definition at line 84 of file LogicExpression.h.