From a4f4a904f48690dd29ffa23e92ec9e6d6d8d0316 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 1 Dec 2009 18:26:18 +0100 Subject: [PATCH] HashSet enhancement - allow insert() and set() from a UList of Key This complements the existing erase(const UList&) method --- applications/test/HashSet/hashSetTest.C | 13 ++++++++ .../containers/HashTables/HashSet/HashSet.C | 30 +++++++++++++++++++ .../containers/HashTables/HashSet/HashSet.H | 22 +++++++------- 3 files changed, 55 insertions(+), 10 deletions(-) diff --git a/applications/test/HashSet/hashSetTest.C b/applications/test/HashSet/hashSetTest.C index 21e1276604..fd40e34999 100644 --- a/applications/test/HashSet/hashSetTest.C +++ b/applications/test/HashSet/hashSetTest.C @@ -92,6 +92,8 @@ int main(int argc, char *argv[]) labelHashSet setD(1); setD.insert(11); setD.insert(100); + setD.insert(49); + setD.insert(36); setD.insert(2008); Info<< "setD : " << setD << endl; @@ -138,6 +140,17 @@ int main(int argc, char *argv[]) // this doesn't work (yet?) // setD[12] = true; + List