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,
56 _variable_(
"var",
"", 1, 0) {
61 bool non_int_symbol_found =
false;
62 for (
const auto& symbol:
this->missing_symbols_) {
63 if (DBCell::isInteger(symbol)) {
64 _status_int_missing_symbols_.insert(symbol,
false);
65 }
else if (!non_int_symbol_found) {
66 non_int_symbol_found =
true;
67 _nonint_missing_symbol_ = symbol;
71 GUM_CONSTRUCTOR(DBTranslator4RangeVariable);
76 template <
template <
typename >
class ALLOC >
87 template <
template <
typename >
class ALLOC >
88 template <
template <
typename >
class XALLOC >
155 template <
template <
typename >
class ALLOC >
190 template <
template <
typename >
class ALLOC >
204 template <
template <
typename >
class ALLOC >
211 template <
template <
typename >
class ALLOC >
225 template <
template <
typename >
class ALLOC >
232 template <
template <
typename >
class ALLOC >
248 template <
template <
typename >
class ALLOC >
255 template <
template <
typename >
class ALLOC >
262 template <
template <
typename >
class ALLOC >
278 template <
template <
typename >
class ALLOC >
294 template <
template <
typename >
class ALLOC >
318 "The translation of String \"" <<
str <<
"\" could not be found");
324 "String \"" <<
str <<
"\" cannot be translated because " 325 <<
"it cannot be converted into an integer");
333 "String \"" <<
str <<
"\" cannot be translated because " 334 <<
"it corresponds to an already translated missing symbol");
347 "String \"" <<
str <<
"\" cannot be translated because " 348 <<
"the dictionary is already full");
368 "String \"" <<
str <<
"\" cannot be translated because " 369 <<
"the dictionary is already full");
376 "String \"" <<
str <<
"\" cannot be translated " 377 <<
"because it would induce a new range containing " 378 <<
"an already translated missing symbol");
408 "String \"" <<
str <<
"\" cannot be translated because " 409 <<
"the dictionary is already full");
416 "String \"" <<
str <<
"\" cannot be translated " 417 <<
"because it would induce a new range containing " 418 <<
"an already translated missing symbol");
450 template <
template <
typename >
class ALLOC >
464 <<
"\" could not be found");
470 template <
template <
typename >
class ALLOC >
487 template <
template <
typename >
class ALLOC >
527 template <
template <
typename >
class ALLOC >
534 template <
template <
typename >
class ALLOC >
541 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)