Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

SimpleOutput.hpp

Go to the documentation of this file.
00001 #ifndef SimpleOutput_HPP
00002 #define SimpleOutput_HPP
00003 
00008 #include <iterator>
00009 #include "io/StreamRepr.hpp"  
00010 #include "io/output/OutputBase.hpp"  
00011 
00021 class SimpleOutput : public OutputBase<StreamRepr>
00022 {
00023    public:
00024 
00025       typedef OutputBase<StreamRepr>::params_t params_t;
00026 
00027       SimpleOutput(const params_t* par) : 
00028          OutputBase<StreamRepr>(par) {}
00029 
00030       static bool DINLINE isDFO()
00031       {
00032          return false;
00033       }  
00034 
00035 
00036       template <typename InputIterator> void writeItemsetAndCounter(
00037          InputIterator first, InputIterator last, 
00038          counter_t support )
00039       {
00040          std::copy( first, last, 
00041                     std::ostream_iterator<item_t>(output_stream, " "));
00042          output_stream<<'('<<support<<")\n";
00043       }
00044 };
00045 
00046 #endif

Generated on Sun Sep 17 17:50:39 2006 for FIM environment by  doxygen 1.4.4