Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
|
00001 00002 #include <core/statistical_method.hpp> 00003 #include <core/algorithm.hpp> 00004 00005 namespace hype{ 00006 namespace core{ 00007 00008 00009 StatisticalMethod_Internal::StatisticalMethod_Internal(const std::string& name) : name_(name){ 00010 } 00011 00012 00013 00014 const std::tr1::shared_ptr<StatisticalMethod_Internal> getNewStatisticalMethodbyName(std::string name){ 00015 00016 //StatisticalMethod_InternalFactory aFactory; 00017 StatisticalMethod_Internal* ptr = StatisticalMethodFactorySingleton::Instance().CreateObject(name); //.( 1, createProductNull ); 00018 return std::tr1::shared_ptr<StatisticalMethod_Internal> (ptr); 00019 //3. aFactory.CreateObject( 1 ); 00020 } 00021 00022 StatisticalMethodFactory& StatisticalMethodFactorySingleton::Instance() 00023 { 00024 static StatisticalMethodFactory factory; 00025 return factory; 00026 } 00027 };//end namespace core 00028 }; //end namespace hype 00029