Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

marlin::LogicalExpressions Class Reference

Helper class that holds named boolean values and named conditions that are expressions of these values and computes the corresponding truth values. More...

#include <LogicalExpressions.h>

List of all members.

Public Member Functions

 LogicalExpressions ()
 C'tor.

virtual ~LogicalExpressions ()
 Virtual d'tor.

void addCondition (const std::string &name, const std::string &expression)
 Add a new named logical expression formed out of [!,(,&&,||,),value], e.g.
( A && ( B || !C ) ) || ( !B && D ).

void clear ()
 Clear all boolean values.

bool conditionIsTrue (const std::string &name)
 True if the named condition (stored with addCondition) is true with the current values.

bool expressionIsTrue (const std::string &expression)
 True if the given expression is true with the current values.

void setValue (const std::string &key, bool val)
 Set the the boolean value for the given key.


Protected Attributes

ConditionsMap _condMap
ResultMap _resultMap


Detailed Description

Helper class that holds named boolean values and named conditions that are expressions of these values and computes the corresponding truth values.


The documentation for this class was generated from the following files:
Generated on Mon Jan 12 09:48:56 2009 for Marlin by doxygen 1.3.5