Storm
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
3
#include "
storm/adapters/RationalFunctionAdapter.h
"
4
5
#include "
storm/storage/BitVector.h
"
6
7
namespace
storm::generator
{
8
9
template
<
typename
StateType,
typename
ValueType>
10
DistributionEntry<StateType, ValueType>::DistributionEntry
() : state(0), value(0) {
11
// Intentionally left empty.
12
}
13
14
template
<
typename
StateType,
typename
ValueType>
15
DistributionEntry<StateType, ValueType>::DistributionEntry
(StateType
const
& state, ValueType
const
& value) : state(state), value(value) {
16
// Intentionally left empty.
17
}
18
19
template
<
typename
StateType,
typename
ValueType>
20
StateType
const
&
DistributionEntry<StateType, ValueType>::getState
()
const
{
21
return
state;
22
}
23
24
template
<
typename
StateType,
typename
ValueType>
25
ValueType
const
&
DistributionEntry<StateType, ValueType>::getValue
()
const
{
26
return
value;
27
}
28
29
template
<
typename
StateType,
typename
ValueType>
30
void
DistributionEntry<StateType, ValueType>::addToValue
(ValueType
const
& value) {
31
this->value += value;
32
}
33
34
template
<
typename
StateType,
typename
ValueType>
35
void
DistributionEntry<StateType, ValueType>::divide
(ValueType
const
& value) {
36
this->value /= value;
37
}
38
39
template
class
DistributionEntry<uint32_t, double>
;
40
template
class
DistributionEntry<uint32_t, storm::RationalNumber>
;
41
template
class
DistributionEntry<uint32_t, storm::RationalFunction>
;
42
43
template
class
DistributionEntry<storm::storage::BitVector, double>
;
44
template
class
DistributionEntry<storm::storage::BitVector, storm::RationalNumber>
;
45
template
class
DistributionEntry<storm::storage::BitVector, storm::RationalFunction>
;
46
47
}
// namespace storm::generator
BitVector.h
DistributionEntry.h
RationalFunctionAdapter.h
storm::generator::DistributionEntry
Definition
DistributionEntry.h:6
storm::generator::DistributionEntry::divide
void divide(ValueType const &value)
Definition
DistributionEntry.cpp:35
storm::generator::DistributionEntry::getValue
ValueType const & getValue() const
Definition
DistributionEntry.cpp:25
storm::generator::DistributionEntry::addToValue
void addToValue(ValueType const &value)
Definition
DistributionEntry.cpp:30
storm::generator::DistributionEntry::getState
StateType const & getState() const
Definition
DistributionEntry.cpp:20
storm::generator::DistributionEntry::DistributionEntry
DistributionEntry()
Definition
DistributionEntry.cpp:10
storm::generator
Definition
BeliefSupportTracker.cpp:5
src
storm
generator
DistributionEntry.cpp
Generated by
1.9.8