STYLE: simplify Random constructors

COMP: use generated methods in a few more places
This commit is contained in:
Mark Olesen
2020-01-21 12:12:44 +01:00
parent d7c18a328c
commit ee96dba0cf
9 changed files with 64 additions and 70 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2012-2016 OpenFOAM Foundation
Copyright (C) 2019 OpenCFD Ltd.
Copyright (C) 2019-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -107,7 +107,7 @@ class indexedVertex
public Foam::indexedVertexEnum,
public Vb
{
// Private data
// Private Data
//- Type of pair-point
vertexType type_;
@ -144,6 +144,13 @@ public:
typedef indexedVertex<Gt,Vb2> Other;
};
// Generated Methods
//- Copy construct
indexedVertex(const indexedVertex&) = default;
// Constructors
inline indexedVertex();
@ -261,6 +268,10 @@ public:
//- Fix the vertex so that it can't be moved
inline bool& fixed();
// Member Operators
//- Copy assignment
inline void operator=(const indexedVertex& rhs)
{
Vb::operator=(rhs);
@ -291,10 +302,9 @@ public:
}
// Info
// IOstream Operators
//- Return info proxy.
// Used to print indexedVertex information to a stream
//- Info proxy, to print information to a stream
Foam::InfoProxy<indexedVertex<Gt, Vb>> info() const
{
return *this;