52#ifndef DOXYGEN_SHOULD_SKIP_THIS
59 template < GUM_Numeric GUM_SCALAR >
61 const std::vector< DBTranslatedValueType >& column_types,
62 const BayesNet< GUM_SCALAR >& bn,
64 const Bijection< NodeId, std::size_t >& nodeId2columns) :
65 DBRowGenerator(column_types, goal), bn_(&bn), nodeId2columns_(nodeId2columns) {
66 GUM_CONSTRUCTOR(DBRowGeneratorWithBN);
70 template < GUM_Numeric GUM_SCALAR >
71 DBRowGeneratorWithBN< GUM_SCALAR >::DBRowGeneratorWithBN(
72 const DBRowGeneratorWithBN< GUM_SCALAR >& from) :
73 DBRowGenerator(from), bn_(from.bn_), nodeId2columns_(from.nodeId2columns_) {
74 GUM_CONS_CPY(DBRowGeneratorWithBN);
78 template < GUM_Numeric GUM_SCALAR >
79 DBRowGeneratorWithBN< GUM_SCALAR >::DBRowGeneratorWithBN(
80 DBRowGeneratorWithBN< GUM_SCALAR >&& from) :
81 DBRowGenerator(
std::move(from)), bn_(from.bn_),
82 nodeId2columns_(
std::move(from.nodeId2columns_)) {
83 GUM_CONS_MOV(DBRowGeneratorWithBN);
87 template < GUM_Numeric GUM_SCALAR >
88 DBRowGeneratorWithBN< GUM_SCALAR >::~DBRowGeneratorWithBN() {
89 GUM_DESTRUCTOR(DBRowGeneratorWithBN);
93 template < GUM_Numeric GUM_SCALAR >
94 DBRowGeneratorWithBN< GUM_SCALAR >& DBRowGeneratorWithBN< GUM_SCALAR >::operator=(
95 const DBRowGeneratorWithBN< GUM_SCALAR >& from) {
97 DBRowGenerator::operator=(from);
99 nodeId2columns_ = from.nodeId2columns_;
106 template < GUM_Numeric GUM_SCALAR >
107 DBRowGeneratorWithBN< GUM_SCALAR >&
108 DBRowGeneratorWithBN< GUM_SCALAR >::operator=(DBRowGeneratorWithBN< GUM_SCALAR >&& from) {
110 DBRowGenerator::operator=(std::move(from));
112 nodeId2columns_ = std::move(from.nodeId2columns_);
119 template < GUM_Numeric GUM_SCALAR >
120 void DBRowGeneratorWithBN< GUM_SCALAR >::setBayesNet(
const BayesNet< GUM_SCALAR >& new_bn) {
125 template < GUM_Numeric GUM_SCALAR >
126 const BayesNet< GUM_SCALAR >& DBRowGeneratorWithBN< GUM_SCALAR >::getBayesNet()
const {
A DBRowGenerator class that returns exactly the rows it gets in input.
Base class for DBRowGenerator classes that use a BN for computing their outputs.
DBRowGeneratorWithBN(const std::vector< DBTranslatedValueType > &column_types, const BayesNet< GUM_SCALAR > &bn, const DBRowGeneratorGoal goal, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
The base class for all DBRow generators.
DBRowGeneratorGoal
the type of things that a DBRowGenerator is designed for
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities