17 return index_to_ap.size();
26 "Set of atomic proposition size is limited to " << std::to_string(
MAX_APS) <<
".");
28 unsigned int index =
size();
29 bool fresh = ap_to_index.insert(std::make_pair(ap, index)).second;
30 STORM_LOG_THROW(fresh, storm::exceptions::UnexpectedException,
"Duplicate atomic proposition '" << ap <<
"' in APSet.");
32 index_to_ap.push_back(ap);
37 return ap_to_index.at(ap);
42 return index_to_ap.at(index);
50 return ap_to_index.find(ap) != ap_to_index.end();
60 return element | (1ul << ap);
const unsigned int MAX_APS
alphabet_element elementAddAP(alphabet_element element, unsigned int ap) const
bool contains(const std::string &ap) const
std::size_t alphabetSize() const
alphabet_element elementAllFalse() const
const std::string & getAP(unsigned int index) const
void add(const std::string &ap)
unsigned int size() const
std::size_t alphabet_element
const std::vector< std::string > & getAPs() const
unsigned int getIndex(const std::string &ap) const
#define STORM_LOG_THROW(cond, exception, message)