50#ifndef DOXYGEN_SHOULD_SKIP_THIS
57 template <
typename GUM_SCALAR >
59 const std::vector< DBTranslatedValueType >& column_types,
60 const BayesNet< GUM_SCALAR >& bn,
62 const Bijection< NodeId, std::size_t >& nodeId2columns) :
63 DBRowGenerator(column_types, goal), bn_(&bn), nodeId2columns_(nodeId2columns) {
64 GUM_CONSTRUCTOR(DBRowGeneratorWithBN);
68 template <
typename GUM_SCALAR >
69 DBRowGeneratorWithBN< GUM_SCALAR >::DBRowGeneratorWithBN(
70 const DBRowGeneratorWithBN< GUM_SCALAR >& from) :
71 DBRowGenerator(from), bn_(from.bn_), nodeId2columns_(from.nodeId2columns_) {
72 GUM_CONS_CPY(DBRowGeneratorWithBN);
76 template <
typename GUM_SCALAR >
77 DBRowGeneratorWithBN< GUM_SCALAR >::DBRowGeneratorWithBN(
78 DBRowGeneratorWithBN< GUM_SCALAR >&& from) :
79 DBRowGenerator(
std::move(from)), bn_(from.bn_),
80 nodeId2columns_(
std::move(from.nodeId2columns_)) {
81 GUM_CONS_MOV(DBRowGeneratorWithBN);
85 template <
typename GUM_SCALAR >
86 DBRowGeneratorWithBN< GUM_SCALAR >::~DBRowGeneratorWithBN() {
87 GUM_DESTRUCTOR(DBRowGeneratorWithBN);
91 template <
typename GUM_SCALAR >
92 DBRowGeneratorWithBN< GUM_SCALAR >& DBRowGeneratorWithBN< GUM_SCALAR >::operator=(
93 const DBRowGeneratorWithBN< GUM_SCALAR >& from) {
95 DBRowGenerator::operator=(from);
97 nodeId2columns_ = from.nodeId2columns_;
104 template <
typename GUM_SCALAR >
105 DBRowGeneratorWithBN< GUM_SCALAR >&
106 DBRowGeneratorWithBN< GUM_SCALAR >::operator=(DBRowGeneratorWithBN< GUM_SCALAR >&& from) {
108 DBRowGenerator::operator=(std::move(from));
110 nodeId2columns_ = std::move(from.nodeId2columns_);
117 template <
typename GUM_SCALAR >
119 DBRowGeneratorWithBN< GUM_SCALAR >::setBayesNet(
const BayesNet< GUM_SCALAR >& new_bn) {
124 template <
typename GUM_SCALAR >
125 INLINE
const BayesNet< GUM_SCALAR >& DBRowGeneratorWithBN< GUM_SCALAR >::getBayesNet()
const {
A DBRowGenerator class that returns exactly the rows it gets in input.
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