00001
00002
00003 #include "AtlfastUtils/CloseTester.h"
00004 namespace Atlfast{
00005 int CloseTester::go(){
00006
00007 typedef int Type;
00008 typedef std::vector<Type> Container;
00009 typedef Type Dist;
00010
00011 Container v ;
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 v.push_back(1);
00024 v.push_back(2);
00025 v.push_back(3);
00026 v.push_back(4);
00027 v.push_back(20);
00028 v.push_back(21);
00029 v.push_back(30);
00030 int distance = 3;
00031
00032
00033 cout<<"** Initial **"<<endl;
00034 PrintThem(v.begin(), v.end() );
00035
00036 Container areClose
00037 = removeDistant<Close<Dist, Dist>, Container, Dist>(v, distance);
00038
00039 cout<<"** areClose **"<<endl;
00040 PrintThem(areClose.begin(), areClose.end() );
00041
00042 return 0;
00043 }
00044 }
00045
00046
00047
00048
00049
00050
00051
00052
00053