Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

PxxStream.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (c) 2003-2004, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Frank Seinstra <fjseins@wins.uva.nl>
00007  */
00008 
00009 #ifndef __PxxStream_h_
00010 #define __PxxStream_h_
00011 
00012 
00013 #include <iostream>
00014 #include <strstream>
00015 //#include <iomanip.h>
00016 #include "Core/Array/Pattern/PxSystem.h"
00017 
00018 namespace Impala
00019 {
00020 namespace Core
00021 {
00022 namespace Array
00023 {
00024 namespace Pattern
00025 {
00026 
00027 
00028 /**********************************************************************
00029  *** Parallel Stream Definitions - must be changed/extended/tested! ***
00030  **********************************************************************/
00031 
00032 #define PX_ENDL             std::endl
00033 #define PX_ENDS             std::ends
00034 
00035 #define PX_CIN              if (PxMyCPU()==PxInCPU()) std::cout
00036 #define PX_CIN_ON(cpu)      if (PxMyCPU()==cpu) std::cout
00037 #define PX_CIN_ON_ALL       std::cout
00038 
00039 #define PX_COUT             if (PxMyCPU()==PxOutCPU()) std::cout
00040 #define PX_COUT_ON(cpu)     if (PxMyCPU()==cpu) std::cout
00041 #define PX_COUT_ON_ALL      std::cout
00042 
00043 #define PX_CERR             if (PxMyCPU()==PxOutCPU()) std::cerr
00044 #define PX_CERR_ON(cpu)     if (PxMyCPU()==cpu) std::cerr
00045 #define PX_CERR_ON_ALL      std::cerr
00046 
00047 #define PX_SETW             std::setw
00048 #define PX_ISTREAM          std::istream
00049 #define PX_OSTREAM          std::ostream
00050 #define PX_IFSTREAM         std::ifstream
00051 #define PX_OFSTREAM         std::ofstream
00052 #define PX_OSTRSTREAM       std::ostrstream
00053 #define PX_OSTRINGSTREAM    std::ostringstream
00054 
00055 
00056 } // namespace Pattern
00057 } // namespace Array
00058 } // namespace Core
00059 } // namespace Impala
00060 
00061 #endif /* __PxxStream_h_ */

Generated on Fri Mar 19 09:30:52 2010 for ImpalaSrc by  doxygen 1.5.1