Storm
1.13.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
DistributionEntry.cpp
Go to the documentation of this file.
1
#include "
storm/generator/DistributionEntry.h
"
2
#include <cstdint>
3
4
#include "
storm/adapters/IntervalAdapter.h
"
5
#include "
storm/adapters/RationalFunctionAdapter.h
"
6
#include "
storm/adapters/RationalNumberAdapter.h
"
7
#include "
storm/storage/BitVector.h
"
8
9
namespace
storm::generator
{
10
11
template
<
typename
StateType,
typename
ValueType>
12
DistributionEntry<StateType, ValueType>::DistributionEntry
() : state(0), value(0) {
13
// Intentionally left empty.
14
}
15
16
template
<
typename
StateType,
typename
ValueType>
17
DistributionEntry<StateType, ValueType>::DistributionEntry
(StateType
const
& state, ValueType
const
& value) : state(state), value(value) {
18
// Intentionally left empty.
19
}
20
21
template
<
typename
StateType,
typename
ValueType>
22
StateType
const
&
DistributionEntry<StateType, ValueType>::getState
()
const
{
23
return
state;
24
}
25
26
template
<
typename
StateType,
typename
ValueType>
27
ValueType
const
&
DistributionEntry<StateType, ValueType>::getValue
()
const
{
28
return
value;
29
}
30
31
template
<
typename
StateType,
typename
ValueType>
32
void
DistributionEntry<StateType, ValueType>::addToValue
(ValueType
const
& value) {
33
this->value += value;
34
}
35
36
template
<
typename
StateType,
typename
ValueType>
37
void
DistributionEntry<StateType, ValueType>::divide
(ValueType
const
& value) {
38
this->value /= value;
39
}
40
41
template
class
DistributionEntry<uint32_t, double>
;
42
template
class
DistributionEntry<uint32_t, storm::RationalNumber>
;
43
template
class
DistributionEntry<uint32_t, storm::RationalFunction>
;
44
template
class
DistributionEntry<uint32_t, storm::Interval>
;
45
template
class
DistributionEntry<uint32_t, storm::RationalInterval>
;
46
47
template
class
DistributionEntry<storm::storage::BitVector, double>
;
48
template
class
DistributionEntry<storm::storage::BitVector, storm::RationalNumber>
;
49
template
class
DistributionEntry<storm::storage::BitVector, storm::RationalFunction>
;
50
template
class
DistributionEntry<storm::storage::BitVector, storm::Interval>
;
51
template
class
DistributionEntry<storm::storage::BitVector, storm::RationalInterval>
;
52
53
}
// namespace storm::generator
BitVector.h
DistributionEntry.h
IntervalAdapter.h
RationalFunctionAdapter.h
RationalNumberAdapter.h
storm::generator::DistributionEntry
Definition
DistributionEntry.h:6
storm::generator::DistributionEntry::divide
void divide(ValueType const &value)
Definition
DistributionEntry.cpp:37
storm::generator::DistributionEntry::getValue
ValueType const & getValue() const
Definition
DistributionEntry.cpp:27
storm::generator::DistributionEntry::addToValue
void addToValue(ValueType const &value)
Definition
DistributionEntry.cpp:32
storm::generator::DistributionEntry::getState
StateType const & getState() const
Definition
DistributionEntry.cpp:22
storm::generator::DistributionEntry::DistributionEntry
DistributionEntry()
Definition
DistributionEntry.cpp:12
storm::generator
Definition
BeliefSupportTracker.cpp:6
src
storm
generator
DistributionEntry.cpp
Generated by
1.15.0