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

Go to the source code of this file.

Classes

class  VectorS2< FT >
 

Functions

template<class _RR >
VectorS2< _RR > operator* (const _RR &c, const VectorS2< _RR > &v)
 
template<class _RR >
std::ostream & operator<< (std::ostream &os, const VectorS2< _RR > &v)
 
template<class _RR >
std::istream & operator>> (std::istream &is, VectorS2< _RR > &v)
 

Function Documentation

VectorS2<_RR> operator* ( const _RR &  c,
const VectorS2< _RR > &  v 
)
inline

Definition at line 119 of file include/CGAL/SimpleCartesian/VectorS2.h.

References VectorS2< FT >::x(), and VectorS2< FT >::y().

119  {
120  return VectorS2<_RR>( c* v.x(), c * v.y());
121 }

Here is the call graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const VectorS2< _RR > &  v 
)

Definition at line 124 of file include/CGAL/SimpleCartesian/VectorS2.h.

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

124  {
125  switch(os.iword(IO::mode)) {
126  case IO::ASCII :
127  return os << v.x() << ' ' << v.y();
128  case IO::BINARY :
129  write(os, v.x());
130  write(os, v.y());
131  return os;
132  default:
133  return os << "VectorS2(" << v.x() << ", " << v.y() << ')';
134  }
135 }
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

Here is the call graph for this function:

std::istream& operator>> ( std::istream &  is,
VectorS2< _RR > &  v 
)

Definition at line 138 of file include/CGAL/SimpleCartesian/VectorS2.h.

References IO::ASCII, IO::BINARY, IO::mode, read(), VectorS2< FT >::x(), and VectorS2< FT >::y().

138  {
139  switch(is.iword(IO::mode)) {
140  case IO::ASCII :
141  is >> v.x() >> v.y();
142  break;
143  case IO::BINARY :
144  read(is, v.x());
145  read(is, v.y());
146  break;
147  default:
148  std::cerr << "\nStream must be in ascii or binary mode\n";
149  break;
150  }
151  return is;
152 }
Definition: io.h:64
static int mode
Definition: io.h:63
Definition: io.h:64
void read(std::istream &is, T &t, const io_Read_write &)
Definition: io.h:132

Here is the call graph for this function: