38 #ifndef PointIndexHit_H
39 #define PointIndexHit_H
123 <<
"requested a hit point for a miss"
136 <<
"requested a miss point for a hit"
179 && index_ == rhs.
index();
210 reinterpret_cast<const char*
>(&pHit),
216 os.
check(
"Ostream& operator<<(Ostream&, const PointIndexHit&)");
225 return is >> pHit.hit_ >> pHit.hitPoint_ >> pHit.index_;
231 reinterpret_cast<char*
>(&pHit),
237 is.
check(
"Istream& operator>>(Istream&, PointIndexHit&)");
streamFormat format() const
Return current stream format.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Istream & read(token &)=0
Return next token from stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & write(const char)=0
Write character.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
const Point & hitPoint() const
Return hit point.
void setPoint(const Point &p)
PointIndexHit()
Construct null.
const Point & rawPoint() const
Return point with no checking.
label index() const
Return index.
const Point & missPoint() const
Return miss point.
friend Ostream & operator<<(Ostream &os, const PointIndexHit &pHit)
bool operator==(const PointIndexHit &rhs) const
friend Istream & operator>>(Istream &is, PointIndexHit &pHit)
bool hit() const
Is there a hit.
void setIndex(const label index)
bool operator!=(const PointIndexHit &rhs) const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)