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> >();
30 checkConcept<ReadMap<B,double>, ComposeMap<DoubleMap,ReadMap<B,A> > >();
32 std::cout << __FILE__ ": All tests passed.\n";