←
Documentation
ADS-IDAC Engine
5.0.0
node.hpp
Go to the documentation of this file.
1
#pragma once
9
#include <cstdint>
10
#include <string>
11
#include <vector>
12
13
namespace
bncore
{
14
20
using
NodeId
= std::uint32_t;
21
23
struct
VariableMetadata
{
24
NodeId
id
;
25
std::string
name
;
28
std::vector<std::string>
states
;
31
std::vector<double>
cpt
;
32
34
[[nodiscard]] std::size_t
num_states
()
const
{
return
states
.size(); }
35
};
36
37
}
// namespace bncore
bncore
Definition:
HumanFailureEventsBBN.h:11
bncore::NodeId
std::uint32_t NodeId
Handle of a variable within one Graph.
Definition:
node.hpp:20
bncore::VariableMetadata
Everything a Graph stores about one discrete variable.
Definition:
node.hpp:23
bncore::VariableMetadata::id
NodeId id
handle of this variable in its Graph
Definition:
node.hpp:24
bncore::VariableMetadata::cpt
std::vector< double > cpt
Definition:
node.hpp:31
bncore::VariableMetadata::num_states
std::size_t num_states() const
Number of states of the variable.
Definition:
node.hpp:34
bncore::VariableMetadata::name
std::string name
Definition:
node.hpp:25
bncore::VariableMetadata::states
std::vector< std::string > states
Definition:
node.hpp:28
src
BNCore
include
bncore
graph
node.hpp
Generated by
1.9.4