33 #include "DGtal/helpers/StdDefs.h"
35 #include "DGtal/base/Common.h"
36 #include "DGtal/topology/CVertexMap.h"
37 #include "DGtal/topology/STLMapToVertexMapAdapter.h"
44 using namespace DGtal;
56 bool testMapToVertexMap()
61 typedef map<Vertex, Value> Map;
65 myMap.setValue(Point(1,1), 10);
66 myMap.setValue(Point(2,3), 2);
68 return (myMap(Point(1,1)) == 10 && myMap(Point(2,3)) == 2);
76 int main(
int ,
char** )
80 bool res = testMapToVertexMap();
81 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;