lemon/lgf_writer.h
changeset 1128 ee96cd1cad8a
parent 1074 97d978243703
child 1161 7d32a2d6ed59
equal deleted inserted replaced
37:6d803bbb038a 38:54bd352bbb60
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library.
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2010
     5  * Copyright (C) 2003-2013
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
     9  * Permission to use, modify and distribute this software is granted
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    10  * provided that this copyright notice appears in all copies. For
   183       Converter _converter;
   183       Converter _converter;
   184 
   184 
   185     public:
   185     public:
   186       ValueStorage(const Value& value, const Converter& converter = Converter())
   186       ValueStorage(const Value& value, const Converter& converter = Converter())
   187         : _value(value), _converter(converter) {}
   187         : _value(value), _converter(converter) {}
   188       
   188 
   189       virtual std::string get() {
   189       virtual std::string get() {
   190         return _converter(_value);
   190         return _converter(_value);
   191       }
   191       }
   192     };
   192     };
   193 
   193