57 const std::string &str,
58 std::map<std::string, E> &map,
60 const E first,
const E last,
const E def)
68 for(
int it = static_cast<int>(last); it >=
static_cast<int>(first); it--) {
69 const E e =
static_cast<E
>(it);
74 return map.find(str) == map.end() ? def : map[str];
TokenIgnorer(const char c)
static E toEnum(const std::string &str, std::map< std::string, E > &map, std::string toString(const E &), const E first, const E last, const E def)
std::string toString(const Attribute &attr)
friend std::istream & operator>>(std::istream &is, TokenIgnorer c)
Basic declarations, included by all source files.
Hashing with chaining and table doubling.
The namespace for all OGDF objects.