13template<
typename ValueType,
typename ElementType>
16 for (
auto const& value : values) {
18 result.push_back(
"inf");
20 result.push_back(
"-inf");
24 result.push_back(ss.str());
32template<
typename ValueType>
35 for (
auto const rank : ranks) {
37 result.push_back(
"inf");
39 result.push_back(rank);
45template<
typename ValueType>
48 result[
"label"] = label;
50 for (
auto const state : states) {
51 stateArray.push_back(state);
53 result[
"states"] = std::move(stateArray);
60 std::vector<storm::ExtendedRationalNumber>
const&);
A bit vector that is internally represented as a vector of 64-bit values.
template storm::json< storm::RationalNumber > valuesToJson< storm::RationalNumber, storm::RationalNumber >(std::vector< storm::RationalNumber > const &)
template storm::json< double > ranksToJson< double >(std::vector< RankingType > const &)
storm::json< ValueType > ranksToJson(std::vector< RankingType > const &ranks)
Converts the given ranks to a json array.
template storm::json< double > stateSetToJson< double >(std::string const &, storm::storage::BitVector const &)
template storm::json< double > valuesToJson< double, double >(std::vector< double > const &)
template storm::json< storm::RationalNumber > valuesToJson< storm::RationalNumber, storm::ExtendedRationalNumber >(std::vector< storm::ExtendedRationalNumber > const &)
template storm::json< storm::RationalNumber > ranksToJson< storm::RationalNumber >(std::vector< RankingType > const &)
storm::json< ValueType > valuesToJson(std::vector< ElementType > const &values)
Converts the given values to a json array.
storm::json< ValueType > stateSetToJson(std::string const &label, storm::storage::BitVector const &states)
Converts the given set of states to a json object of the form {"label": <label>, "states": [<state in...
template storm::json< storm::RationalNumber > stateSetToJson< storm::RationalNumber >(std::string const &, storm::storage::BitVector const &)
static RankingType const InfRank
bool isNegativeInfinity(ExtendedNumber< ValueType > const &number)
bool isInfinity(ValueType const &a)
ValueType const & getFinite(ExtendedNumber< ValueType > const &value)
nlohmann::basic_json< std::map, std::vector, std::string, bool, int64_t, uint64_t, ValueType > json
static const bool IsExact