47#ifndef GUM_LEARNING_DB_TRANSLATOR_4_INTEGER_VARIABLE_H
48#define GUM_LEARNING_DB_TRANSLATOR_4_INTEGER_VARIABLE_H
161 const std::vector< std::string >& missing_symbols,
162 std::size_t max_dico_entries
163 = std::numeric_limits< std::size_t >::max());
176 std::size_t max_dico_entries
177 = std::numeric_limits< std::size_t >::max());
269#ifndef DOXYGEN_SHOULD_SKIP_THIS
The class representing the original values of the cells of databases.
The databases' cell translators for integer variables.
The base class for all the tabular databases' cell translators.
The class for generic Hash Tables.
virtual std::size_t domainSize() const final
returns the domain size of the variable used for translations
virtual ~DBTranslator4IntegerVariable()
destructor
DBTranslator4IntegerVariable(const IntegerVariable &var, const std::vector< std::string > &missing_symbols, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor with an integer variable as translator
virtual std::string translateBack(const DBTranslatedValue translated_val) const final
returns the original value for a given translation
virtual void setEditableDictionaryMode(bool new_mode) final
sets/unset the editable dictionary mode
DBTranslator4IntegerVariable & operator=(DBTranslator4IntegerVariable &&from)
move operator
virtual const IntegerVariable * variable() const final
returns the variable stored into the translator
virtual DBTranslatedValue missingValue() const final
returns the translation of a missing value
virtual HashTable< std::size_t, std::size_t > reorder() final
returns an empty HashTable to indicate that no reordering is needed.
DBTranslator4IntegerVariable(DBTranslator4IntegerVariable &&from)
move constructor
virtual bool hasEditableDictionary() const final
indicates that the translator is never in editable dictionary mode
virtual DBTranslator4IntegerVariable * clone() const
virtual copy constructor
virtual DBTranslatedValue translate(const std::string &str) final
returns the translation of a string
DBTranslator4IntegerVariable(const DBTranslator4IntegerVariable &from)
copy constructor
DBTranslator4IntegerVariable(const IntegerVariable &var, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor with an integer variable as translator but without missing symbols
virtual bool needsReordering() const final
indicates that the translations should never be reordered
DBTranslator4IntegerVariable & operator=(const DBTranslator4IntegerVariable &from)
copy operator
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
Base class for integer discrete random variables.
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
The union class for storing the translated values in learning databases.