openfoam/applications/test
Mark Olesen f73b5b629f ENH: added HashTable 'lookup' and 'retain' methods
- lookup(): with a default value (const access)
  For example,
      Map<label> something;
      value = something.lookup(key, -1);

    being equivalent to the following:

      Map<label> something;
      value = -1;  // bad value
      if (something.found(key))
      {
          value = something[key];
      }

    except that lookup also makes it convenient to handle const references.
    Eg,

      const labelList& ids = someHash.lookup(key, labelList());

- For consistency, provide a two parameter HashTable '()' operator.
  The lookup() method is, however, normally preferable when
  const-only access is to be ensured.

- retain(): the counterpart to erase(), it only retains entries
  corresponding to the listed keys.

  For example,
      HashTable<someType> largeCache;
      wordHashSet preserve = ...;

      largeCache.retain(preserve);

    being roughly equivalent to the following two-stage process,
    but with reduced overhead and typing, and fewer potential mistakes.

      HashTable<someType> largeCache;
      wordHashSet preserve = ...;

      {
          wordHashSet cull(largeCache.toc()); // all keys
          cull.erase(preserve);               // except those to preserve
          largeCache.erase(cull);             //
      }

  The HashSet &= operator and retain() are functionally equivalent,
  but retain() also works with dissimilar value types.
2017-05-11 12:25:35 +02:00
..
alloc STYLE: uniform 'Test-' prefix for all applications/test 2010-11-23 16:26:04 +01:00
base64 Add base64 encoding layer (issue #272) 2016-10-17 12:05:29 +02:00
BinSum ENH: Random numbers - updated dependent code from change cachedRandom->Random class 2017-04-28 09:15:52 +01:00
boundBox ENH: additional methods/operators for boundBox (related to #196) 2017-01-25 19:26:50 +01:00
callback applications/test: Updated include and link options 2015-07-16 14:37:19 +01:00
Circulator Rename circulators to be consistent with the standard OpenFOAM class naming convention 2015-08-06 16:54:47 +01:00
codeStream STYLE: missing include in codeStream test dictionary 2016-07-15 09:05:44 +02:00
CompactIOList Formatting: Rationalized the indentation of #include 2015-02-10 20:35:50 +00:00
CompactListList UList: Rationalize assignment (shallow-copy vs deep-copy) 2016-04-03 10:26:05 +01:00
cplusplus1 ENH: improve HashTable iterator access and management 2017-05-04 10:17:18 +02:00
cpuInfo ENH: provide basic cpu-information 2016-06-15 12:38:46 +02:00
cstring ENH: adapter for a list of C++ strings <-> a list of C-style strings 2016-06-16 08:22:53 +02:00
cyclic applications/test: Updated include and link options 2015-07-16 14:37:19 +01:00
delete Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
dictionary ENH: allow '^' as anchor for dictionary scoping (issue #429) 2017-04-25 11:57:21 +02:00
Dictionary ENH: add some standard templates and macros into stdFoam.H 2017-04-29 22:28:16 +02:00
dimensionedType ENH: provide a 'dimensioned' null-like constructor for dimensionedType 2016-12-02 08:48:01 +01:00
Distribution ENH: Random numbers - updated dependent code from change cachedRandom->Random class 2017-04-28 09:15:52 +01:00
DLList ENH: add some standard templates and macros into stdFoam.H 2017-04-29 22:28:16 +02:00
DynamicField Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
dynamicIndexedOctree STYLE: consistent use of LIB_SRC in Make/options 2017-04-06 23:56:23 +02:00
DynamicList ENH: Support more C++11 initializer lists (issue #261) 2016-10-18 20:08:37 +02:00
edges STYLE: add edge(labelPair) constructor, debug info etc. 2017-05-04 02:42:50 +02:00
ensightFile BUG: ensight writers not catching special reserved characters (fixes #122) 2016-06-07 17:16:09 +01:00
ensightFoamReader Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
error Completed update ...ErrorIn -> ...ErrorInFunction 2015-11-11 09:03:39 +00:00
etcFiles ENH: various general improvments to the POSIX functions 2017-03-30 11:45:25 +02:00
extendedStencil Standardized cell, patch and face loop index names 2016-04-25 10:28:32 +01:00
faces ENH: ensure face, triFace and labelledTri all work consistently (issue #294) 2016-11-12 20:57:48 +01:00
Field STYLE: uniform 'Test-' prefix for all applications/test 2010-11-23 16:26:04 +01:00
fieldDependency Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
fieldMapping ENH: Tutorial updates and clean-up 2016-12-16 13:26:28 +00:00
fileName ENH: additional fileName methods 2016-12-18 20:40:03 +01:00
fileNameClean Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
findCell-octree Rationalize position searching and add cell->tet decomposition as the default cell-search algorithm 2015-02-25 10:57:06 +00:00
findSphereFeatureEdges-octree Formatting: Rationalized the indentation of #include 2015-02-10 20:35:50 +00:00
findTimes Formatting: Rationalized the indentation of #include 2015-02-10 20:35:50 +00:00
FixedList BUG: FixedList '<' operator using a template parameter (fixes #458) 2017-04-27 01:30:50 +02:00
foamVersion Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
Function1 GIT: Initial commit after latest foundation merge 2016-04-25 11:40:48 +01:00
fvc applications/test: Updated include and link options 2015-07-16 14:37:19 +01:00
fvc2D GIT: Resolved conflicts arising from merge with develop branch 2016-09-26 10:57:34 +01:00
fvSolutionCombine COMP: Test apps: make compile 2013-01-17 11:06:38 +00:00
GAMGAgglomeration GeometricField: Renamed internalField() -> primitiveField() and dimensionedInternalField() -> internalField() 2016-04-30 21:40:09 +01:00
globalIndex Standardized cell, patch, face and processor loop index names 2016-04-25 12:00:53 +01:00
globalMeshData Further standardization of loop index naming: pointI -> pointi, patchI -> patchi 2016-05-18 21:20:42 +01:00
graph Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
graphXi Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
Hashing GIT: Initial commit after latest foundation merge 2016-04-25 11:40:48 +01:00
HashingSpeed C++11: Replaced the C NULL with the safer C++11 nullptr 2016-08-05 17:19:38 +01:00
HashPtrTable BUG: HashPtrTable has problems with null pointers (issue #395) 2017-01-26 18:00:33 +01:00
HashSet ENH: added HashTable 'lookup' and 'retain' methods 2017-05-11 12:25:35 +02:00
HashTable ENH: added HashTable 'lookup' and 'retain' methods 2017-05-11 12:25:35 +02:00
HashTable2 HashTable: Added C++11 initializer_list constructor 2016-08-05 22:30:26 +01:00
HashTable3 Update code to use the simpler C++11 template syntax removing spaces between closing ">"s 2016-01-10 22:41:16 +00:00
hexRef8 ENH: Tutorial updates and clean-up 2016-12-16 13:26:28 +00:00
IndirectList Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
io Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
ISLList ENH: add some standard templates and macros into stdFoam.H 2017-04-29 22:28:16 +02:00
IStringStream Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
labelRanges ENH: add labelRange comparison operators and subset methods 2017-04-30 21:29:24 +02:00
liquid Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
List ENH: support UList[labelRange] and SubList construction with labelRange 2017-05-01 14:01:09 +02:00
ListOps ENH: add inplaceUniqueSort function 2017-03-08 11:10:16 +01:00
Map ENH: provide HashTable::iterator::found() method 2017-04-11 09:55:54 +02:00
mappedPatch GeometricField: Renamed internalField() -> primitiveField() and dimensionedInternalField() -> internalField() 2016-04-30 21:40:09 +01:00
Matrix LUscalarMatrix: Added processor-local matrix inverse function 2016-07-17 14:44:50 +01:00
maxMem COMP: Applications/test: clean build 2011-06-08 15:37:11 +01:00
memInfo Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
mesh ENH: optionally eliminate duplicates on hashedWordList construction (issue #375) 2017-01-10 12:42:40 +01:00
mkdir Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
momentOfInertia Standardized cell, patch and face loop index names 2016-04-25 10:28:32 +01:00
mvBak Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
NamedEnum ENH: add some standard templates and macros into stdFoam.H 2017-04-29 22:28:16 +02:00
nullObject ENH: ensure nullObject is large enough for reinterpret 2017-05-01 22:39:36 +02:00
objectRegistry ENH: improve objectRegistry functionality (issue #322) 2016-12-01 13:04:07 +01:00
ODE Matrix: Added (i, j) addressing to allow support for addressing blocks of the matrix 2016-03-20 19:44:29 +00:00
OStringStream Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
PackedList Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
PackedList1 Test-PackedList1: Removed chained assigments 2016-02-08 16:30:00 +00:00
PackedList2 Update code to use the simpler C++11 template syntax removing spaces between closing ">"s 2016-01-10 22:41:16 +00:00
PackedList3 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
PackedList4 ENH: support ASCII List output on a single-line 2017-02-10 09:55:37 +01:00
parallel BUG: UOPstream indexes out of bounds after whitespace stripping (fixes #134) 2016-06-02 09:45:04 +02:00
parallel-communicators Formatting: Rationalized the indentation of #include 2015-02-10 20:35:50 +00:00
parallel-nonBlocking Standardized cell, patch, face and processor loop index names 2016-04-25 12:00:53 +01:00
passiveParticle STYLE: Consistency updates to change input of <var>Name to <var>. Fixes #306 2016-11-22 14:50:33 +00:00
PatchEdgeFaceWave Standardized cell, patch and face loop index names 2016-04-25 10:28:32 +01:00
patchRegion ENH: Tutorial updates and clean-up 2016-12-16 13:26:28 +00:00
PatchTools Further standardization of loop index naming: pointI -> pointi, patchI -> patchi 2016-05-18 21:20:42 +01:00
PointEdgeWave Further standardization of loop index naming: pointI -> pointi, patchI -> patchi 2016-05-18 21:20:42 +01:00
pointField vector::zero -> Zero 2016-04-16 18:34:41 +01:00
Polynomial ENH: Random numbers - updated dependent code from change cachedRandom->Random class 2017-04-28 09:15:52 +01:00
POSIX Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
prefixOSstream Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
primitivePatch Further standardization of loop index naming: pointI -> pointi, patchI -> patchi 2016-05-18 21:20:42 +01:00
pTraits ENH: improve HashTable iterator access and management 2017-05-04 10:17:18 +02:00
PtrList ENH: Update tests for PtrList and sort 2013-09-25 10:11:36 +01:00
PtrListDictionary PtrListDictionary: New form of Dictionary in which the list type is PtrList rather than a linked-list 2015-09-16 21:26:26 +01:00
quaternion quaternion/septernion: Added multi- quaternion/septernion averaging 2016-04-16 15:59:05 +01:00
reconstruct applications/test: Updated include and link options 2015-07-16 14:37:19 +01:00
regex GIT: Initial state after latest Foundation merge 2016-09-20 14:49:08 +01:00
rigidBodyDynamics applications/test/rigidBodyDynamics/pendulumAndSpring: Another slightly more complex test 2016-04-17 15:47:03 +01:00
router GIT: Initial state after latest Foundation merge 2016-09-20 14:49:08 +01:00
sha1 Cleanup endian support (closes #271) 2016-10-17 12:02:01 +02:00
simpleMatrix Matrix: Added (i, j) addressing to allow support for addressing blocks of the matrix 2016-03-20 19:44:29 +00:00
sizeof Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
slicedField applications/test: Updated include and link options 2015-07-16 14:37:19 +01:00
SLList STYLE: add edge(labelPair) constructor, debug info etc. 2017-05-04 02:42:50 +02:00
sort ENH: Update tests for PtrList and sort 2013-09-25 10:11:36 +01:00
speed Removed use of the deprecated "register" keyword 2015-06-30 10:26:44 +01:00
sphericalTensorField Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
spline STYLE: Updated version to 'plus' 2015-12-22 23:14:17 +00:00
StaticHashTable Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
string ENH: provide string removeStart, removeEnd convenience methods 2017-03-10 11:39:40 +01:00
stringList Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
symmTensorField Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
syncTools Further standardization of loop index naming: pointI -> pointi, patchI -> patchi 2016-05-18 21:20:42 +01:00
sysInfo Cleanup endian support (closes #271) 2016-10-17 12:02:01 +02:00
tensor messageStream: Added DebugInfo and DebugInFunction: 2016-03-04 11:30:13 +00:00
tensor2D tensor2D: Added specialisation for the outerProduct of Vector2D to enable outer product operation 2012-02-01 12:30:16 +00:00
tetTetOverlap applications: Update ...ErrorIn -> ...ErrorInFunction 2015-11-10 17:53:31 +00:00
thermoMixture Update code to use the simpler C++11 template syntax removing spaces between closing ">"s 2016-01-10 22:41:16 +00:00
tmpField Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
tokenize Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
triTet STYLE: uniform 'Test-' prefix for all applications/test 2010-11-23 16:26:04 +01:00
Tuple2 ENH: add Tuple2 comparison operators, typedefs 2017-04-30 13:05:49 +02:00
UDictionary Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
UIndirectList Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
UniformField UniformField: New field type 2013-09-27 22:47:59 +01:00
vector STYLE: uniform 'Test-' prefix for all applications/test 2010-11-23 16:26:04 +01:00
vectorTools STYLE: use FOAM_UTILITIES in Make/options 2017-04-07 08:17:43 +02:00
volField ENH: Tutorial updates and clean-up 2016-12-16 13:26:28 +00:00
volPointInterpolation boundaryField() -> boundaryFieldRef() 2016-04-24 22:07:37 +01:00
wallDist ENH: additional methods/operators for boundBox (related to #196) 2017-01-25 19:26:50 +01:00
wordRe BUG: in wordRe::operator=(const keyType&) 2017-03-10 13:05:35 +01:00
xfer BUG: Field construct from Xfer<Field> fails (issued #298) 2016-11-13 14:37:40 +01:00