QCPoint.cpp

Go to the documentation of this file.
00001 //*****************************************************************************//
00002 //                                                                             //
00003 //   Copyright (c) 2001                                                        //
00004 //      INRIA                                                                  //
00005 //      54600 VILLERS LES NANCY                                                //
00006 //      France                                                                 //
00007 //                                                                             //
00008 //*****************************************************************************//
00009 //                                                                             //
00010 //               *** NOTICE OF PROPRIETARY INFORMATION ***                     //
00011 //                                                                             //
00012 // The information contained in this file is considered proprietary and the    //
00013 // exclusive property of  INRIA. This information may not be disclosed,        //
00014 // duplicated or used, in whole or in part, for  any purpose  whatsoever       //
00015 // without express written authorization from INRIA                            //
00016 //                                                                             //
00017 //*****************************************************************************//
00018 
00019 
00020 #include <iomanip>
00021 
00022 #include "QCPoint.hpp"
00023 
00024 #define   POINT_PREC     8
00025 #define   POINT_WIDTH   13
00026 
00027 
00031 template <int dim>
00032 ostream& operator << (ostream& os, const QCPoint<dim>& p) {
00033   os << "(";
00034   for (int i=0; i<dim; i++) {
00035     os << (i>0? ", " : "") 
00036        << setprecision(POINT_PREC) 
00037        << setw(POINT_WIDTH) << p[i];
00038   }
00039   os << ")";
00040   
00041   return os;
00042 }
00043 
00044 
00048 template
00049 ostream& operator << (ostream& os, const QCPoint<3>& p);
00050 

Generated on Sat Jan 28 21:07:30 2006 for QC++ by  doxygen 1.4.4