Go to the documentation of this file.
41 #ifndef PointIndexHit_H
42 #define PointIndexHit_H
55 template<
class Po
intType>
58 template<
class Po
intType>
65 template<
class Po
intType>
131 bool hit() const noexcept
137 label
index() const noexcept
160 <<
"Requested a hit point, but it was not hit"
172 <<
"Requested a miss point, but it was hit"
230 os << (hit_ ?
"hit:" :
"miss:")
231 << point_ <<
" index:" << index_;
243 && index_ == rhs.index_
244 && point_ == rhs.point_
251 return !(*
this == rhs);
269 reinterpret_cast<const char*
>(&pHit),
283 is >> pHit.hit_ >> pHit.point_ >> pHit.index_;
293 reinterpret_cast<char*
>(&pHit),
void setIndex(const label index) noexcept
static constexpr const zero Zero
PointIndexHit(Istream &is)
friend Istream & operator>>(Istream &is, PointIndexHit &pHit)
point_type & rawPoint() noexcept
streamFormat format() const noexcept
bool operator!=(const PointIndexHit &rhs) const
const point_type & missPoint() const
Istream & operator>>(Istream &, directionInfo &)
const point_type & hitPoint() const
Ostream & operator<<(Ostream &, const boundaryPatch &p)
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...
bool hit() const noexcept
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual bool check(const char *operation) const
const point_type & rawPoint() const noexcept
OBJstream os(runTime.globalPath()/outputName)
errorManip< error > abort(error &err)
void setPoint(const point_type &p)
@ ASCII
"ascii" (normal default)
#define FatalErrorInFunction
point_type & point() noexcept
label index() const noexcept
const point_type & point() const noexcept
void hitPoint(const point_type &p, const label index)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
PointIndexHit(const point_type &p)
bool operator==(const PointIndexHit &rhs) const
virtual Istream & read(token &)=0