30 #ifndef DOXYGEN_SHOULD_SKIP_THIS 38 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
46 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
50 const BayesNet< GUM_SCALAR >& bn,
52 const Bijection<
NodeId, std::size_t, ALLOC< std::size_t > >&
56 DBRowGenerator< ALLOC >(column_types, goal, alloc),
57 _bn(&bn), _nodeId2columns(nodeId2columns) {
63 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
65 const DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >& from,
75 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
77 const DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >& from) :
82 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
84 DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >&& from,
94 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
96 DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >&& from) :
102 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
109 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
110 DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >&
112 operator=(
const DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >& from) {
124 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
125 DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >&
127 operator=(DBRowGeneratorWithBN< GUM_SCALAR, ALLOC >&& from) {
139 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
141 const BayesNet< GUM_SCALAR >& new_bn) {
147 template <
typename GUM_SCALAR,
template <
typename >
class ALLOC >
148 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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Size NodeId
Type for node ids.