25 #ifndef GUM_LEARNING_DB_TRANSLATOR_4_RANGE_VARIABLE_H 26 #define GUM_LEARNING_DB_TRANSLATOR_4_RANGE_VARIABLE_H 129 template <
template <
typename >
class ALLOC = std::allocator >
156 template <
template <
typename >
class XALLOC >
158 const std::vector< std::string, XALLOC< std::string > >& missing_symbols,
159 std::size_t max_dico_entries = std::numeric_limits< std::size_t >::max(),
175 std::size_t max_dico_entries = std::numeric_limits< std::size_t >::max(),
198 template <
template <
typename >
class XALLOC >
201 const std::vector< std::string, XALLOC< std::string > >& missing_symbols,
202 const bool editable_dictionary =
false,
203 std::size_t max_dico_entries = std::numeric_limits< std::size_t >::max(),
228 const bool editable_dictionary =
false,
229 std::size_t max_dico_entries = std::numeric_limits< std::size_t >::max(),
363 ALLOC<
std::pair<
std::
size_t,
std::
size_t > > >
375 #ifndef DOXYGEN_SHOULD_SKIP_THIS 385 __status_int_missing_symbols;
392 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
The databases' cell translators for range variables.
DBTranslator4RangeVariable< ALLOC > & operator=(const DBTranslator4RangeVariable< ALLOC > &from)
copy operator
The databases' cell translators for range variables.
gum is the global namespace for all aGrUM entities
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
Header of gumRangeVariable.
typename DBTranslator< ALLOC >::allocator_type allocator_type
type for the allocators passed in arguments of methods
virtual DBTranslator4RangeVariable< ALLOC > * clone() const
virtual copy constructor
The base class for all the tabular databases' cell translators.
Class hash tables iterators.
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