stmm-games-doc  0.32.0
Public Types | Public Member Functions | Protected Member Functions | List of all members
stmg::PrefSelector::Operator Class Reference
Inheritance diagram for stmg::PrefSelector::Operator:
Inheritance graph
[legend]

Public Types

enum  OP_TYPE {
  OP_TYPE_FIRST = 0, OP_TYPE_OR = 0, OP_TYPE_AND = 1, OP_TYPE_NOT = 2,
  OP_TYPE_LAST = 2
}
 

Public Member Functions

 Operator (OP_TYPE eOperatorType, std::unique_ptr< Operand > refOperand) noexcept
 
 Operator (OP_TYPE eOperatorType, std::unique_ptr< Operand > refOperand1, std::unique_ptr< Operand > refOperand2) noexcept
 
 Operator (OP_TYPE eOperatorType, std::vector< std::unique_ptr< Operand > > &&aOperands) noexcept
 
Operatoroperator= (Operator &&oSource)
 
int32_t totOperands () const noexcept
 
void dump (int32_t nIndentSpaces) const noexcept override
 
- Public Member Functions inherited from stmg::PrefSelector::Operand
virtual ~Operand () noexcept=default
 

Protected Member Functions

bool eval (const AppPreferences &oPrefs) const noexcept override
 
- Protected Member Functions inherited from stmg::PrefSelector::Operand
 Operand () noexcept=default
 

Member Enumeration Documentation

◆ OP_TYPE

Enumerator
OP_TYPE_FIRST 
OP_TYPE_OR 
OP_TYPE_AND 
OP_TYPE_NOT 
OP_TYPE_LAST 

Constructor & Destructor Documentation

◆ Operator() [1/3]

stmg::PrefSelector::Operator::Operator ( OP_TYPE  eOperatorType,
std::unique_ptr< Operand refOperand 
)
noexcept

◆ Operator() [2/3]

stmg::PrefSelector::Operator::Operator ( OP_TYPE  eOperatorType,
std::unique_ptr< Operand refOperand1,
std::unique_ptr< Operand refOperand2 
)
noexcept

◆ Operator() [3/3]

stmg::PrefSelector::Operator::Operator ( OP_TYPE  eOperatorType,
std::vector< std::unique_ptr< Operand > > &&  aOperands 
)
noexcept

Member Function Documentation

◆ dump()

void stmg::PrefSelector::Operator::dump ( int32_t  nIndentSpaces) const
overridevirtualnoexcept

◆ eval()

bool stmg::PrefSelector::Operator::eval ( const AppPreferences oPrefs) const
overrideprotectedvirtualnoexcept

◆ operator=()

Operator& stmg::PrefSelector::Operator::operator= ( Operator &&  oSource)
inline

◆ totOperands()

int32_t stmg::PrefSelector::Operator::totOperands ( ) const
inlinenoexcept