50#ifndef DOXYGEN_SHOULD_SKIP_THIS
59 column_types_(column_types), goal_(goal) {
60 GUM_CONSTRUCTOR(DBRowGenerator);
64 INLINE DBRowGenerator::DBRowGenerator(
const DBRowGenerator& from) :
65 nb_remaining_output_rows_(from.nb_remaining_output_rows_),
66 column_types_(from.column_types_), columns_of_interest_(from.columns_of_interest_),
68 GUM_CONS_CPY(DBRowGenerator);
72 INLINE DBRowGenerator::DBRowGenerator(DBRowGenerator&& from) :
73 nb_remaining_output_rows_(from.nb_remaining_output_rows_),
74 column_types_(
std::move(from.column_types_)),
75 columns_of_interest_(
std::move(from.columns_of_interest_)), goal_(from.goal_) {
76 GUM_CONS_MOV(DBRowGenerator);
80 INLINE DBRowGenerator::~DBRowGenerator() { GUM_DESTRUCTOR(DBRowGenerator); }
83 INLINE DBRowGenerator& DBRowGenerator::operator=(
const DBRowGenerator& from) {
84 nb_remaining_output_rows_ = from.nb_remaining_output_rows_;
85 column_types_ = from.column_types_;
86 columns_of_interest_ = from.columns_of_interest_;
92 INLINE DBRowGenerator& DBRowGenerator::operator=(DBRowGenerator&& from) {
93 nb_remaining_output_rows_ = from.nb_remaining_output_rows_;
94 column_types_ = std::move(from.column_types_);
95 columns_of_interest_ = std::move(from.columns_of_interest_);
101 INLINE
bool DBRowGenerator::hasRows() {
return nb_remaining_output_rows_ != std::size_t(0); }
104 INLINE
bool DBRowGenerator::setInputRow(
const DBRow< DBTranslatedValue >& row) {
105 nb_remaining_output_rows_ = computeRows_(row);
110 INLINE
void DBRowGenerator::decreaseRemainingRows() { --nb_remaining_output_rows_; }
113 INLINE
void DBRowGenerator::reset() { nb_remaining_output_rows_ = 0; }
118 DBRowGenerator::setColumnsOfInterest(
const std::vector< std::size_t >& cols_of_interest) {
119 columns_of_interest_ = cols_of_interest;
125 DBRowGenerator::setColumnsOfInterest(std::vector< std::size_t >&& cols_of_interest) {
126 columns_of_interest_ = std::move(cols_of_interest);
130 INLINE
const std::vector< std::size_t >& DBRowGenerator::columnsOfInterest()
const {
131 return columns_of_interest_;
135 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