27 #ifndef DOXYGEN_SHOULD_SKIP_THIS 35 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
43 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
47 const BayesNet< GUM_SCALAR >& bn,
49 const Bijection<
NodeId, std::size_t, ALLOC< std::size_t > >&
53 DBRowGenerator< ALLOC >(column_types, goal, alloc),
54 _bn(&bn), _nodeId2columns(nodeId2columns) {
60 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
62 const DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >& from,
72 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
74 const DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >& from) :
79 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
81 DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >&& from,
91 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
93 DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >&& from) :
99 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
106 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
107 DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >&
109 operator=(
const DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >& from) {
121 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
122 DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >&
124 operator=(DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >&& from) {
136 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
138 const BayesNet< GUM_SCALAR >& new_bn) {
144 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
145 INLINE
const BayesNet< GUM_SCALAR >&
~DBRowGeneratorWithBN()
destructor
DBRowGeneratorGoal
the type of things that a DBRowGenerator is designed for
DBRowGenerator< ALLOC > & operator=(const DBRowGenerator< ALLOC > &)
copy constructor
const BayesNet< GUM_SCALAR > * _bn
the Bayesian network used to fill the unobserved values
gum is the global namespace for all aGrUM entities
DBTranslatedValueType
The nature of the elements handled by translators (discrete, continuous).
allocator_type getAllocator() const
returns the allocator used
DBRowGeneratorWithBN< GUM_SCALAR, ALLOC > & operator=(const DBRowGeneratorWithBN< GUM_SCALAR, ALLOC > &from)
copy operator
Bijection< NodeId, std::size_t, ALLOC< std::size_t > > _nodeId2columns
the mapping betwen the BN's node ids and the database's columns
allocator_type getAllocator() const
returns the allocator used
virtual void setBayesNet(const BayesNet< GUM_SCALAR > &new_bn)
assign a new Bayes net to the generator
DBRowGeneratorWithBN(const std::vector< DBTranslatedValueType, ALLOC< DBTranslatedValueType > > column_types, const BayesNet< GUM_SCALAR > &bn, const DBRowGeneratorGoal goal, const Bijection< NodeId, std::size_t, ALLOC< std::size_t > > &nodeId2columns=Bijection< NodeId, std::size_t, ALLOC< std::size_t > >(), const allocator_type &alloc=allocator_type())
default constructor
DBRowGenerator(const std::vector< DBTranslatedValueType, ALLOC< DBTranslatedValueType > > column_types, const DBRowGeneratorGoal goal, const allocator_type &alloc=allocator_type())
default constructor
const BayesNet< GUM_SCALAR > & getBayesNet() const
returns the Bayes net used by the generator
ALLOC< DBTranslatedValue > allocator_type
type for the allocators passed in arguments of methods
A DBRowGenerator class that returns exactly the rows it gets in input.
Size NodeId
Type for node ids.