World.h
bool operator==(const World &w) const
Returns whether this World is equivalent to a given World, by comparing their truth assignment maps.
Definition: World.cpp:94
unsigned int numProps() const
Returns the number of propositions declared for this World. Not all of the propositions have necessar...
Definition: World.cpp:60
bool operator[](unsigned int i) const
Returns the boolean value of a given proposition in this World. Reports an error if the proposition h...
Definition: World.cpp:47
const std::unordered_map< unsigned int, bool > & props() const
Returns this World's underlying proposition-to-boolean assignment map.
Definition: World.cpp:89
std::string formula() const
Returns a formatted string representation of this World, as a conjunction of literals.
Definition: World.cpp:77
bool satisfies(const World &w) const
Returns whether this World propositionally satisfies a given World w. Specifically,...
Definition: World.cpp:65
World(unsigned int numProps)
Initializes a world with a given number of propositions.
Definition: World.cpp:43
Main namespace. Contains everything in this library.
Definition: MultiLevelPlanarManipulatorDemo.cpp:65
A class to represent an assignment of boolean values to propositions. A World can be partially restri...
Definition: World.h:71