Column-oriented GPU-accelerated Database Management System
CoGaDB
/home/sebastian/gpudbms/trunk/hype-library/include/core/measurementpair.hpp
Go to the documentation of this file.
00001 /***********************************************************************************************************
00002 Copyright (c) 2012, Sebastian Breß, Otto-von-Guericke University of Magdeburg, Germany. All rights reserved.
00003 
00004 This program and accompanying materials are made available under the terms of the 
00005 GNU LESSER GENERAL PUBLIC LICENSE - Version 3, http://www.gnu.org/licenses/lgpl-3.0.txt
00006 ***********************************************************************************************************/
00007 
00008 #pragma once
00009 
00010 #include <iostream>
00011 #include <string>
00012 #include <vector>
00013 //#include <memory>
00014 #include <ostream>
00015 
00016 //HyPE includes
00017 //#include <core/recomputation_heuristic.hpp>
00018 #include <core/time_measurement.hpp>
00019 
00020 
00021 namespace hype{
00022         namespace core{
00023 
00035 class MeasurementPair{
00036 
00037         public:
00038         MeasurementPair();
00039         MeasurementPair(const Tuple& feature_values, MeasuredTime measured_time,EstimatedTime estimated_time);
00040 
00041         const Tuple& getFeatureValues() const;
00042         //{ return feature_values.getFeatureValues(); }
00043 
00044         const MeasuredTime& getMeasuredTime() const;
00045 
00046         const EstimatedTime& getEstimatedTime() const;
00047 
00048         const std::string toPlainString() const;
00049 
00050         private:
00051         Tuple feature_values_;
00052         MeasuredTime measured_time_;
00053         EstimatedTime estimated_time_;
00054         
00055 };
00056 
00057 
00058 std::ostream& operator<< (std::ostream &out, MeasurementPair &pair);
00059 //{
00060 //    // Since operator<< is a friend of the Point class, we can access
00061 //    // Point's members directly.
00062 //    out << "([";
00063 //    for(int i=0;i<pair.getFeatureValues().size();i++){
00064 //      out << pair.getFeatureValues().at(i) << ",";
00065 //    }
00066 //    out << "]";    
00067 //    
00068 //    out << pair.getMeasuredTime().getTimeinNanoseconds() << ", " 
00069 //        << pair.getEstimatedTime().getTimeinNanoseconds() << ")" << std::endl;
00070 //        
00071 //    return out;
00072 //}
00073 
00074         }; //end namespace core
00075 }; //end namespace hype
00076 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines