47#ifndef GUM_LEARNING_DB_TRANSLATOR_4_RANGE_VARIABLE_H
48#define GUM_LEARNING_DB_TRANSLATOR_4_RANGE_VARIABLE_H
170 std::size_t max_dico_entries
171 = std::numeric_limits< std::size_t >::max());
184 = std::numeric_limits< std::size_t >::max());
205 const std::vector< std::string >& missing_symbols,
206 const bool editable_dictionary =
false,
207 std::size_t max_dico_entries
208 = std::numeric_limits< std::size_t >::max());
229 const bool editable_dictionary =
false,
230 std::size_t max_dico_entries
231 = std::numeric_limits< std::size_t >::max());
358#ifndef DOXYGEN_SHOULD_SKIP_THIS
374 std::string _nonint_missing_symbol_;
The databases' cell translators for range variables.
The base class for all the tabular databases' cell translators.
The class for generic Hash Tables.
Defines a discrete random variable over an integer interval.
virtual const RangeVariable * variable() const final
returns the variable stored into the translator
DBTranslator4RangeVariable(const RangeVariable &var, const bool editable_dictionary=false, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor with a range variable as translator but without missing symbols
virtual DBTranslatedValue translate(const std::string &str) final
returns the translation of a string
DBTranslator4RangeVariable(const DBTranslator4RangeVariable &from)
copy constructor
DBTranslator4RangeVariable(const std::vector< std::string > &missing_symbols, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor without any initial variable
DBTranslator4RangeVariable(const RangeVariable &var, const std::vector< std::string > &missing_symbols, const bool editable_dictionary=false, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor with a range variable as translator
virtual DBTranslatedValue missingValue() const final
returns the translation of a missing value
virtual std::size_t domainSize() const final
returns the domain size of a variable corresponding to the translations
virtual std::string translateBack(const DBTranslatedValue translated_val) const final
returns the original value for a given translation
virtual HashTable< 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...
virtual bool needsReordering() const final
indicates whether a reordering is needed to make the translations sorted by increasing numbers
DBTranslator4RangeVariable & operator=(DBTranslator4RangeVariable &&from)
move operator
DBTranslator4RangeVariable(std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor without any initial variable nor missing symbols
DBTranslator4RangeVariable & operator=(const DBTranslator4RangeVariable &from)
copy operator
DBTranslator4RangeVariable(DBTranslator4RangeVariable &&from)
move constructor
virtual ~DBTranslator4RangeVariable()
destructor
virtual DBTranslator4RangeVariable * clone() const
virtual copy constructor
DBTranslator(DBTranslatedValueType val_type, const bool is_lossless, const std::vector< std::string > &missing_symbols, const bool editable_dictionary=true, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
Header of gumRangeVariable.
The union class for storing the translated values in learning databases.