25#ifndef GUM_LEARNING_DB_ROW_GENERATOR_PARSER_H
26#define GUM_LEARNING_DB_ROW_GENERATOR_PARSER_H
245 template <
typename GUM_SCALAR >
Template implementation of the DBRowGeneratorParser class.
Copyright (c) 2005-2024 by Pierre-Henri WUILLEMIN(_at_LIP6) & Christophe GONZALES(_at_AMU) info_at_ag...
class for packing sets of generators
void reset()
resets the parser
std::size_t _generator_size_
the size of the generator set
void setColumnsOfInterest(std::vector< std::size_t > &&cols_of_interest)
sets the columns of interest: the output DBRow needs only contain values fot these columns
const DatabaseTable & database() const
returns a reference on the database
DBRowGeneratorParser & operator=(const DBRowGeneratorParser &from)
copy operator
bool hasRows()
returns true if there are still rows that can be output by the DBRowGeneratorParser
DBRowGeneratorParser & operator=(DBRowGeneratorParser &&from)
move operator
virtual ~DBRowGeneratorParser()
destructor
void setBayesNet(const BayesNet< GUM_SCALAR > &new_bn)
assign a new Bayes net to all the generators that depend on a BN
const DatabaseTable::Handler & handler() const
returns the handler used by the parser
void setRange(std::size_t begin, std::size_t end)
sets the area in the database the handler will handle
DBRowGeneratorParser(const DBRowGeneratorParser &from)
copy constructor
void setColumnsOfInterest(const std::vector< std::size_t > &cols_of_interest)
sets the columns of interest: the output DBRow needs only contain values fot these columns
DBRowGeneratorSet _generator_set_
the set of DBRow generators (might be empty)
const DBRowGeneratorSet & generatorSet() const
returns the generator set that is actually used
DatabaseTable::Handler _handler_
the handler that is really used to parse the database
virtual DBRowGeneratorParser * clone() const
virtual copy constructor
DBRowGeneratorParser(const typename DatabaseTable::Handler &handler, const DBRowGeneratorSet &generator_set)
default constructor
DBRowGeneratorSet & generatorSet()
returns the generator set that is actually used
const DBRow< DBTranslatedValue > & row()
returns a new output row with its corresponding weight
DatabaseTable::Handler & handler()
returns the handler used by the parser
DBRowGeneratorParser(DBRowGeneratorParser &&filter)
move constructor
The class used to pack sets of generators.
The class for storing a record in a database.
The class representing a tabular database as used by learning tasks.
typename IDatabaseTable< DBTranslatedValue >::Handler Handler
the unsafe handler type
The class representing a tabular database stored in RAM.
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities