← 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
13namespace bncore {
14
20using NodeId = std::uint32_t;
21
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
std::uint32_t NodeId
Handle of a variable within one Graph.
Definition: node.hpp:20
Everything a Graph stores about one discrete variable.
Definition: node.hpp:23
NodeId id
handle of this variable in its Graph
Definition: node.hpp:24
std::vector< double > cpt
Definition: node.hpp:31
std::size_t num_states() const
Number of states of the variable.
Definition: node.hpp:34
std::string name
Definition: node.hpp:25
std::vector< std::string > states
Definition: node.hpp:28