Skip to content
GitLab
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
c0766ce8
Commit
c0766ce8
authored
Apr 27, 2018
by
Mark OLESEN
Browse files
STYLE: consistent '// End namespace' markers
parent
a9fbaa4b
Changes
44
Hide whitespace changes
Inline
Side-by-side
applications/test/List/Test-List.C
View file @
c0766ce8
...
...
@@ -64,7 +64,7 @@ public:
using
List
<
string
>::
List
;
};
}
//
e
nd namespace Foam
}
//
E
nd namespace Foam
using
namespace
Foam
;
...
...
applications/test/contiguous/Test-contiguous.C
View file @
c0766ce8
...
...
@@ -50,7 +50,7 @@ namespace Foam
// Wrong, but interesting to test
// template<> struct contiguous<Pair<word>> : std::true_type {};
}
//
e
nd namespace Foam
}
//
E
nd namespace Foam
using
namespace
Foam
;
...
...
applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightOutputCloud.H
View file @
c0766ce8
...
...
@@ -80,8 +80,8 @@ bool writeCloudField
);
}
// namespace ensightCloud
}
// namespace Foam
}
//
End
namespace ensightCloud
}
//
End
namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
applications/utilities/postProcessing/dataConversion/foamToEnsightParts/ensightOutputSerialCloud.H
View file @
c0766ce8
...
...
@@ -72,8 +72,8 @@ bool writeCloudField
);
}
// namespace ensightSerialCloud
}
// namespace Foam
}
//
End
namespace ensightSerialCloud
}
//
End
namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OSspecific/POSIX/clockValue/clockValue.C
View file @
c0766ce8
...
...
@@ -35,7 +35,7 @@ namespace
constexpr
int
factorMicro
=
(
1000000
);
constexpr
int
factorMicro2
=
(
500000
);
}
//
e
nd
of
anonymous
}
//
E
nd anonymous
namespace
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
...
...
src/OSspecific/POSIX/signals/sigStopAtWriteNow.C
View file @
c0766ce8
...
...
@@ -76,7 +76,7 @@ addstopAtWriteNowSignalToOpt addstopAtWriteNowSignalToOpt_
"stopAtWriteNowSignal"
);
}
//
e
nd
of
namespace Foam
}
//
E
nd namespace Foam
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
...
...
src/OSspecific/POSIX/signals/sigWriteNow.C
View file @
c0766ce8
...
...
@@ -74,7 +74,7 @@ public:
addwriteNowSignalToOpt
addwriteNowSignalToOpt_
(
"writeNowSignal"
);
}
//
e
nd
of
namespace Foam
}
//
E
nd namespace Foam
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
...
...
src/OpenFOAM/db/IOstreams/Fstreams/IFstream.H
View file @
c0766ce8
...
...
@@ -85,7 +85,7 @@ protected:
};
}
//
e
nd namespace Detail
}
//
E
nd namespace Detail
/*---------------------------------------------------------------------------*\
...
...
src/OpenFOAM/db/IOstreams/Fstreams/OFstream.H
View file @
c0766ce8
...
...
@@ -87,7 +87,7 @@ protected:
};
}
//
e
nd namespace Detail
}
//
E
nd namespace Detail
/*---------------------------------------------------------------------------*\
...
...
src/OpenFOAM/db/IOstreams/StringStreams/StringStream.H
View file @
c0766ce8
...
...
@@ -99,7 +99,7 @@ public:
}
};
}
//
e
nd
of
namespace Detail
}
//
E
nd namespace Detail
/*---------------------------------------------------------------------------*\
...
...
src/OpenFOAM/db/IOstreams/hashes/OSHA1stream.H
View file @
c0766ce8
...
...
@@ -170,7 +170,7 @@ public:
};
}
//
e
nd
of
namespace Detail
}
//
E
nd namespace Detail
/*---------------------------------------------------------------------------*\
...
...
src/OpenFOAM/db/IOstreams/memory/IListStream.H
View file @
c0766ce8
...
...
@@ -121,7 +121,7 @@ public:
}
};
}
//
e
nd namespace Detail
}
//
E
nd namespace Detail
/*---------------------------------------------------------------------------*\
...
...
src/OpenFOAM/db/IOstreams/memory/OCountStream.H
View file @
c0766ce8
...
...
@@ -192,7 +192,7 @@ public:
}
};
}
//
e
nd
of
namespace Detail
}
//
E
nd namespace Detail
/*---------------------------------------------------------------------------*\
...
...
src/OpenFOAM/db/IOstreams/memory/OListStream.H
View file @
c0766ce8
...
...
@@ -361,7 +361,7 @@ public:
}
};
}
//
e
nd
of
namespace Detail
}
//
E
nd namespace Detail
/*---------------------------------------------------------------------------*\
...
...
src/OpenFOAM/db/IOstreams/memory/UIListStream.H
View file @
c0766ce8
...
...
@@ -191,7 +191,7 @@ public:
}
};
}
//
e
nd
of
namespace Detail
}
//
E
nd namespace Detail
/*---------------------------------------------------------------------------*\
...
...
src/OpenFOAM/db/IOstreams/memory/UOListStream.H
View file @
c0766ce8
...
...
@@ -164,7 +164,7 @@ public:
}
};
}
//
e
nd
of
namespace Detail
}
//
E
nd namespace Detail
/*---------------------------------------------------------------------------*\
...
...
src/OpenFOAM/db/dictionary/primitiveEntry/primitiveEntryIO.C
View file @
c0766ce8
...
...
@@ -44,7 +44,7 @@ namespace
<<
" "
<<
msg
<<
std
::
endl
;
}
}
//
e
nd
of
anonymous namespace
}
//
E
nd anonymous namespace
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
...
...
src/OpenFOAM/meshes/polyMesh/mapPolyMesh/objectMap/objectMap.H
View file @
c0766ce8
...
...
@@ -43,7 +43,7 @@ SourceFiles
namespace
Foam
{
// Forward declaration
of friend functions and operator
s
// Forward declarations
class
objectMap
;
inline
bool
operator
==
(
const
objectMap
&
a
,
const
objectMap
&
b
);
...
...
@@ -53,7 +53,7 @@ inline Istream& operator>>(Istream&, objectMap&);
/*---------------------------------------------------------------------------*\
Class objectMap Declaration
Class objectMap Declaration
\*---------------------------------------------------------------------------*/
class
objectMap
...
...
@@ -71,14 +71,14 @@ public:
// Constructors
//- Null constructor
for lis
ts
//- Null constructor
, with index=-1 and no objec
ts
inline
objectMap
();
//- Construct from components
inline
objectMap
(
const
label
index
,
const
label
List
&
master
);
inline
objectMap
(
const
label
index
,
const
UList
<
label
>
&
master
);
//- Construct from Istream
inline
objectMap
(
Istream
&
);
inline
objectMap
(
Istream
&
is
);
// Member Functions
...
...
@@ -101,7 +101,6 @@ public:
// IOstream Operators
friend
Ostream
&
operator
<<
(
Ostream
&
,
const
objectMap
&
);
friend
Istream
&
operator
>>
(
Istream
&
,
objectMap
&
);
};
...
...
src/OpenFOAM/meshes/polyMesh/mapPolyMesh/objectMap/objectMapI.H
View file @
c0766ce8
...
...
@@ -21,68 +21,58 @@ License
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Description
\*---------------------------------------------------------------------------*/
#include
"IOstreams.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace
Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
inline
objectMap
::
objectMap
()
inline
Foam
::
objectMap
::
objectMap
()
:
index_
(
-
1
),
masterObjects_
(
0
)
masterObjects_
()
{}
inline
objectMap
::
objectMap
(
const
label
index
,
const
label
List
&
master
)
inline
Foam
::
objectMap
::
objectMap
(
const
label
index
,
const
UList
<
label
>
&
master
)
:
index_
(
index
),
masterObjects_
(
master
)
{}
inline
objectMap
::
objectMap
(
Istream
&
is
)
inline
Foam
::
objectMap
::
objectMap
(
Istream
&
is
)
{
// Read beginning of objectMap
is
.
readBegin
(
"objectMap"
);
is
>>
index_
>>
static_cast
<
labelList
&>
(
masterObjects_
);
// Read master of objectMap
is
.
readEnd
(
"objectMap"
);
is
.
check
(
FUNCTION_NAME
);
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
label
&
objectMap
::
index
()
Foam
::
label
&
Foam
::
objectMap
::
index
()
{
return
index_
;
}
inline
label
objectMap
::
index
()
const
inline
Foam
::
label
Foam
::
objectMap
::
index
()
const
{
return
index_
;
}
inline
labelList
&
objectMap
::
masterObjects
()
inline
Foam
::
labelList
&
Foam
::
objectMap
::
masterObjects
()
{
return
masterObjects_
;
}
inline
const
labelList
&
objectMap
::
masterObjects
()
const
inline
const
Foam
::
labelList
&
Foam
::
objectMap
::
masterObjects
()
const
{
return
masterObjects_
;
}
...
...
@@ -90,7 +80,7 @@ inline const labelList& objectMap::masterObjects() const
// * * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * //
inline
bool
operator
==
(
const
objectMap
&
a
,
const
objectMap
&
b
)
inline
bool
Foam
::
operator
==
(
const
objectMap
&
a
,
const
objectMap
&
b
)
{
return
(
...
...
@@ -99,15 +89,15 @@ inline bool operator==(const objectMap& a, const objectMap& b)
}
inline
bool
operator
!=
(
const
objectMap
&
a
,
const
objectMap
&
b
)
inline
bool
Foam
::
operator
!=
(
const
objectMap
&
a
,
const
objectMap
&
b
)
{
return
(
!
(
a
==
b
)
)
;
return
!
(
a
==
b
);
}
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
inline
Ostream
&
operator
<<
(
Ostream
&
os
,
const
objectMap
&
a
)
inline
Foam
::
Ostream
&
Foam
::
operator
<<
(
Ostream
&
os
,
const
objectMap
&
a
)
{
os
<<
token
::
BEGIN_LIST
<<
a
.
index_
<<
token
::
SPACE
...
...
@@ -119,10 +109,10 @@ inline Ostream& operator<<(Ostream& os, const objectMap& a)
}
inline
Istream
&
operator
>>
(
Istream
&
is
,
objectMap
&
a
)
inline
Foam
::
Istream
&
Foam
::
operator
>>
(
Istream
&
is
,
objectMap
&
a
)
{
is
.
readBegin
(
"objectMap"
);
is
>>
a
.
index_
>>
a
.
masterObjects_
;
is
>>
a
.
index_
>>
a
.
masterObjects_
;
is
.
readEnd
(
"objectMap"
);
is
.
check
(
FUNCTION_NAME
);
...
...
@@ -130,8 +120,4 @@ inline Istream& operator>>(Istream& is, objectMap& a)
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
}
// Master namespace Foam
// ************************************************************************* //
src/OpenFOAM/primitives/strings/stringOps/stringOps.C
View file @
c0766ce8
...
...
@@ -165,7 +165,7 @@ static void expandLeading(std::string& s)
}
}
}
//
e
nd
of
namespace Foam
}
//
E
nd namespace Foam
//! \cond fileScope
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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