56 std::string
toString(
const E&),
const E first,
const E last,
const E
def)
58 static std::map<std::string, E> map;
61 for (
int it =
static_cast<int>(last); it >=
static_cast<int>(first); it--) {
62 const E e =
static_cast<E
>(it);
67 return map.find(
str) == map.end() ?
def : map[
str];
Basic declarations, included by all source files.
TokenIgnorer(const char c)
friend std::istream & operator>>(std::istream &is, TokenIgnorer c)
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.
std::istream & operator>>(std::istream &is, TokenIgnorer token)
string toString(FromClass key)
static E toEnum(const std::string &str, std::string toString(const E &), const E first, const E last, const E def)