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

OutputBase.hpp

Go to the documentation of this file.
00001 
00017 #ifndef OutputBase_HPP
00018 #define OutputBase_HPP
00019 
00020 #include "common.hpp"  
00021 #include "io/FDRepr.hpp"  
00022 #include <iostream>  
00023 
00024 template <class FR = FDRepr>
00025 class OutputBase : public FR
00026 {
00027    public:
00028       typedef typename FR::params_t params_t;
00029 
00030       OutputBase(const params_t* par):FR(par) {}
00031 
00032       static bool DINLINE isDFO()
00033       {
00034          std::cerr<<"Error: using function isDFO"<<std::endl;
00035          return false;
00036       }  
00037 
00038 
00039 //===== Normal functions 
00040       
00051       template <typename InputIterator> void writeItemsetAndCounter(
00052          InputIterator first, InputIterator last, 
00053          counter_t support )
00054       {
00055          std::cerr<<"Error: using Normal function writeItemsetAndCounter"<<std::endl;
00056       }
00057 //===== End of Normal functions 
00058 
00059 //===== DFO functions
00061       void pushItem(item_t item)
00062       {
00063          std::cerr<<"Error: using DFO function pushItem"<<std::endl;
00064       }
00065 
00067       void write(counter_t support)
00068       {
00069          std::cerr<<"Error: using DFO function write"<<std::endl;
00070       }
00073       void pushItemWithWrite(item_t item, counter_t support)
00074       {
00075          std::cerr<<"Error: using DFO function pushItemWithWrite"<<std::endl;
00076       }
00077 
00081       void pushItemWithPrevSupport(item_t item)
00082       {
00083          std::cerr<<"Error: using DFO function pushItemWithPrevSupport"<<std::endl;
00084       }
00085 
00087       void popItem()
00088       {
00089          std::cerr<<"Error: using DFO function popItem"<<std::endl;
00090       }
00092       void popAll()
00093       {
00094          std::cerr<<"Error: using DFO function popAll"<<std::endl;
00095       }
00096 
00097 };
00098 
00099 #endif

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