Go to the documentation of this file.
38 #ifndef PointIndexHit_H
39 #define PointIndexHit_H
123 <<
"requested a hit point for a miss"
136 <<
"requested a miss point for a hit"
210 reinterpret_cast<const char*
>(&pHit),
216 os.
check(
"Ostream& operator<<(Ostream&, const PointIndexHit&)");
231 reinterpret_cast<char*
>(&pHit),
237 is.
check(
"Istream& operator>>(Istream&, PointIndexHit&)");
streamFormat format() const
Return current stream format.
label index() const
Return index.
void setIndex(const label index)
PointIndexHit(Istream &is)
Construct from Istream.
Point hitPoint_
Point of hit; invalid for misses.
friend Istream & operator>>(Istream &is, PointIndexHit &pHit)
bool hit() const
Is there a hit.
bool operator!=(const PointIndexHit &rhs) const
label index_
Label of face hit.
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)....
virtual Ostream & write(const token &)=0
Write next token to stream.
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.
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.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
virtual Istream & read(token &)=0
Return next token from stream.