template<class C1, class C2>
Make a filter that selects elements of src that are not present in dst. Each element should be selected only once. Definition at line 19 of file FilterUnique.h. References Contains(). 00020 { 00021 if (filter == 0) 00022 filter = new bool[src->Capacity()]; 00023 for (int i=0 ; i<srcSize ; i++) 00024 { 00025 bool b = true; 00026 if (Contains(dst, src->Get(i), 0, dstSize)) 00027 b = false; 00028 else if (Contains(src, src->Get(i), 0, i)) 00029 b = false; 00030 filter[i] = b; 00031 } 00032 }
Here is the call graph for this function:
|