51#ifndef DOXYGEN_SHOULD_SKIP_THIS
60 column_types_(column_types), goal_(goal) {
61 GUM_CONSTRUCTOR(DBRowGenerator);
65 INLINE DBRowGenerator::DBRowGenerator(
const DBRowGenerator& from) :
66 nb_remaining_output_rows_(from.nb_remaining_output_rows_),
67 column_types_(from.column_types_), columns_of_interest_(from.columns_of_interest_),
69 GUM_CONS_CPY(DBRowGenerator);
73 INLINE DBRowGenerator::DBRowGenerator(DBRowGenerator&& from) :
74 nb_remaining_output_rows_(from.nb_remaining_output_rows_),
75 column_types_(
std::move(from.column_types_)),
76 columns_of_interest_(
std::move(from.columns_of_interest_)), goal_(from.goal_) {
77 GUM_CONS_MOV(DBRowGenerator);
81 INLINE DBRowGenerator::~DBRowGenerator() { GUM_DESTRUCTOR(DBRowGenerator); }
84 INLINE DBRowGenerator& DBRowGenerator::operator=(
const DBRowGenerator& from) =
default;
87 INLINE DBRowGenerator& DBRowGenerator::operator=(DBRowGenerator&& from) {
88 nb_remaining_output_rows_ = from.nb_remaining_output_rows_;
89 column_types_ = std::move(from.column_types_);
90 columns_of_interest_ = std::move(from.columns_of_interest_);
96 INLINE
bool DBRowGenerator::hasRows() {
return nb_remaining_output_rows_ != std::size_t(0); }
99 INLINE
bool DBRowGenerator::setInputRow(
const DBRow< DBTranslatedValue >& row) {
100 nb_remaining_output_rows_ = computeRows_(row);
105 INLINE
void DBRowGenerator::decreaseRemainingRows() { --nb_remaining_output_rows_; }
108 INLINE
void DBRowGenerator::reset() { nb_remaining_output_rows_ = 0; }
113 DBRowGenerator::setColumnsOfInterest(
const std::vector< std::size_t >& cols_of_interest) {
114 columns_of_interest_ = cols_of_interest;
120 DBRowGenerator::setColumnsOfInterest(std::vector< std::size_t >&& cols_of_interest) {
121 columns_of_interest_ = std::move(cols_of_interest);
125 INLINE
const std::vector< std::size_t >& DBRowGenerator::columnsOfInterest()
const {
126 return columns_of_interest_;
130 INLINE DBRowGeneratorGoal DBRowGenerator::goal()
const {
return goal_; }
The base class for all DBRow generators.
DBRowGenerator(const std::vector< DBTranslatedValueType > &column_types, const DBRowGeneratorGoal goal)
default constructor
DBRowGeneratorGoal
the type of things that a DBRowGenerator is designed for
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities