C++ Library Extensions 2022.12.09
To help learn modern C++ programming
cpg::opencl_sycl::hidden Namespace Reference

Functions

template<typename = int>
std::string file_contents (const char *fileName)
 
template<typename StringType >
auto count_lines (StringType &src)
 
template<typename FileNameType , typename CountType , std::size_t N, typename StringType >
auto error_line_file_name (std::array< FileNameType, N > const &file_names, std::array< CountType, N > const &line_counts, StringType error_line_str)
 
template<typename CharType >
std::basic_string< CharType > replace_string (std::basic_string< CharType > target, std::basic_string< CharType > const &str_find, std::basic_string< CharType > const &str_replace)
 
template<typename FileNameType , typename CountType , std::size_t N, typename StringType >
auto parse_error_message (std::array< FileNameType, N > const &file_names, std::array< CountType, N > const &line_counts, StringType error_msg)
 
template<typename... OpenCLFiles>
cl_program CreateProgram (cl_context context, cl_device_id device, OpenCLFiles... opencl_files)
 

Function Documentation

◆ count_lines()

template<typename StringType >
auto cpg::opencl_sycl::hidden::count_lines ( StringType &  src)

Definition at line 58 of file cpg_opencl_sycl.hpp.

Here is the caller graph for this function:

◆ CreateProgram()

template<typename... OpenCLFiles>
cl_program cpg::opencl_sycl::hidden::CreateProgram ( cl_context  context,
cl_device_id  device,
OpenCLFiles...  opencl_files 
)

Definition at line 132 of file cpg_opencl_sycl.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ error_line_file_name()

template<typename FileNameType , typename CountType , std::size_t N, typename StringType >
auto cpg::opencl_sycl::hidden::error_line_file_name ( std::array< FileNameType, N > const &  file_names,
std::array< CountType, N > const &  line_counts,
StringType  error_line_str 
)

Definition at line 69 of file cpg_opencl_sycl.hpp.

Here is the caller graph for this function:

◆ file_contents()

template<typename = int>
std::string cpg::opencl_sycl::hidden::file_contents ( const char *  fileName)

Definition at line 33 of file cpg_opencl_sycl.hpp.

Here is the caller graph for this function:

◆ parse_error_message()

template<typename FileNameType , typename CountType , std::size_t N, typename StringType >
auto cpg::opencl_sycl::hidden::parse_error_message ( std::array< FileNameType, N > const &  file_names,
std::array< CountType, N > const &  line_counts,
StringType  error_msg 
)

Definition at line 105 of file cpg_opencl_sycl.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ replace_string()

template<typename CharType >
std::basic_string< CharType > cpg::opencl_sycl::hidden::replace_string ( std::basic_string< CharType >  target,
std::basic_string< CharType > const &  str_find,
std::basic_string< CharType > const &  str_replace 
)

Definition at line 92 of file cpg_opencl_sycl.hpp.

Here is the caller graph for this function: