Commit c0766ce8 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: consistent '// End namespace' markers

parent a9fbaa4b
......@@ -64,7 +64,7 @@ public:
using List<string>::List;
};
} // end namespace Foam
} // End namespace Foam
using namespace Foam;
......
......@@ -50,7 +50,7 @@ namespace Foam
// Wrong, but interesting to test
// template<> struct contiguous<Pair<word>> : std::true_type {};
} // end namespace Foam
} // End namespace Foam
using namespace Foam;
......
......@@ -80,8 +80,8 @@ bool writeCloudField
);
} // namespace ensightCloud
} // namespace Foam
} // End namespace ensightCloud
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -72,8 +72,8 @@ bool writeCloudField
);
} // namespace ensightSerialCloud
} // namespace Foam
} // End namespace ensightSerialCloud
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -35,7 +35,7 @@ namespace
constexpr int factorMicro = (1000000);
constexpr int factorMicro2 = (500000);
} // end of anonymous
} // End anonymous namespace
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
......
......@@ -76,7 +76,7 @@ addstopAtWriteNowSignalToOpt addstopAtWriteNowSignalToOpt_
"stopAtWriteNowSignal"
);
} // end of namespace Foam
} // End namespace Foam
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
......
......@@ -74,7 +74,7 @@ public:
addwriteNowSignalToOpt addwriteNowSignalToOpt_("writeNowSignal");
} // end of namespace Foam
} // End namespace Foam
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
......
......@@ -85,7 +85,7 @@ protected:
};
} // end namespace Detail
} // End namespace Detail
/*---------------------------------------------------------------------------*\
......
......@@ -87,7 +87,7 @@ protected:
};
} // end namespace Detail
} // End namespace Detail
/*---------------------------------------------------------------------------*\
......
......@@ -99,7 +99,7 @@ public:
}
};
} // end of namespace Detail
} // End namespace Detail
/*---------------------------------------------------------------------------*\
......
......@@ -170,7 +170,7 @@ public:
};
} // end of namespace Detail
} // End namespace Detail
/*---------------------------------------------------------------------------*\
......
......@@ -121,7 +121,7 @@ public:
}
};
} // end namespace Detail
} // End namespace Detail
/*---------------------------------------------------------------------------*\
......
......@@ -192,7 +192,7 @@ public:
}
};
} // end of namespace Detail
} // End namespace Detail
/*---------------------------------------------------------------------------*\
......
......@@ -361,7 +361,7 @@ public:
}
};
} // end of namespace Detail
} // End namespace Detail
/*---------------------------------------------------------------------------*\
......
......@@ -191,7 +191,7 @@ public:
}
};
} // end of namespace Detail
} // End namespace Detail
/*---------------------------------------------------------------------------*\
......
......@@ -164,7 +164,7 @@ public:
}
};
} // end of namespace Detail
} // End namespace Detail
/*---------------------------------------------------------------------------*\
......
......@@ -44,7 +44,7 @@ namespace
<< " " << msg << std::endl;
}
} // end of anonymous namespace
} // End anonymous namespace
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
......
......@@ -43,7 +43,7 @@ SourceFiles
namespace Foam
{
// Forward declaration of friend functions and operators
// 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 lists
//- Null constructor, with index=-1 and no objects
inline objectMap();
//- Construct from components
inline objectMap(const label index, const labelList& 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&);
};
......
......@@ -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 labelList& 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
// ************************************************************************* //
......@@ -165,7 +165,7 @@ static void expandLeading(std::string& s)
}
}
} // end of namespace Foam
} // End namespace Foam
//! \cond fileScope
......
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