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