Column-oriented GPU-accelerated Database Management System
CoGaDB
/home/sebastian/gpudbms/trunk/hype-library/include/plugins/recomputation_heuristics/oneshot_computation.hpp
Go to the documentation of this file.
00001 
00002 #pragma once
00003 
00004 #include <iostream>
00005 #include <string>
00006 #include <vector>
00007 #include <memory>
00008 
00009 //hype includes
00010 #include <core/recomputation_heuristic.hpp>
00011 #include <core/time_measurement.hpp>
00012 
00013 namespace hype{
00014         namespace core{
00015 
00016         class Oneshotcomputation : public RecomputationHeuristic_Internal {
00017                 
00018                 public:
00019                 Oneshotcomputation();
00021                 virtual bool internal_recompute(Algorithm& algortihm);
00022 
00023                 static RecomputationHeuristic_Internal* create(){
00024                         return new Oneshotcomputation();
00025                 }
00026 
00027                 private:
00028                 bool once_;
00029                 unsigned int counter_;
00030         };
00031 
00032         }; //end namespace core
00033 }; //end namespace hype
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines