From 110e9989b902fb324c075d43ad2fcfde0bbe0b64 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 19 Nov 2008 12:37:37 +0100 Subject: [PATCH] further HashSet improvements - added global operator|, operator& and operator^ - can construct from table of contents of another HashTable --- applications/test/HashSet/hashSetTest.C | 44 +++++++- .../containers/HashTables/HashSet/HashSet.C | 104 ++++++++++++++++-- .../containers/HashTables/HashSet/HashSet.H | 71 +++++++++--- 3 files changed, 188 insertions(+), 31 deletions(-) diff --git a/applications/test/HashSet/hashSetTest.C b/applications/test/HashSet/hashSetTest.C index 901d791c21..350a656743 100644 --- a/applications/test/HashSet/hashSetTest.C +++ b/applications/test/HashSet/hashSetTest.C @@ -27,6 +27,7 @@ Description \*---------------------------------------------------------------------------*/ #include "HashSet.H" +#include "Map.H" using namespace Foam; @@ -35,12 +36,46 @@ using namespace Foam; int main(int argc, char *argv[]) { - HashSet setA(0); + wordHashSet setA(0); + HashTable tableA; + + HashTable tableB; + Map