Raven Core
3.0.0
P2P Digital Currency
|
Class able to resolve any logical function in propositional logic. More...
#include <LibBoolEE.h>
Public Types | |
typedef std::map< std::string, bool > | Vals |
Valuation of atomic propositions. More... | |
typedef std::pair< std::string, bool > | Val |
A single proposition valuation. More... | |
Static Public Member Functions | |
static bool | resolve (const std::string &source, const Vals &valuation) |
static std::string | removeWhitespaces (const std::string &source) |
static std::string | removeCharacter (const std::string &source, const char ch) |
Static Private Member Functions | |
static std::vector< std::string > | singleParse (const std::string &formula, const char op) |
static bool | belongsToName (const char ch) |
static bool | resolveRec (const std::string &source, const Vals &valuation) |
static std::string | trim (const std::string &source) |
Class able to resolve any logical function in propositional logic.
This is a static helper class able of resolving any preposition logic formula. Formula construction:
Definition at line 40 of file LibBoolEE.h.
typedef std::pair<std::string, bool> LibBoolEE::Val |
A single proposition valuation.
Definition at line 43 of file LibBoolEE.h.
typedef std::map<std::string, bool> LibBoolEE::Vals |
Valuation of atomic propositions.
Definition at line 42 of file LibBoolEE.h.
|
staticprivate |
|
static |
|
static |
|
static |
Definition at line 59 of file LibBoolEE.cpp.
|
staticprivate |
Definition at line 63 of file LibBoolEE.cpp.
|
staticprivate |
Definition at line 19 of file LibBoolEE.cpp.
|
staticprivate |
Definition at line 121 of file LibBoolEE.cpp.