OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

pointIndexHit Class Reference

Collaboration diagram for pointIndexHit:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 61 of file pointIndexHit.H.


Public Member Functions

 pointIndexHit (const bool success, const point &p, const label index)
 Construct from components.
 pointIndexHit (const point &p)
 Construct from point. Hit and distance set later.
 pointIndexHit ()
 Construct null.
bool hit () const
 Is there a hit.
label index () const
 Return index.
const point & hitPoint () const
 Return hit point.
const point & missPoint () const
 Return miss point.
const point & rawPoint () const
 Return point with no checking.
void setHit ()
void setMiss ()
void setPoint (const point &p)
void setIndex (const label index)
bool operator== (const pointIndexHit &rhs) const
bool operator!= (const pointIndexHit &rhs) const
void write (Ostream &os)

Friends

Ostream & operator<< (Ostream &os, const pointIndexHit &pHit)
Istream & operator>> (Istream &is, pointIndexHit &pHit)

Constructor & Destructor Documentation

pointIndexHit ( const bool  success,
const point &  p,
const label  index 
) [inline]

Construct from components.

Definition at line 80 of file pointIndexHit.H.

pointIndexHit ( const point &  p  )  [inline]

Construct from point. Hit and distance set later.

Definition at line 88 of file pointIndexHit.H.

pointIndexHit (  )  [inline]

Construct null.

Definition at line 96 of file pointIndexHit.H.


Member Function Documentation

bool hit (  )  const [inline]

Is there a hit.

Definition at line 107 of file pointIndexHit.H.

label index (  )  const [inline]

Return index.

Definition at line 113 of file pointIndexHit.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Referenced by pointIndexHit::operator!=(), and pointIndexHit::write().

Here is the call graph for this function:

Here is the caller graph for this function:

const point& hitPoint (  )  const [inline]

Return hit point.

Definition at line 119 of file pointIndexHit.H.

Referenced by pointIndexHit::operator!=().

Here is the caller graph for this function:

const point& missPoint (  )  const [inline]

Return miss point.

Definition at line 132 of file pointIndexHit.H.

Referenced by pointIndexHit::write().

Here is the caller graph for this function:

const point& rawPoint (  )  const [inline]

Return point with no checking.

Definition at line 145 of file pointIndexHit.H.

void setHit (  )  [inline]

Definition at line 150 of file pointIndexHit.H.

void setMiss (  )  [inline]

Definition at line 155 of file pointIndexHit.H.

void setPoint ( const point &  p  )  [inline]

Definition at line 160 of file pointIndexHit.H.

void setIndex ( const label  index  )  [inline]

Definition at line 165 of file pointIndexHit.H.

bool operator== ( const pointIndexHit &  rhs  )  const [inline]

Definition at line 170 of file pointIndexHit.H.

bool operator!= ( const pointIndexHit &  rhs  )  const [inline]

Definition at line 178 of file pointIndexHit.H.

References pointIndexHit::hitPoint(), and pointIndexHit::index().

Here is the call graph for this function:

void write ( Ostream &  os  )  [inline]

Definition at line 183 of file pointIndexHit.H.

References pointIndexHit::index(), and pointIndexHit::missPoint().

Here is the call graph for this function:


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  os,
const pointIndexHit &  pHit 
) [friend]

Definition at line 195 of file pointIndexHit.H.

Istream& operator>> ( Istream &  is,
pointIndexHit &  pHit 
) [friend]

Definition at line 201 of file pointIndexHit.H.


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd