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

Go to the source code of this file.

Classes

class  LineS3< FT >
 

Functions

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

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const LineS3< FT > &  l 
)

Definition at line 200 of file LineS3.h.

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

201 {
202  switch(os.iword(IO::mode))
203  {
204  case IO::ASCII :
205  return os << l.point(0) << ' ' << l.point(1);
206  case IO::BINARY :
207  return os << l.point(0) << l.point(1);
208  default:
209  return os << "LineS3(" << l.point(0) << ", " << l.point(1) << ")";
210  }
211 }
Definition: io.h:64
PointS3< FT > point() const
Definition: LineS3.h:145
static int mode
Definition: io.h:63
Definition: io.h:64
std::istream& operator>> ( std::istream &  is,
LineS3< FT > &  l 
)

Definition at line 217 of file LineS3.h.

References q.

218 {
219  PointS3<FT> p, q;
220  is >> p >> q;
221  l = LineS3<FT>(p, q);
222  return is;
223 }
NT q
Definition: LineS3.h:59