stmm-games-doc  0.32.0
Classes | Public Member Functions | List of all members
stmg::PrefSelector Class Reference

Classes

class  Operand
 
class  Operator
 
class  OptionCond
 

Public Member Functions

 PrefSelector (unique_ptr< Operand > refOperand) noexcept
 Constructor. More...
 
 PrefSelector () noexcept=default
 Empty constructor. More...
 
bool select (const AppPreferences &oPrefs) const noexcept
 Whether the preferences is selected by this instance. More...
 
void dump (int32_t nIndentSpaces) const noexcept
 

Constructor & Destructor Documentation

◆ PrefSelector() [1/2]

stmg::PrefSelector::PrefSelector ( unique_ptr< Operand refOperand)
explicitnoexcept

Constructor.

Parameters
refOperandThe expression. Cannot be null.

◆ PrefSelector() [2/2]

stmg::PrefSelector::PrefSelector ( )
defaultnoexcept

Empty constructor.

The select() functions will always return false.

Member Function Documentation

◆ dump()

void stmg::PrefSelector::dump ( int32_t  nIndentSpaces) const
noexcept

◆ select()

bool stmg::PrefSelector::select ( const AppPreferences oPrefs) const
noexcept

Whether the preferences is selected by this instance.

Parameters
oPrefsThe preferences.
Returns
Whether tile selected.