Intel clGPU
primitive_db Class Reference

Helper class to store kernel sources. More...

#include <primitive_db.hpp>

Public Types

using db_type = std::unordered_map< std::string, std::string >
 
using value_type = db_type::value_type
 

Public Member Functions

std::string get (const std::string &id)
 Get kernel source code by it's name.
 
virtual void insert (const value_type &value)
 Add kernel source to the DB.
 
template<class InputIt >
std::enable_if_t< std::is_convertible< decltype(*std::declval< InputIt >)), value_type >::value > insert_range (InputIt first, InputIt last)
 Add kernel sources to the DB.
 
template<class Range >
std::enable_if_t< std::is_convertible< decltype(*std::cbegin(std::declval< Range >))), value_type >::value > insert (const Range &range)
 Add kernel sources to the DB.
 
void insert (const std::initializer_list< value_type > &ilist)
 Add kernel sources to the DB.
 

Protected Attributes

db_type _db
 

Detailed Description

Helper class to store kernel sources.

Definition at line 24 of file primitive_db.hpp.


The documentation for this class was generated from the following file: