summaryrefslogtreecommitdiff
path: root/src/database/database.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-09-04 17:39:57 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-09-04 17:39:57 +0200
commit28462aa05068522733dcdc812795ec235c40f7e1 (patch)
tree0ca153975169c1afae2825cfacca4e130b613a91 /src/database/database.hpp
parent297159d5b99f33f4e49cea238e66f1a1f05389a3 (diff)
Removed an assumption that the 'default' tuning parameters have to be stored last; this is no longer needed
Diffstat (limited to 'src/database/database.hpp')
-rw-r--r--src/database/database.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/database/database.hpp b/src/database/database.hpp
index 3f984439..b652164c 100644
--- a/src/database/database.hpp
+++ b/src/database/database.hpp
@@ -92,11 +92,19 @@ class Database {
std::vector<std::string> GetParameterNames() const;
private:
- // Search method for a specified database, returning pointer (possibly a nullptr)
+ // Search method functions, returning a set of parameters (possibly empty)
Parameters Search(const std::string &this_kernel, const std::string &this_type,
const std::string &this_vendor, const std::string &this_device,
const Precision this_precision,
const std::vector<DatabaseEntry> &db) const;
+ Parameters SearchDevice(const std::string &target_device,
+ const std::vector<DatabaseDevice> &devices,
+ const std::vector<std::string> &parameter_names) const;
+ Parameters SearchVendorAndType(const std::string &target_vendor,
+ const std::string &target_type,
+ const std::string &this_device,
+ const std::vector<DatabaseVendor> &vendors,
+ const std::vector<std::string> &parameter_names) const;
// Found parameters suitable for this device/kernel
std::shared_ptr<Parameters> parameters_;