mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
autoPtr gets "empty()" method that can be used instead of "! ...valid()"
This commit is contained in:
@ -30,12 +30,9 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
void edgeMesh::calcPointEdges() const
|
||||
void Foam::edgeMesh::calcPointEdges() const
|
||||
{
|
||||
if (pointEdgesPtr_.valid())
|
||||
{
|
||||
@ -81,7 +78,7 @@ void edgeMesh::calcPointEdges() const
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// construct from components
|
||||
edgeMesh::edgeMesh(const pointField& points, const edgeList& edges)
|
||||
Foam::edgeMesh::edgeMesh(const pointField& points, const edgeList& edges)
|
||||
:
|
||||
points_(points),
|
||||
edges_(edges)
|
||||
@ -89,7 +86,7 @@ edgeMesh::edgeMesh(const pointField& points, const edgeList& edges)
|
||||
|
||||
|
||||
// construct as copy
|
||||
edgeMesh::edgeMesh(const edgeMesh& em)
|
||||
Foam::edgeMesh::edgeMesh(const edgeMesh& em)
|
||||
:
|
||||
points_(em.points_),
|
||||
edges_(em.edges_),
|
||||
@ -99,7 +96,7 @@ edgeMesh::edgeMesh(const edgeMesh& em)
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
label edgeMesh::regions(labelList& edgeRegion) const
|
||||
Foam::label Foam::edgeMesh::regions(labelList& edgeRegion) const
|
||||
{
|
||||
edgeRegion.setSize(edges_.size());
|
||||
edgeRegion = -1;
|
||||
@ -165,7 +162,7 @@ label edgeMesh::regions(labelList& edgeRegion) const
|
||||
}
|
||||
|
||||
|
||||
void edgeMesh::mergePoints(const scalar mergeDist)
|
||||
void Foam::edgeMesh::mergePoints(const scalar mergeDist)
|
||||
{
|
||||
pointField newPoints;
|
||||
labelList pointMap;
|
||||
@ -245,7 +242,7 @@ void edgeMesh::mergePoints(const scalar mergeDist)
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
void edgeMesh::operator=(const edgeMesh& rhs)
|
||||
void Foam::edgeMesh::operator=(const edgeMesh& rhs)
|
||||
{
|
||||
points_ = rhs.points_;
|
||||
edges_ = rhs.edges_;
|
||||
@ -253,8 +250,4 @@ void edgeMesh::operator=(const edgeMesh& rhs)
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user