28 #ifndef GUM_LEARNING_DB_TRANSLATOR_4_RANGE_VARIABLE_H 29 #define GUM_LEARNING_DB_TRANSLATOR_4_RANGE_VARIABLE_H 132 template <
template <
typename >
class ALLOC = std::allocator >
159 template <
template <
typename >
class XALLOC >
161 const std::vector< std::string, XALLOC< std::string > >& missing_symbols,
162 std::size_t max_dico_entries = std::numeric_limits< std::size_t >::max(),
178 std::size_t max_dico_entries = std::numeric_limits< std::size_t >::max(),
201 template <
template <
typename >
class XALLOC >
204 const std::vector< std::string, XALLOC< std::string > >& missing_symbols,
205 const bool editable_dictionary =
false,
206 std::size_t max_dico_entries = std::numeric_limits< std::size_t >::max(),
231 const bool editable_dictionary =
false,
232 std::size_t max_dico_entries = std::numeric_limits< std::size_t >::max(),
366 ALLOC<
std::pair<
std::
size_t,
std::
size_t > > >
378 #ifndef DOXYGEN_SHOULD_SKIP_THIS 388 __status_int_missing_symbols;
395 std::string __nonint_missing_symbol;
virtual bool needsReordering() const final
indicates whether a reordering is needed to make the translations sorted by increasing numbers ...
ALLOC< DBTranslatedValue > allocator_type
type for the allocators passed in arguments of methods
virtual const RangeVariable * variable() const final
returns the variable stored into the translator
virtual std::string translateBack(const DBTranslatedValue translated_val) const final
returns the original value for a given translation
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
DBTranslator4RangeVariable< ALLOC > & operator=(const DBTranslator4RangeVariable< ALLOC > &from)
copy operator
The databases' cell translators for range variables.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The union class for storing the translated values in learning databases.
The class for generic Hash Tables.
virtual ~DBTranslator4RangeVariable()
destructor
virtual DBTranslatedValue missingValue() const final
returns the translation of a missing value
Representation of a setA Set is a structure that contains arbitrary elements.
The base class for all the tabular database cell translators.
virtual DBTranslatedValue translate(const std::string &str) final
returns the translation of a string
virtual HashTable< std::size_t, std::size_t, ALLOC< std::pair< std::size_t, std::size_t > > > reorder() final
performs a reordering of the dictionary and returns a mapping from the old translated values to the n...
Defines a discrete random variable over an integer interval.
virtual std::size_t domainSize() const final
returns the domain size of a variable corresponding to the translations
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
typename DBTranslator< ALLOC >::allocator_type allocator_type
type for the allocators passed in arguments of methods
virtual DBTranslator4RangeVariable< ALLOC > * clone() const
virtual copy constructor
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
DBTranslator4RangeVariable(const std::vector< std::string, XALLOC< std::string > > &missing_symbols, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max(), const allocator_type &alloc=allocator_type())
default constructor without any initial variable