spot 2.13
|
A declarative environment. More...
#include <spot/tl/declenv.hh>
Public Types | |
typedef std::map< const std::string, formula > | prop_map |
Public Member Functions | |
bool | declare (const std::string &prop_str) |
virtual formula | require (const std::string &prop_str) override |
Obtain the formula associated to prop_str. More... | |
virtual const std::string & | name () const override |
Get the name of the environment. More... | |
const prop_map & | get_prop_map () const |
Get the map of atomic proposition known to this environment. More... | |
A declarative environment.
This environment recognizes all atomic propositions that have been previously declared. It will reject other.
bool spot::declarative_environment::declare | ( | const std::string & | prop_str | ) |
Declare an atomic proposition. Return false iff the proposition was already declared.
const prop_map & spot::declarative_environment::get_prop_map | ( | ) | const |
Get the map of atomic proposition known to this environment.
|
overridevirtual |
Get the name of the environment.
Implements spot::environment.
|
overridevirtual |
Obtain the formula associated to prop_str.
Usually prop_str, is the name of an atomic proposition, and spot::require simply returns the associated spot::formula.
Note this is not a const
method. Some environments will "create" the atomic proposition when requested.
Implements spot::environment.