Browse Source

PlayerCoalition: Added a getter for players

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
109a885c65
  1. 4
      src/storm/logic/PlayerCoalition.cpp
  2. 2
      src/storm/logic/PlayerCoalition.h

4
src/storm/logic/PlayerCoalition.cpp

@ -6,6 +6,10 @@ namespace storm {
PlayerCoalition::PlayerCoalition(std::vector<boost::variant<std::string, storm::storage::PlayerIndex>> playerIds) : _playerIds(playerIds) {
// Intentionally left empty.
}
std::vector<boost::variant<std::string, storm::storage::PlayerIndex>> const& PlayerCoalition::getPlayers() const {
return _playerIds;
}
std::ostream& operator<<(std::ostream& stream, PlayerCoalition const& coalition) {
bool firstItem = true;

2
src/storm/logic/PlayerCoalition.h

@ -15,6 +15,8 @@ namespace storm {
PlayerCoalition(std::vector<boost::variant<std::string, storm::storage::PlayerIndex>> playerIds);
PlayerCoalition(PlayerCoalition const& other) = default;
std::vector<boost::variant<std::string, storm::storage::PlayerIndex>> const& getPlayers() const;
friend std::ostream& operator<<(std::ostream& stream, PlayerCoalition const& playerCoalition);
private:

Loading…
Cancel
Save