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

Go to the source code of this file.

Classes

class  DirectionS2< FT >
 

Functions

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

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DirectionS2< FT > &  d 
)

Definition at line 230 of file DirectionS2.h.

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

231 {
232  VectorS2<FT> v = d.vector();
233  switch(os.iword(IO::mode)) {
234  case IO::ASCII :
235  return os << v.x() << ' ' << v.y();
236  case IO::BINARY :
237  write(os, v.x());
238  write(os, v.y());
239  return os;
240  default:
241  return os << "DirectionS2(" << v.x() << ", " << v.y() << ')';
242  }
243 }
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
Definition: roccomf90.h:20
Definition: io.h:64
void write(std::ostream &os, const T &t, const io_Read_write &)
Definition: io.h:96
VectorS2< FT > vector() const
Definition: DirectionS2.h:177
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,
DirectionS2< FT > &  p 
)

Definition at line 250 of file DirectionS2.h.

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

251 {
252  FT x, y;
253  switch(is.iword(IO::mode)) {
254  case IO::ASCII :
255  is >> x >> y;
256  break;
257  case IO::BINARY :
258  read(is, x);
259  read(is, y);
260  break;
261  default:
262  std::cerr << std::endl << "Stream must be in ascii or binary mode" << std::endl;
263  break;
264  }
265  p = DirectionS2<FT>(x, y);
266  return is;
267 }
void int int REAL REAL * y
Definition: read.cpp:74
Definition: io.h:64
void int int REAL * x
Definition: read.cpp:74
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: