graph_to_eps mission accomplished.
- lemon/graph_to_eps.h header created
- lemon/bezier.h: Tools to compute with bezier curves (unclean and undocumented
interface, used internally by graph_to_eps.h)
- demo/graph_to_eps_demo.cc: a simple demo for lemon/graph_to_eps.h
1 #include <lemon/concept_check.h>
2 #include <lemon/concept/maps.h>
3 #include <lemon/maps.h>
5 #include "test_tools.h"
8 using namespace lemon::concept;
13 typedef ReadMap<A,double> DoubleMap;
16 { // checking graph components
18 checkConcept<ReadMap<A,B>, ReadMap<A,B> >();
19 checkConcept<WriteMap<A,B>, WriteMap<A,B> >();
20 checkConcept<ReadWriteMap<A,B>, ReadWriteMap<A,B> >();
21 checkConcept<ReferenceMap<A,B,B&,const B&>, ReferenceMap<A,B,B&,const B&> >();
23 checkConcept<ReadMap<A,double>, AddMap<DoubleMap,DoubleMap> >();
24 checkConcept<ReadMap<A,double>, SubMap<DoubleMap,DoubleMap> >();
25 checkConcept<ReadMap<A,double>, MulMap<DoubleMap,DoubleMap> >();
26 checkConcept<ReadMap<A,double>, DivMap<DoubleMap,DoubleMap> >();
27 checkConcept<ReadMap<A,double>, NegMap<DoubleMap> >();
28 checkConcept<ReadMap<A,double>, AbsMap<DoubleMap> >();
29 checkConcept<ReadMap<A,double>, ShiftMap<DoubleMap> >();
30 checkConcept<ReadMap<A,double>, ScaleMap<DoubleMap> >();
32 checkConcept<ReadMap<B,double>, ComposeMap<DoubleMap,ReadMap<B,A> > >();
34 std::cout << __FILE__ ": All tests passed.\n";