28 #ifndef GUM_LEARNING_DBROW_GENERATOR_4_COMPLETE_ROWS_H 29 #define GUM_LEARNING_DBROW_GENERATOR_4_COMPLETE_ROWS_H 31 #include <agrum/agrum.h> 32 #include <agrum/tools/database/DBRowGenerator.h> 78 template <
template <
typename >
class ALLOC =
std::
allocator >
100 const allocator_type& alloc);
107 const allocator_type& alloc);
161 #ifndef DOXYGEN_SHOULD_SKIP_THIS 165 const DBRow< DBTranslatedValue, ALLOC >* _input_row_{
nullptr};
176 #include <agrum/tools/database/DBRowGenerator4CompleteRows_tpl.h> DBRowGenerator4CompleteRows< ALLOC > & operator=(DBRowGenerator4CompleteRows< ALLOC > &&from)
move operator
virtual std::size_t computeRows_(const DBRow< DBTranslatedValue, ALLOC > &row) final
computes the rows it will provide as output
DBRowGenerator4CompleteRows(DBRowGenerator4CompleteRows< ALLOC > &&from)
move constructor
INLINE void emplace(Args &&... args)
DBRowGenerator4CompleteRows(const DBRowGenerator4CompleteRows< ALLOC > &from, const allocator_type &alloc)
copy constructor with a given allocator
DBRowGenerator4CompleteRows(const DBRowGenerator4CompleteRows< ALLOC > &from)
copy constructor
virtual DBRowGenerator4CompleteRows< ALLOC > * clone(const allocator_type &alloc) const override final
virtual copy constructor with a given allocator
DBRowGenerator4CompleteRows< ALLOC > & operator=(const DBRowGenerator4CompleteRows< ALLOC > &from)
copy operator
allocator_type getAllocator() const
returns the allocator used
~DBRowGenerator4CompleteRows()
destructor
DBRowGenerator4CompleteRows(const std::vector< DBTranslatedValueType, ALLOC< DBTranslatedValueType > > column_types, const allocator_type &alloc=allocator_type())
default constructor
A DBRowGenerator class that returns the rows that are complete (fully observed) w.r.t.
DBRowGenerator4CompleteRows(DBRowGenerator4CompleteRows< 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 DBRowGenerator4CompleteRows< ALLOC > * clone() const override final
virtual copy constructor