Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RayS3.h File Reference
Include dependency graph for RayS3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RayS3< FT >
 

Functions

template<class FT >
std::ostream & operator<< (std::ostream &os, const RayS3< FT > &r)
 
template<class FT >
std::istream & operator>> (std::istream &is, RayS3< FT > &r)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const RayS3< FT > &  r 
)

Definition at line 223 of file RayS3.h.

References IO::ASCII, IO::BINARY, and IO::mode.

224 {
225  switch(os.iword(IO::mode))
226  {
227  case IO::ASCII :
228  return os << r.start() << ' ' << r.direction();
229  case IO::BINARY :
230  return os<< r.start() << r.direction();
231  default:
232  return os << "RayS3(" << r.start() << ", " << r.direction() << ")";
233  }
234 }
Definition: io.h:64
DirectionS3< FT > direction() const
Definition: RayS3.h:155
static int mode
Definition: io.h:63
Definition: io.h:64
PointS3< FT > start() const
Definition: RayS3.h:122
std::istream& operator>> ( std::istream &  is,
RayS3< FT > &  r 
)

Definition at line 240 of file RayS3.h.

References d.

241 {
242  PointS3<FT> p;
244 
245  is >> p >> d;
246 
247  r = RayS3<FT>(p, d);
248  return is;
249 }
const NT & d
Definition: RayS3.h:59