33 #include <agrum/tools/database/DBTranslator4RangeVariable.h> 34 #include <agrum/tools/database/DBCell.h> 36 #ifndef DOXYGEN_SHOULD_SKIP_THIS 44 template <
template <
typename >
class ALLOC >
45 template <
template <
typename >
class XALLOC >
46 DBTranslator4RangeVariable< ALLOC >::DBTranslator4RangeVariable(
47 const std::vector< std::string, XALLOC< std::string > >& missing_symbols,
48 std::size_t max_dico_entries,
49 const typename DBTranslator4RangeVariable< ALLOC >::allocator_type& alloc) :
50 DBTranslator< ALLOC >(DBTranslatedValueType::DISCRETE,
55 _variable_(
"var",
"", 1, 0) {
60 bool non_int_symbol_found =
false;
61 for (
const auto& symbol:
this->missing_symbols_) {
62 if (DBCell::isInteger(symbol)) {
63 _status_int_missing_symbols_.insert(symbol,
false);
64 }
else if (!non_int_symbol_found) {
65 non_int_symbol_found =
true;
66 _nonint_missing_symbol_ = symbol;
70 GUM_CONSTRUCTOR(DBTranslator4RangeVariable);
75 template <
template <
typename >
class ALLOC >
86 template <
template <
typename >
class ALLOC >
87 template <
template <
typename >
class XALLOC >
153 template <
template <
typename >
class ALLOC >
187 template <
template <
typename >
class ALLOC >
201 template <
template <
typename >
class ALLOC >
208 template <
template <
typename >
class ALLOC >
222 template <
template <
typename >
class ALLOC >
229 template <
template <
typename >
class ALLOC >
245 template <
template <
typename >
class ALLOC >
252 template <
template <
typename >
class ALLOC >
259 template <
template <
typename >
class ALLOC >
275 template <
template <
typename >
class ALLOC >
291 template <
template <
typename >
class ALLOC >
315 "The translation of String \"" <<
str <<
"\" could not be found");
321 "String \"" <<
str <<
"\" cannot be translated because " 322 <<
"it cannot be converted into an integer");
330 "String \"" <<
str <<
"\" cannot be translated because " 331 <<
"it corresponds to an already translated missing symbol");
344 "String \"" <<
str <<
"\" cannot be translated because " 345 <<
"the dictionary is already full");
365 "String \"" <<
str <<
"\" cannot be translated because " 366 <<
"the dictionary is already full");
373 "String \"" <<
str <<
"\" cannot be translated " 374 <<
"because it would induce a new range containing " 375 <<
"an already translated missing symbol");
405 "String \"" <<
str <<
"\" cannot be translated because " 406 <<
"the dictionary is already full");
413 "String \"" <<
str <<
"\" cannot be translated " 414 <<
"because it would induce a new range containing " 415 <<
"an already translated missing symbol");
447 template <
template <
typename >
class ALLOC >
461 <<
"\" could not be found");
467 template <
template <
typename >
class ALLOC >
484 template <
template <
typename >
class ALLOC >
524 template <
template <
typename >
class ALLOC >
531 template <
template <
typename >
class ALLOC >
538 template <
template <
typename >
class ALLOC >
INLINE void emplace(Args &&... args)
Database(const std::string &filename, const BayesNet< GUM_SCALAR > &bn, const std::vector< std::string > &missing_symbols)