From c78287776886cd5decffb6e019a4997915b73004 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Thu, 14 Feb 2019 13:15:10 +0100 Subject: [PATCH] ENH: HashSet::test() for method name compatibility with bitSet, boolList --- src/OpenFOAM/containers/HashTables/HashSet/HashSet.H | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/OpenFOAM/containers/HashTables/HashSet/HashSet.H b/src/OpenFOAM/containers/HashTables/HashSet/HashSet.H index f5aa47e5196..297b6013336 100644 --- a/src/OpenFOAM/containers/HashTables/HashSet/HashSet.H +++ b/src/OpenFOAM/containers/HashTables/HashSet/HashSet.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010, 2016-2018 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2010, 2016-2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2011-2016 OpenFOAM Foundation @@ -168,6 +168,14 @@ public: // Member Functions + //- Same as found() - return true if key exists in the set. + // Method name compatibility with bitSet and boolList. + bool test(const Key& key) const + { + return found(key); + } + + // Edit //- Insert a new entry, not overwriting existing entries. -- GitLab