42 #ifndef GUM_RAW_DATABASE_TABLE_H 43 #define GUM_RAW_DATABASE_TABLE_H 115 template <
template <
typename >
class ALLOC = std::allocator >
119 template <
typename TX_DATA >
120 using DBVector = std::vector< TX_DATA, ALLOC< TX_DATA > >;
123 template <
typename TX_DATA >
127 template <
typename TX_DATA >
130 template <
template <
typename >
class XALLOC >
162 template <
template <
typename >
class VARALLOC,
163 template <
typename >
167 const std::vector< std::string, VARALLOC< std::string > >& var_names,
171 template <
template <
typename >
class MISSALLOC >
211 RawDatabaseTable< ALLOC >& operator=(const RawDatabaseTable< ALLOC >& from);
214 RawDatabaseTable< ALLOC >& operator=(RawDatabaseTable< ALLOC >&& from);
252 virtual
void setVariableNames(
253 const
std::vector<
std::
string, ALLOC<
std::
string > >& names,
254 const
bool from_external_object = true) final;
287 const
bool from_external_object = true) final;
305 virtual
void insertRow(
306 const
std::vector<
std::
string, ALLOC<
std::
string > >& new_row) final;
309 virtual
void clear() final;
314 #ifndef DOXYGEN_SHOULD_SKIP_THIS 321 DBCell __convert(
const std::string& elt)
const;
typename IDatabaseTable< DBCell, ALLOC >::IsMissing IsMissing
The common class for the tabular database tables.
The table containing the raw/original data of a databaseClass RawDatabaseTable is intended to store i...
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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
The class representing the original values of the cells of databases.
virtual const DBVector< std::size_t > ignoredColumns() const final
returns the set of columns of the original dataset that are ignored
HandlerSafe iterator_safe
Types for STL compliance.
virtual const DBVector< std::size_t > inputColumns() const final
returns the set of columns of the original dataset that are present in the RawDatabaseTable ...
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
std::ptrdiff_t difference_type
Types for STL compliance.
ALLOC< DBCell > allocator_type
Types for STL compliance.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The class for storing a record in a database.
typename IDatabaseTable< DBCell, ALLOC >::HandlerSafe HandlerSafe
the safe handler type
std::vector< TX_DATA, ALLOC< TX_DATA > > DBVector
the type for the vectors used in the RawDatabaseTable
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
typename IDatabaseTable< DBCell, ALLOC >::Handler Handler
the unsafe handler type
std::size_t size_type
Types for STL compliance.
std::vector< std::string, XALLOC< std::string > > MissingValType
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
DBVector< Row< TX_DATA > > Matrix
the type for the matrices stored into the database
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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
Handler iterator
Types for STL compliance.