28 #ifndef GUM_LEARNING_DBROW_GENERATOR_SET_H 29 #define GUM_LEARNING_DBROW_GENERATOR_SET_H 112 template <
template <
typename >
class ALLOC = std::allocator >
192 template <
template <
template <
typename >
class >
class Generator >
200 template <
template <
template <
typename >
class >
class Generator >
202 const std::size_t i);
208 std::
size_t size() const noexcept;
226 template < typename GUM_SCALAR >
255 const
std::vector<
std::
size_t, ALLOC<
std::
size_t > >& cols_of_interest);
277 std::vector<
std::
size_t, ALLOC<
std::
size_t > >&& cols_of_interest);
280 const
std::vector<
std::
size_t, ALLOC<
std::
size_t > >&
289 #ifndef DOXYGEN_SHOULD_SKIP_THIS 293 std::vector< DBRowGenerator< ALLOC >*, ALLOC< DBRowGenerator< ALLOC >* > >
297 std::size_t __nb_generators{std::size_t(0)};
321 std::vector< int, ALLOC< int > > __setInputRow_performed;
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
allocator_type getAllocator() const
returns the allocator used
Class representing a Bayesian Network.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
std::size_t size() const noexcept
returns the number of generators (alias for nbGenerators)
The class used to pack sets of generators.
DBRowGeneratorSet(const allocator_type &alloc=allocator_type())
default constructor
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void clear()
removes all the generators
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.
The union class for storing the translated values in learning databases.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void setBayesNet(const BayesNet< GUM_SCALAR > &new_bn)
assign a new Bayes net to all the generators that depend on a BN
void setColumnsOfInterest(const std::vector< std::size_t, ALLOC< std::size_t > > &cols_of_interest)
sets the columns of interest: the output DBRow needs only contain correct values fot these columns ...
DBRowGeneratorSet< ALLOC > & operator=(const DBRowGeneratorSet< ALLOC > &from)
copy operator
const std::vector< std::size_t, ALLOC< std::size_t > > & columnsOfInterest() const
returns the current set of columns of interest
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual DBRowGeneratorSet< ALLOC > * clone() const
virtual copy constructor
void reset()
resets all the generators
The class for storing a record in a database.
void insertGenerator(const Generator< ALLOC > &generator)
inserts a new generator at the end of the set
virtual ~DBRowGeneratorSet()
destructor
std::size_t nbGenerators() const noexcept
returns the number of generators
DBRowGenerator< ALLOC > & operator[](const std::size_t i)
returns the ith generator
const DBRow< DBTranslatedValue, ALLOC > & generate()
generates a new output row from the input row
bool setInputRow(const DBRow< DBTranslatedValue, ALLOC > &input_row)
sets the input row from which the generators will create new rows
The base class for all DBRow generators.
bool hasRows()
returns true if there are still rows that can be output by the set of generators