47#ifndef GUM_LEARNING_DB_TRANSLATOR_4_DISCRETIZED_VARIABLE_H
48#define GUM_LEARNING_DB_TRANSLATOR_4_DISCRETIZED_VARIABLE_H
159 template <
typename GUM_SCALAR >
161 const std::vector< std::string >& missing_symbols,
162 std::size_t max_dico_entries
163 = std::numeric_limits< std::size_t >::max());
177 template <
typename GUM_SCALAR >
179 std::size_t max_dico_entries
180 = std::numeric_limits< std::size_t >::max());
195 const std::vector< std::string >& missing_symbols,
196 std::size_t max_dico_entries
197 = std::numeric_limits< std::size_t >::max());
212 std::size_t max_dico_entries
213 = std::numeric_limits< std::size_t >::max());
306#ifndef DOXYGEN_SHOULD_SKIP_THIS
The databases' cell translators for discretized variables.
The base class for all the tabular databases' cell translators.
Class for discretized random variable.
The class for generic Hash Tables.
A base class for discretized variables, independent of the ticks type.
DBTranslator4DiscretizedVariable(const DiscretizedVariable< GUM_SCALAR > &var, const std::vector< std::string > &missing_symbols, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor with a discretized variable as translator
virtual bool hasEditableDictionary() const final
indicates that the translator is never in editable dictionary mode
DBTranslator4DiscretizedVariable(const IDiscretizedVariable &var, const std::vector< std::string > &missing_symbols, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor with a IDiscretized variable as translator
virtual HashTable< std::size_t, std::size_t > reorder() final
returns an empty HashTable to indicate that no reordering is needed.
DBTranslator4DiscretizedVariable(const DBTranslator4DiscretizedVariable &from)
copy constructor
DBTranslator4DiscretizedVariable & operator=(DBTranslator4DiscretizedVariable &&from)
move operator
virtual std::size_t domainSize() const final
returns the number of discretization intervals used for translations
virtual DBTranslatedValue missingValue() const final
returns the translation of a missing value
virtual ~DBTranslator4DiscretizedVariable()
destructor
DBTranslator4DiscretizedVariable & operator=(const DBTranslator4DiscretizedVariable &from)
copy operator
virtual void setEditableDictionaryMode(bool new_mode) final
sets/unset the editable dictionary mode
DBTranslator4DiscretizedVariable(const DiscretizedVariable< GUM_SCALAR > &var, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor with a discretized variable as translator but without missing symbols
virtual bool needsReordering() const final
indicates that the translations should never be reordered
virtual DBTranslator4DiscretizedVariable * clone() const
virtual copy constructor
virtual DBTranslatedValue translate(const std::string &str) final
returns the translation of a string
virtual const IDiscretizedVariable * variable() const final
returns the variable stored into the translator
DBTranslator4DiscretizedVariable(const IDiscretizedVariable &var, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor with a IDiscretized variable as translator but without missing symbols
DBTranslator4DiscretizedVariable(DBTranslator4DiscretizedVariable &&from)
move constructor
virtual std::string translateBack(const DBTranslatedValue translated_val) const final
returns the original value for a given translation
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
The union class for storing the translated values in learning databases.