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

Go to the source code of this file.

Classes

class  SegmentS3< FT >
 

Functions

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

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const SegmentS3< FT > &  s 
)

Definition at line 225 of file SegmentS3.h.

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

226 {
227  switch(os.iword(IO::mode)) {
228  case IO::ASCII :
229  return os << s.source() << ' ' << s.target();
230  case IO::BINARY :
231  return os << s.source() << s.target();
232  default:
233  return os << "SegmentS3(" << s.source() << ", " << s.target() << ")";
234  }
235 }
PointS3< FT > target() const
Definition: SegmentS3.h:130
Definition: io.h:64
PointS3< FT > source() const
Definition: SegmentS3.h:125
static int mode
Definition: io.h:63
Definition: io.h:64
std::istream& operator>> ( std::istream &  is,
SegmentS3< FT > &  s 
)

Definition at line 240 of file SegmentS3.h.

References q.

241 {
242  PointS3<FT> p, q;
243 
244  is >> p >> q;
245 
246  s = SegmentS3<FT>(p, q);
247  return is;
248 }
NT q