Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Quartet.h

Go to the documentation of this file.
00001 #ifndef FASTSHOWER_QUARTET_H
00002 #define FASTSHOWER_QUARTET_H
00003 
00004 #ifndef STD_IOSTREAM_H
00005 #define STD_IOSTREAM_H
00006 #include <iostream>
00007 #endif
00008 
00010 
00011 namespace FastShower{
00012   template<class T>
00013     class Quartet{
00014     public:
00015     Quartet(){}
00016     Quartet(T p1, T p2, T p3, T p4): 
00017       first(p1), second(p2), third(p3), fourth(p4){}
00018     T first;
00019     T second;
00020     T third;
00021     T fourth;
00022   };
00023 
00024   template<class T>
00025     std::ostream& operator<<(std::ostream& out, const Quartet<T>& q){
00026     out
00027       <<q.first<<" "
00028       <<q.second<<" "
00029       <<q.third<<" "
00030       <<q.fourth<<" "
00031       <<endl;
00032     return out;
00033   }
00034 }//namespace
00035 
00036 #endif

Generated on Tue Mar 18 11:50:04 2003 for FastShowerUtils by doxygen1.3-rc1