Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
0db8ff34
Commit
0db8ff34
authored
Feb 28, 2016
by
Henry Weller
Browse files
src/OpenFOAM/containers: Updated formatting and comments
parent
0830ace9
Changes
45
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/Dictionaries/Dictionary/Dictionary.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -83,7 +83,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "Dictionary.C"
#
include
"Dictionary.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/Dictionaries/DictionaryBase/DictionaryBase.C
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -88,7 +88,6 @@ Foam::DictionaryBase<IDLListType, T>::DictionaryBase(Istream& is)
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Find and return T
template
<
class
IDLListType
,
class
T
>
bool
Foam
::
DictionaryBase
<
IDLListType
,
T
>::
found
(
const
word
&
keyword
)
const
{
...
...
@@ -96,7 +95,6 @@ bool Foam::DictionaryBase<IDLListType, T>::found(const word& keyword) const
}
// Find and return T*, return NULL if not found
template
<
class
IDLListType
,
class
T
>
const
T
*
Foam
::
DictionaryBase
<
IDLListType
,
T
>::
lookupPtr
(
...
...
@@ -116,7 +114,6 @@ const T* Foam::DictionaryBase<IDLListType, T>::lookupPtr
}
// Find and return T*, return NULL if not found
template
<
class
IDLListType
,
class
T
>
T
*
Foam
::
DictionaryBase
<
IDLListType
,
T
>::
lookupPtr
(
const
word
&
keyword
)
{
...
...
@@ -133,7 +130,6 @@ T* Foam::DictionaryBase<IDLListType, T>::lookupPtr(const word& keyword)
}
// Find and return T*, FatalError if keyword not found
template
<
class
IDLListType
,
class
T
>
const
T
*
Foam
::
DictionaryBase
<
IDLListType
,
T
>::
lookup
(
const
word
&
keyword
)
const
{
...
...
@@ -150,7 +146,6 @@ const T* Foam::DictionaryBase<IDLListType, T>::lookup(const word& keyword) const
}
// Find and return T*, FatalError if keyword not found
template
<
class
IDLListType
,
class
T
>
T
*
Foam
::
DictionaryBase
<
IDLListType
,
T
>::
lookup
(
const
word
&
keyword
)
{
...
...
@@ -167,7 +162,6 @@ T* Foam::DictionaryBase<IDLListType, T>::lookup(const word& keyword)
}
// Return the table of contents
template
<
class
IDLListType
,
class
T
>
Foam
::
wordList
Foam
::
DictionaryBase
<
IDLListType
,
T
>::
toc
()
const
{
...
...
@@ -188,7 +182,6 @@ Foam::wordList Foam::DictionaryBase<IDLListType, T>::toc() const
}
// Add at head of dictionary
template
<
class
IDLListType
,
class
T
>
void
Foam
::
DictionaryBase
<
IDLListType
,
T
>::
insert
(
const
word
&
keyword
,
T
*
tPtr
)
{
...
...
@@ -198,7 +191,6 @@ void Foam::DictionaryBase<IDLListType, T>::insert(const word& keyword, T* tPtr)
}
// Add at tail of dictionary
template
<
class
IDLListType
,
class
T
>
void
Foam
::
DictionaryBase
<
IDLListType
,
T
>::
append
(
const
word
&
keyword
,
T
*
tPtr
)
{
...
...
src/OpenFOAM/containers/Dictionaries/DictionaryBase/DictionaryBase.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -183,7 +183,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "DictionaryBase.C"
#
include
"DictionaryBase.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/Dictionaries/PtrDictionary/PtrDictionary.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -97,7 +97,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "PtrDictionary.C"
#
include
"PtrDictionary.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/Dictionaries/PtrListDictionary/PtrListDictionary.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2015
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -111,7 +111,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "PtrListDictionary.C"
#
include
"PtrListDictionary.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/Dictionaries/UDictionary/UDictionary.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -76,7 +76,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "UDictionary.C"
#
include
"UDictionary.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/Dictionaries/UPtrDictionary/UPtrDictionary.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -76,7 +76,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "UPtrDictionary.C"
#
include
"UPtrDictionary.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTable.C
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -28,7 +28,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct given initial table size
template
<
class
T
,
class
Key
,
class
Hash
>
Foam
::
HashPtrTable
<
T
,
Key
,
Hash
>::
HashPtrTable
(
const
label
size
)
:
...
...
@@ -36,7 +35,6 @@ Foam::HashPtrTable<T, Key, Hash>::HashPtrTable(const label size)
{}
// Construct as copy
template
<
class
T
,
class
Key
,
class
Hash
>
Foam
::
HashPtrTable
<
T
,
Key
,
Hash
>::
HashPtrTable
(
...
...
src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTable.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -153,7 +153,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "HashPtrTable.C"
#
include
"HashPtrTable.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/HashTables/HashSet/HashSet.C
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -166,7 +166,6 @@ void Foam::HashSet<Key, Hash>::operator^=(const HashSet<Key, Hash>& rhs)
}
// same as HashTable::erase()
template
<
class
Key
,
class
Hash
>
void
Foam
::
HashSet
<
Key
,
Hash
>::
operator
-=
(
const
HashSet
<
Key
,
Hash
>&
rhs
)
{
...
...
src/OpenFOAM/containers/HashTables/HashSet/HashSet.H
View file @
0db8ff34
...
...
@@ -218,7 +218,7 @@ typedef HashSet<label, Hash<label>> labelHashSet;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "HashSet.C"
#
include
"HashSet.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/HashTables/HashTable/HashTable.C
View file @
0db8ff34
...
...
@@ -363,15 +363,13 @@ bool Foam::HashTable<T, Key, Hash>::iteratorBase::erase()
}
// NOTE:
// We use (const iterator&) here, but manipulate its contents anyhow.
// The parameter should be (iterator&), but then the compiler doesn't find
// it correctly and tries to call as (iterator) instead.
//
template
<
class
T
,
class
Key
,
class
Hash
>
bool
Foam
::
HashTable
<
T
,
Key
,
Hash
>::
erase
(
const
iterator
&
iter
)
{
// NOTE: We use (const iterator&) here, but manipulate its contents anyhow.
// The parameter should be (iterator&), but then the compiler doesn't find
// it correctly and tries to call as (iterator) instead.
//
// Adjust iterator after erase
return
const_cast
<
iterator
&>
(
iter
).
erase
();
}
...
...
src/OpenFOAM/containers/HashTables/HashTable/HashTable.H
View file @
0db8ff34
...
...
@@ -546,13 +546,13 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#
include "HashTableI.H"
#
include
"HashTableI.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifndef NoHashTableC
#ifdef NoRepository
#
include "HashTable.C"
#
include
"HashTable.C"
#endif
#endif
...
...
src/OpenFOAM/containers/HashTables/StaticHashTable/StaticHashTable.H
View file @
0db8ff34
...
...
@@ -397,13 +397,13 @@ private:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#
include "StaticHashTableI.H"
#
include
"StaticHashTableI.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifndef NoStaticHashTableC
#ifdef NoRepository
#
include "StaticHashTable.C"
#
include
"StaticHashTable.C"
#endif
#endif
...
...
src/OpenFOAM/containers/HashTables/StaticHashTable/StaticHashTableI.H
View file @
0db8ff34
...
...
@@ -345,12 +345,12 @@ Foam::StaticHashTable<T, Key, Hash>::begin()
}
}
#
ifdef FULLDEBUG
#
ifdef FULLDEBUG
if
(
debug
)
{
Info
<<
"StaticHashTable is empty
\n
"
;
}
#
endif
#
endif
return
StaticHashTable
<
T
,
Key
,
Hash
>::
endIter_
;
}
...
...
@@ -377,12 +377,12 @@ Foam::StaticHashTable<T, Key, Hash>::cbegin() const
}
}
#
ifdef FULLDEBUG
#
ifdef FULLDEBUG
if
(
debug
)
{
Info
<<
"StaticHashTable is empty
\n
"
;
}
#
endif
#
endif
return
StaticHashTable
<
T
,
Key
,
Hash
>::
endConstIter_
;
}
...
...
src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILList.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -147,7 +147,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "ILList.C"
#
include
"ILList.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/LinkedLists/accessTypes/LList/LList.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -368,7 +368,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "LList.C"
#
include
"LList.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/LinkedLists/accessTypes/LPtrList/LPtrList.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -270,7 +270,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "LPtrList.C"
#
include
"LPtrList.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/containers/LinkedLists/accessTypes/UILList/UILList.C
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -76,7 +76,6 @@ bool Foam::UILList<LListBase, T>::operator==
}
// Comparison for inequality
template
<
class
LListBase
,
class
T
>
bool
Foam
::
UILList
<
LListBase
,
T
>::
operator
!=
(
...
...
src/OpenFOAM/containers/LinkedLists/accessTypes/UILList/UILList.H
View file @
0db8ff34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -380,7 +380,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "UILList.C"
#
include
"UILList.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment