mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: add setHit/setMiss methods to objectHit
- consistency with PointHit and PointIndexHit
This commit is contained in:
@ -117,6 +117,8 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
// Access
|
||||
|
||||
//- Is there a hit
|
||||
bool hit() const
|
||||
{
|
||||
@ -167,6 +169,8 @@ public:
|
||||
return eligibleMiss_;
|
||||
}
|
||||
|
||||
// Edit
|
||||
|
||||
void setHit()
|
||||
{
|
||||
hit_ = true;
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -83,6 +83,8 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
// Access
|
||||
|
||||
//- Is there a hit
|
||||
inline bool hit() const
|
||||
{
|
||||
@ -96,6 +98,19 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Edit
|
||||
|
||||
void setHit()
|
||||
{
|
||||
hit_ = true;
|
||||
}
|
||||
|
||||
void setMiss()
|
||||
{
|
||||
hit_ = false;
|
||||
}
|
||||
|
||||
|
||||
// Ostream operator
|
||||
|
||||
inline friend Ostream& operator<<(Ostream& os, const objectHit& obj)
|
||||
|
||||
Reference in New Issue
Block a user