1#ifndef STORM_STORAGE_MAXIMALENDCOMPONENT_H_
2#define STORM_STORAGE_MAXIMALENDCOMPONENT_H_
4#include <unordered_map>
20 typedef std::unordered_map<uint_fast64_t, set_type>
map_type;
86 std::size_t
size()
const;
136 bool containsChoice(uint_fast64_t state, uint_fast64_t choice)
const;
A bit vector that is internally represented as a vector of 64-bit values.
This class represents a maximal end-component of a nondeterministic model.
iterator end()
Retrieves an iterator that points past the last state and its choices in the MEC.
bool operator!=(MaximalEndComponent const &other)
set_type const & getChoicesForState(uint_fast64_t state) const
Retrieves the choices for the given state that are contained in this MEC under the assumption that th...
set_type getStateSet() const
Retrieves the set of states contained in the MEC.
map_type::const_iterator const_iterator
storm::storage::FlatSet< sparse::state_type > set_type
void addState(uint_fast64_t state, set_type const &choices)
Adds the given state and the given choices to the MEC.
friend std::ostream & operator<<(std::ostream &out, MaximalEndComponent const &component)
bool operator==(MaximalEndComponent const &other)
std::unordered_map< uint_fast64_t, set_type > map_type
MaximalEndComponent()
Creates an empty MEC.
bool containsAnyState(storm::storage::BitVector stateSet) const
Retrieves whether at least one of the given states is contained in this MEC.
bool containsState(uint_fast64_t state) const
Retrieves whether the given state is contained in this MEC.
void removeState(uint_fast64_t state)
Removes the given state and all of its choices from the MEC.
iterator begin()
Retrieves an iterator that points to the first state and its choices in the MEC.
MaximalEndComponent & operator=(MaximalEndComponent const &other)
Assigns the contents of the given MEC to the current one via copying.
map_type::iterator iterator
bool containsChoice(uint_fast64_t state, uint_fast64_t choice) const
Retrieves whether the given choice for the given state is contained in the MEC.
boost::container::flat_set< Key, std::less< Key >, boost::container::new_allocator< Key > > FlatSet
Redefinition of flat_set was needed, because from Boost 1.70 on the default allocator is set to void.
storage::BitVector BitVector