Ptv.cpp File Reference

#include "Ptv.h"
#include <iostream>
#include <math.h>

Go to the source code of this file.

Functions

ostream & operator<< (ostream &os, const Ptv &p)


Function Documentation

ostream& operator<< ( ostream &  os,
const Ptv p 
)

Definition at line 198 of file Ptv.cpp.

References Ptv::size().

00199 {
00200         if (p.size() >= 1)
00201         {
00202                 os <<"[";
00203                 for (unsigned int i=0; i< p.size()-1; i++)
00204                 {
00205                         os <<p[i]<<",";
00206                 }
00207                 os <<p[p.size()-1]<<"]";
00208         }
00209         else
00210         {
00211                 os <<"Ptv not created properly"<<endl;
00212         }
00213         return os;
00214 }


Generated on Mon Aug 31 16:16:49 2009 for SyFi by  doxygen 1.5.9