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

Go to the source code of this file.

Classes

class  LineS2< FT >
 

Functions

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

Function Documentation

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

Definition at line 317 of file LineS2.h.

References IO::ASCII, IO::BINARY, IO::mode, and write().

318 {
319 
320  switch(os.iword(IO::mode)) {
321  case IO::ASCII :
322  return os << l.a() << ' ' << l.b() << ' ' << l.c();
323  case IO::BINARY :
324  write(os, l.a());
325  write(os, l.b());
326  write(os, l.c());
327  return os;
328  default:
329  return os << "LineS2(" << l.a() << ", " << l.b() << ", " << l.c() <<')';
330  }
331 }
FT b() const
Definition: LineS2.h:193
Definition: io.h:64
void write(std::ostream &os, const T &t, const io_Read_write &)
Definition: io.h:96
static int mode
Definition: io.h:63
Definition: io.h:64
FT a() const
Definition: LineS2.h:188
FT c() const
Definition: LineS2.h:198

Here is the call graph for this function:

std::istream& operator>> ( std::istream &  is,
LineS2< FT > &  p 
)

Definition at line 336 of file LineS2.h.

References IO::ASCII, IO::BINARY, IO::mode, and read().

337 {
338  FT a, b, c;
339  switch(is.iword(IO::mode)) {
340  case IO::ASCII :
341  is >> a >> b >> c;
342  break;
343  case IO::BINARY :
344  read(is, a);
345  read(is, b);
346  read(is, c);
347  break;
348  default:
349  std::cerr << "" << std::endl;
350  std::cerr << "Stream must be in ascii or binary mode" << std::endl;
351  break;
352  }
353  p = LineS2<FT>(a, b, c);
354  return is;
355 }
Definition: io.h:64
static int mode
Definition: io.h:63
Definition: io.h:64
Definition: LineS2.h:62
void read(std::istream &is, T &t, const io_Read_write &)
Definition: io.h:132

Here is the call graph for this function: