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