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

Go to the source code of this file.

Classes

class  DirectionS3< FT >
 

Functions

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

Function Documentation

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

Definition at line 202 of file DirectionS3.h.

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

203 {
204  VectorS3<FT> v = d.vector();
205  switch(os.iword(IO::mode)) {
206  case IO::ASCII :
207  return os << v.x() << ' ' << v.y() << ' ' << v.z();
208  case IO::BINARY :
209  write(os, v.x());
210  write(os, v.y());
211  write(os, v.z());
212  return os;
213  default:
214  os << "DirectionS3(" << v.x() << ", " << v.y() << ", " << v.z() << ")";
215  return os;
216  }
217 }
*********************************************************************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
static int mode
Definition: io.h:63
Definition: io.h:64
VectorS3< FT > vector() const
Definition: DirectionS3.h:71

Here is the call graph for this function:

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

Definition at line 222 of file DirectionS3.h.

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

223 {
224  FT x, y, z;
225  switch(is.iword(IO::mode)) {
226  case IO::ASCII :
227  is >> x >> y >> z;
228  break;
229  case IO::BINARY :
230  read(is, x);
231  read(is, y);
232  read(is, z);
233  break;
234  default:
235  CGAL_kernel_assertion_msg(false,"Stream must be in ascii or binary mode");
236  // throw ios_base::failure("Stream must be in ascii or binary mode");
237  break;
238  }
239  p = DirectionS3<FT>(x, y, z);
240  return is;
241 }
void int int REAL REAL * y
Definition: read.cpp:74
#define CGAL_kernel_assertion_msg(EX, MSG)
Definition: io.h:64
void int int int REAL REAL REAL * z
Definition: write.cpp:76
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: