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

bodon/SupportCounterInterface.hpp

Go to the documentation of this file.
00001 
00010 #ifndef SupportCounterInterface_HPP
00011 #define SupportCounterInterface_HPP
00012 
00013 #include "common.hpp"
00014 #include <vector>
00015 
00016 
00017 namespace Bodon
00018 {
00039    template <class MAIN_DATA_STRUCTURE, class SEC_DATA_STRUCTURE = Dummy>
00040    class SupportCounterInterface
00041    {
00042       public:
00043          SupportCounterInterface( ){}
00044 
00054          void updateCounters(
00055             MAIN_DATA_STRUCTURE& main_trie, const std::vector<item_t>& transaction,
00056             item_t candidate_size, const counter_t counter_incr)
00057          {
00058             findCandidates( 
00059                &main_trie, transaction.end()-candidate_size+1, 
00060                transaction.begin(), candidate_size,
00061                counter_incr ){}
00062          }
00063          
00064    };
00065 }

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