58#ifndef DOXYGEN_SHOULD_SKIP_THIS
73 return this->
back_dico_.second(translated_val.discr_val);
74 }
catch (Exception
const&) {
76 if (translated_val.discr_val == std::numeric_limits< std::size_t >::max()) {
77 if (!_nonint_missing_symbol_.empty())
return _nonint_missing_symbol_;
82 "The back translation of \"" << translated_val.discr_val
83 <<
"\" could not be found");
91 return _variable_.domainSize();
99 return DBTranslatedValue{std::numeric_limits< std::size_t >::max()};
The class representing the original values of the cells of databases.
The databases' cell translators for range variables.
std::size_t domainSize() const final
returns the domain size of a variable corresponding to the translations
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() override
destructor
const RangeVariable * variable() const final
returns the variable stored into the translator
DBTranslatedValue missingValue() const final
returns the translation of a missing value
std::string translateBack(const DBTranslatedValue translated_val) const final
returns the original value for a given translation
Bijection< std::size_t, std::string > back_dico_
the bijection relating back translated values and their original strings.
Set< std::string > missing_symbols_
the set of missing symbols
#define GUM_ERROR(type, msg)
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.