17 return index_to_ap.size();
27 unsigned int index =
size();
28 bool fresh = ap_to_index.insert(std::make_pair(ap, index)).second;
29 STORM_LOG_THROW(fresh, storm::exceptions::UnexpectedException,
"Duplicate atomic proposition '" << ap <<
"' in APSet");
31 index_to_ap.push_back(ap);
36 return ap_to_index.at(ap);
41 return index_to_ap.at(index);
49 return ap_to_index.find(ap) != ap_to_index.end();
59 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)