27 #ifndef GUM_LEARNING_DBROW_GENERATOR_IDENTITY_H 28 #define GUM_LEARNING_DBROW_GENERATOR_IDENTITY_H 30 #include <agrum/agrum.h> 31 #include <agrum/tools/database/DBRowGenerator.h> 74 template <
template <
typename >
class ALLOC =
std::
allocator >
96 const allocator_type& alloc);
152 #ifndef DOXYGEN_SHOULD_SKIP_THIS 156 const DBRow< DBTranslatedValue, ALLOC >* _input_row_{
nullptr};
167 #include <agrum/tools/database/DBRowGeneratorIdentity_tpl.h> DBRowGeneratorIdentity(const DBRowGeneratorIdentity< ALLOC > &from, const allocator_type &alloc)
copy constructor with a given allocator
DBRowGeneratorIdentity(DBRowGeneratorIdentity< ALLOC > &&from)
move constructor
DBRowGeneratorIdentity(const DBRowGeneratorIdentity< ALLOC > &from)
copy constructor
allocator_type getAllocator() const
returns the allocator used
DBRowGeneratorIdentity(const std::vector< DBTranslatedValueType, ALLOC< DBTranslatedValueType > > column_types, const allocator_type &alloc=allocator_type())
default constructor
virtual DBRowGeneratorIdentity< ALLOC > * clone() const override final
virtual copy constructor
INLINE void emplace(Args &&... args)
DBRowGeneratorIdentity< ALLOC > & operator=(DBRowGeneratorIdentity< ALLOC > &&from)
move operator
DBRowGeneratorIdentity< ALLOC > & operator=(const DBRowGeneratorIdentity< ALLOC > &from)
copy operator
~DBRowGeneratorIdentity()
destructor
A DBRowGenerator class that returns exactly the rows it gets in input.
virtual std::size_t computeRows_(const DBRow< DBTranslatedValue, ALLOC > &row) final
computes the rows it will provide as output
DBRowGeneratorIdentity(DBRowGeneratorIdentity< ALLOC > &&from, const allocator_type &alloc)
move constructor with a given allocator
virtual const DBRow< DBTranslatedValue, ALLOC > & generate() final
generates one ouput DBRow for each DBRow passed to method setInputRow
Database(const std::string &filename, const BayesNet< GUM_SCALAR > &bn, const std::vector< std::string > &missing_symbols)
virtual DBRowGeneratorIdentity< ALLOC > * clone(const allocator_type &alloc) const override final
virtual copy constructor with a given allocator