Commit 20da89f8 authored by Mark Olesen's avatar Mark Olesen Committed by Andrew Heather
Browse files

ENH: for-range, forAllIters() ... in genericPatchFields/

- reduced clutter when iterating over containers
parent 534920b6
...@@ -429,12 +429,7 @@ Foam::genericFvsPatchField<Type>::genericFvsPatchField ...@@ -429,12 +429,7 @@ Foam::genericFvsPatchField<Type>::genericFvsPatchField
actualTypeName_(ptf.actualTypeName_), actualTypeName_(ptf.actualTypeName_),
dict_(ptf.dict_) dict_(ptf.dict_)
{ {
forAllConstIter forAllConstIters(ptf.scalarFields_, iter)
(
HashPtrTable<scalarField>,
ptf.scalarFields_,
iter
)
{ {
scalarFields_.insert scalarFields_.insert
( (
...@@ -443,12 +438,7 @@ Foam::genericFvsPatchField<Type>::genericFvsPatchField ...@@ -443,12 +438,7 @@ Foam::genericFvsPatchField<Type>::genericFvsPatchField
); );
} }
forAllConstIter forAllConstIters(ptf.vectorFields_, iter)
(
HashPtrTable<vectorField>,
ptf.vectorFields_,
iter
)
{ {
vectorFields_.insert vectorFields_.insert
( (
...@@ -457,12 +447,7 @@ Foam::genericFvsPatchField<Type>::genericFvsPatchField ...@@ -457,12 +447,7 @@ Foam::genericFvsPatchField<Type>::genericFvsPatchField
); );
} }
forAllConstIter forAllConstIters(ptf.sphTensorFields_, iter)
(
HashPtrTable<sphericalTensorField>,
ptf.sphTensorFields_,
iter
)
{ {
sphTensorFields_.insert sphTensorFields_.insert
( (
...@@ -471,12 +456,7 @@ Foam::genericFvsPatchField<Type>::genericFvsPatchField ...@@ -471,12 +456,7 @@ Foam::genericFvsPatchField<Type>::genericFvsPatchField
); );
} }
forAllConstIter forAllConstIters(ptf.symmTensorFields_, iter)
(
HashPtrTable<symmTensorField>,
ptf.symmTensorFields_,
iter
)
{ {
symmTensorFields_.insert symmTensorFields_.insert
( (
...@@ -485,12 +465,7 @@ Foam::genericFvsPatchField<Type>::genericFvsPatchField ...@@ -485,12 +465,7 @@ Foam::genericFvsPatchField<Type>::genericFvsPatchField
); );
} }
forAllConstIter forAllConstIters(ptf.tensorFields_, iter)
(
HashPtrTable<tensorField>,
ptf.tensorFields_,
iter
)
{ {
tensorFields_.insert tensorFields_.insert
( (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment