Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
90c8c6d1
Commit
90c8c6d1
authored
7 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: add setHit/setMiss methods to objectHit
- consistency with PointHit and PointIndexHit
parent
37c61273
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/OpenFOAM/meshes/primitiveShapes/objectHit/PointHit.H
+4
-0
4 additions, 0 deletions
src/OpenFOAM/meshes/primitiveShapes/objectHit/PointHit.H
src/OpenFOAM/meshes/primitiveShapes/objectHit/objectHit.H
+16
-1
16 additions, 1 deletion
src/OpenFOAM/meshes/primitiveShapes/objectHit/objectHit.H
with
20 additions
and
1 deletion
src/OpenFOAM/meshes/primitiveShapes/objectHit/PointHit.H
+
4
−
0
View file @
90c8c6d1
...
@@ -117,6 +117,8 @@ public:
...
@@ -117,6 +117,8 @@ public:
// Member Functions
// Member Functions
// Access
//- Is there a hit
//- Is there a hit
bool
hit
()
const
bool
hit
()
const
{
{
...
@@ -167,6 +169,8 @@ public:
...
@@ -167,6 +169,8 @@ public:
return
eligibleMiss_
;
return
eligibleMiss_
;
}
}
// Edit
void
setHit
()
void
setHit
()
{
{
hit_
=
true
;
hit_
=
true
;
...
...
This diff is collapsed.
Click to expand it.
src/OpenFOAM/meshes/primitiveShapes/objectHit/objectHit.H
+
16
−
1
View file @
90c8c6d1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2017 OpenCFD Ltd.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
License
License
This file is part of OpenFOAM.
This file is part of OpenFOAM.
...
@@ -83,6 +83,8 @@ public:
...
@@ -83,6 +83,8 @@ public:
// Member Functions
// Member Functions
// Access
//- Is there a hit
//- Is there a hit
inline
bool
hit
()
const
inline
bool
hit
()
const
{
{
...
@@ -96,6 +98,19 @@ public:
...
@@ -96,6 +98,19 @@ public:
}
}
// Edit
void
setHit
()
{
hit_
=
true
;
}
void
setMiss
()
{
hit_
=
false
;
}
// Ostream operator
// Ostream operator
inline
friend
Ostream
&
operator
<<
(
Ostream
&
os
,
const
objectHit
&
obj
)
inline
friend
Ostream
&
operator
<<
(
Ostream
&
os
,
const
objectHit
&
obj
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment