#include <CloseTester.h>
Public Member Functions | |
int | go () |
Definition at line 23 of file CloseTester.h.
int Atlfast::CloseTester::go | ( | ) |
Definition at line 5 of file CloseTester.cxx.
00005 { 00006 00007 typedef int Type; 00008 typedef std::vector<Type> Container; 00009 typedef Type Dist; 00010 00011 Container v ; 00012 /* 00013 v.push_back(-1.5); 00014 v.push_back(2.5); 00015 v.push_back(6.5); 00016 v.push_back(7.5); 00017 v.push_back(8.566); 00018 v.push_back(15.5); 00019 v.push_back(16.1); 00020 v.push_back(21.1); 00021 Dist distance = 3.; 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 }