This class describes a combination of target object index and success flag. Behaves somewhat like std::optional. More...
Public Member Functions | |
constexpr | objectHit () noexcept |
objectHit (const bool success, const label index) noexcept | |
objectHit (Istream &is) | |
bool | hit () const noexcept |
label | index () const noexcept |
label | hitObject () const noexcept |
void | reset () noexcept |
void | setHit () noexcept |
void | setMiss () noexcept |
Friends | |
Ostream & | operator<< (Ostream &os, const objectHit &obj) |
This class describes a combination of target object index and success flag. Behaves somewhat like std::optional.
Definition at line 44 of file objectHit.H.
|
inlineconstexprnoexcept |
Definition at line 60 of file objectHit.H.
Definition at line 67 of file objectHit.H.
Definition at line 74 of file objectHit.H.
|
inlinenoexcept |
Definition at line 86 of file objectHit.H.
Referenced by Foam::operator==().
|
inlinenoexcept |
Definition at line 92 of file objectHit.H.
|
inlinenoexcept |
Definition at line 98 of file objectHit.H.
Referenced by Foam::operator==().
|
inlinenoexcept |
Definition at line 107 of file objectHit.H.
|
inlinenoexcept |
Definition at line 114 of file objectHit.H.
|
inlinenoexcept |
Definition at line 120 of file objectHit.H.
Definition at line 128 of file objectHit.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.