//------------------------------------------------------------------------------ // getFirstTableName is used to take the first Source std::string getFirstTableName(dict_t& dictionary) { std::string firstTable = (*dictionary.begin()).first; int minValue = (*dictionary.begin()).second; for(dict_t::iterator idx = dictionary.begin(); idx != dictionary.end(); ++idx ) { if ((*idx).second < minValue) { minValue = (*idx).second; firstTable = (*idx).first; } } return firstTable; }
iterator begin() const { return iterator(dict.begin()); }