39 #ifndef GUM_RAW_DATABASE_TABLE_H 40 #define GUM_RAW_DATABASE_TABLE_H 112 template <
template <
typename >
class ALLOC = std::allocator >
116 template <
typename TX_DATA >
117 using DBVector = std::vector< TX_DATA, ALLOC< TX_DATA > >;
120 template <
typename TX_DATA >
124 template <
typename TX_DATA >
127 template <
template <
typename >
class XALLOC >
159 template <
template <
typename >
class VARALLOC,
160 template <
typename >
164 const std::vector< std::string, VARALLOC< std::string > >& var_names,
168 template <
template <
typename >
class MISSALLOC >
208 RawDatabaseTable< ALLOC >& operator=(const RawDatabaseTable< ALLOC >& from);
211 RawDatabaseTable< ALLOC >& operator=(RawDatabaseTable< ALLOC >&& from);
249 virtual
void setVariableNames(
250 const
std::vector<
std::
string, ALLOC<
std::
string > >& names,
251 const
bool from_external_object = true) final;
284 const
bool from_external_object = true) final;
302 virtual
void insertRow(
303 const
std::vector<
std::
string, ALLOC<
std::
string > >& new_row) final;
306 virtual
void clear() final;
311 #ifndef DOXYGEN_SHOULD_SKIP_THIS 318 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...
The implementation of raw tabular databases stored in memory (RAM)
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 ...
gum is the global namespace for all aGrUM entities
std::ptrdiff_t difference_type
Types for STL compliance.
ALLOC< DBCell > allocator_type
Types for STL compliance.
The class representing the original values of the cells of databases.
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
The common class for the tabular database tables.
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.