41 #ifndef GUM_RAW_DATABASE_TABLE_H 42 #define GUM_RAW_DATABASE_TABLE_H 45 #include <agrum/agrum.h> 46 #include <agrum/tools/database/DBCell.h> 47 #include <agrum/tools/database/IDatabaseTable.h> 114 template <
template <
typename >
class ALLOC =
std::
allocator >
129 template <
template <
typename >
class XALLOC >
161 template <
template <
typename >
class VARALLOC,
template <
typename >
class MISSALLOC >
167 template <
template <
typename >
class MISSALLOC >
178 RawDatabaseTable(
const RawDatabaseTable< ALLOC >& from,
const allocator_type& alloc);
184 RawDatabaseTable(RawDatabaseTable< ALLOC >&& from,
const allocator_type& alloc);
278 virtual void ignoreColumn(
const std::size_t k,
const bool from_external_object =
true)
final;
299 virtual void clear()
final;
304 #ifndef DOXYGEN_SHOULD_SKIP_THIS 308 DBVector< std::size_t > _ignored_cols_;
311 DBCell _convert_(
const std::string& elt)
const;
321 #include <agrum/tools/database/rawDatabaseTable_tpl.h> RawDatabaseTable< ALLOC > & operator=(RawDatabaseTable< ALLOC > &&from)
move constructor
The table containing the raw/original data of a databaseClass RawDatabaseTable is intended to store i...
virtual void ignoreColumn(const std::size_t k, const bool from_external_object=true) final
makes the database table ignore from now on the kth column
INLINE void emplace(Args &&... args)
RawDatabaseTable(RawDatabaseTable< ALLOC > &&from, const allocator_type &alloc)
move constructor with a given allocator
virtual const DBVector< std::size_t > ignoredColumns() const final
returns the set of columns of the original dataset that are ignored
virtual const DBVector< std::size_t > inputColumns() const final
returns the set of columns of the original dataset that are present in the RawDatabaseTable ...
RawDatabaseTable(const RawDatabaseTable< ALLOC > &from, const allocator_type &alloc)
copy constructor with a given allocator
RawDatabaseTable(const MissingValType< MISSALLOC > &missing_symbols, const allocator_type &alloc=allocator_type())
default constructor
virtual RawDatabaseTable< ALLOC > * clone(const allocator_type &alloc) const final
virtual copy constructor with a given allocator
RawDatabaseTable(const RawDatabaseTable< ALLOC > &from)
copy constructor
RawDatabaseTable(RawDatabaseTable< ALLOC > &&from)
move constructor
virtual void insertRow(const std::vector< std::string, ALLOC< std::string > > &new_row) final
insert a new row at the end of the database
RawDatabaseTable(const MissingValType< MISSALLOC > &missing_symbols, const std::vector< std::string, VARALLOC< std::string > > &var_names, const allocator_type &alloc=allocator_type())
default constructor
virtual ~RawDatabaseTable()
destructor
virtual RawDatabaseTable< ALLOC > * clone() const final
virtual copy constructor
virtual void clear() final
erase the content of the database, including the names of the variables
Database(const std::string &filename, const BayesNet< GUM_SCALAR > &bn, const std::vector< std::string > &missing_symbols)
RawDatabaseTable< ALLOC > & operator=(const RawDatabaseTable< ALLOC > &from)
copy operator
virtual void setVariableNames(const std::vector< std::string, ALLOC< std::string > > &names, const bool from_external_object=true) final
sets the names of the variables