Go to the documentation of this file.
40 #ifndef PointIndexHit_H
41 #define PointIndexHit_H
125 <<
"requested a hit point for a miss"
138 <<
"requested a miss point for a hit"
181 && index_ == rhs.
index();
212 reinterpret_cast<const char*
>(&pHit),
226 return is >> pHit.hit_ >> pHit.hitPoint_ >> pHit.index_;
236 reinterpret_cast<char*
>(&pHit),
label index() const
Return index.
void setIndex(const label index)
static constexpr const zero Zero
Global zero.
PointIndexHit(Istream &is)
Construct from Istream.
friend Istream & operator>>(Istream &is, PointIndexHit &pHit)
bool hit() const
Is there a hit.
streamFormat format() const noexcept
Get the current stream format.
bool operator!=(const PointIndexHit &rhs) const
friend Ostream & operator<<(Ostream &os, const PointIndexHit &pHit)
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
const Point & rawPoint() const
Return point with no checking.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const Point & hitPoint() const
Return hit point.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
PointIndexHit(const Point &p)
Construct from point. Hit and distance set later.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
errorManip< error > abort(error &err)
void setPoint(const Point &p)
const Point & missPoint() const
Return miss point.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool operator==(const PointIndexHit &rhs) const
PointIndexHit(const bool success, const Point &p, const label index)
Construct from components.
PointIndexHit()
Construct null.
virtual Istream & read(token &)=0
Return next token from stream.