Lines Matching refs:zone
146 Zone zone; in TEST() local
148 UniqueSet<String>* set = new(&zone) UniqueSet<String>(); in TEST()
151 set->Add(A, &zone); in TEST()
153 set->Add(A, &zone); in TEST()
155 set->Add(B, &zone); in TEST()
157 set->Add(C, &zone); in TEST()
159 set->Add(C, &zone); in TEST()
161 set->Add(B, &zone); in TEST()
163 set->Add(A, &zone); in TEST()
173 Zone zone; in TEST() local
175 UniqueSet<String>* set = new(&zone) UniqueSet<String>(); in TEST()
177 set->Add(A, &zone); in TEST()
178 set->Add(B, &zone); in TEST()
179 set->Add(C, &zone); in TEST()
213 Zone zone; in TEST() local
215 UniqueSet<String>* set = new(&zone) UniqueSet<String>(); in TEST()
218 set->Add(A, &zone); in TEST()
223 set->Add(A, &zone); in TEST()
228 set->Add(B, &zone); in TEST()
232 set->Add(C, &zone); in TEST()
244 Zone zone; in TEST() local
246 UniqueSet<String>* set = new(&zone) UniqueSet<String>(); in TEST()
249 set->Add(A, &zone); in TEST()
252 set->Add(A, &zone); in TEST()
255 set->Add(B, &zone); in TEST()
259 set->Add(C, &zone); in TEST()
281 Zone zone; in TEST() local
283 UniqueSet<String>* set1 = new(&zone) UniqueSet<String>(); in TEST()
284 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST()
288 set1->Add(A, &zone); in TEST()
292 set2->Add(A, &zone); in TEST()
296 set1->Add(B, &zone); in TEST()
300 set2->Add(C, &zone); in TEST()
304 set1->Add(C, &zone); in TEST()
308 set2->Add(B, &zone); in TEST()
319 Zone zone; in TEST() local
321 UniqueSet<String>* set1 = new(&zone) UniqueSet<String>(); in TEST()
322 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST()
327 set1->Add(A, &zone); in TEST()
332 set2->Add(B, &zone); in TEST()
337 set2->Add(A, &zone); in TEST()
342 set1->Add(B, &zone); in TEST()
354 Zone zone; in TEST() local
356 UniqueSet<String>* set1 = new(&zone) UniqueSet<String>(); in TEST()
357 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST()
359 set1->Add(A, &zone); in TEST()
360 set1->Add(C, &zone); in TEST()
361 set1->Add(E, &zone); in TEST()
363 set2->Add(A, &zone); in TEST()
364 set2->Add(B, &zone); in TEST()
365 set2->Add(C, &zone); in TEST()
366 set2->Add(D, &zone); in TEST()
367 set2->Add(E, &zone); in TEST()
368 set2->Add(F, &zone); in TEST()
373 set1->Add(G, &zone); in TEST()
381 static UniqueSet<T>* MakeSet(Zone* zone, int which, Unique<T>* elements) { in MakeSet() argument
382 UniqueSet<T>* set = new(zone) UniqueSet<T>(); in MakeSet()
384 if ((which & (1 << i)) != 0) set->Add(elements[i], zone); in MakeSet()
397 Zone zone; in TEST() local
406 UniqueSet<String>* set1 = MakeSet(&zone, i, elements); in TEST()
407 UniqueSet<String>* set2 = MakeSet(&zone, j, elements); in TEST()
420 Zone zone; in TEST() local
422 UniqueSet<String>* set1 = new(&zone) UniqueSet<String>(); in TEST()
423 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST()
429 set1->Add(A, &zone); in TEST()
431 result = set1->Intersect(set2, &zone); in TEST()
436 set2->Add(A, &zone); in TEST()
438 result = set1->Intersect(set2, &zone); in TEST()
444 set2->Add(B, &zone); in TEST()
445 set2->Add(C, &zone); in TEST()
447 result = set1->Intersect(set2, &zone); in TEST()
461 Zone zone; in TEST() local
470 UniqueSet<String>* set1 = MakeSet(&zone, i, elements); in TEST()
471 UniqueSet<String>* set2 = MakeSet(&zone, j, elements); in TEST()
473 UniqueSet<String>* result = set1->Intersect(set2, &zone); in TEST()
474 UniqueSet<String>* expected = MakeSet(&zone, i & j, elements); in TEST()
488 Zone zone; in TEST() local
490 UniqueSet<String>* set1 = new(&zone) UniqueSet<String>(); in TEST()
491 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST()
497 set1->Add(A, &zone); in TEST()
499 result = set1->Union(set2, &zone); in TEST()
504 set2->Add(A, &zone); in TEST()
506 result = set1->Union(set2, &zone); in TEST()
512 set2->Add(B, &zone); in TEST()
513 set2->Add(C, &zone); in TEST()
515 result = set1->Union(set2, &zone); in TEST()
529 Zone zone; in TEST() local
538 UniqueSet<String>* set1 = MakeSet(&zone, i, elements); in TEST()
539 UniqueSet<String>* set2 = MakeSet(&zone, j, elements); in TEST()
541 UniqueSet<String>* result = set1->Union(set2, &zone); in TEST()
542 UniqueSet<String>* expected = MakeSet(&zone, i | j, elements); in TEST()