29#ifndef DOXYGEN_SHOULD_SKIP_THIS
103 return static_cast< const DatabaseTable&
>(
_handler_.database());
126 const std::vector< std::size_t >& cols_of_interest) {
The class for parsing DatabaseTable rows and generating output rows.
the class used to read a row in the database and to transform it into a set of DBRow instances that c...
void reset()
resets the parser
std::size_t _generator_size_
the size of the generator set
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
void setRange(std::size_t begin, std::size_t end)
sets the area in the database the handler will handle
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)
DatabaseTable::Handler _handler_
the handler that is really used to parse the database
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
The class used to pack sets of generators.
bool hasRows()
returns true if there are still rows that can be output by the set of generators
void reset()
resets all the generators
void setColumnsOfInterest(const std::vector< std::size_t > &cols_of_interest)
sets the columns of interest: the output DBRow needs only contain correct values fot these columns
bool setInputRow(const DBRow< DBTranslatedValue > &input_row)
sets the input row from which the generators will create new rows
const DBRow< DBTranslatedValue > & generate()
generates a new output row from the input row
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
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities