go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkOpenCLStringUtils.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkOpenCLStringUtils_h
19 #define __itkOpenCLStringUtils_h
20 
21 #include "itkOpenCL.h"
22 
23 #include <list>
24 #include <string>
25 
26 namespace itk
27 {
28 // C-style support functions
29 std::string opencl_simplified( const std::string & str );
30 
31 bool opencl_has_extension( const std::string & list, const std::string & name );
32 
33 // OpenCL C-style support functions
34 std::string opencl_get_platform_info_string( const cl_platform_id id, const cl_platform_info name );
35 
36 std::string opencl_get_device_info_string( const cl_device_id id, const cl_device_info name );
37 
38 bool opencl_is_platform( cl_platform_id id, cl_platform_info name, const char * str );
39 
40 int opencl_version_flags( const std::string & version );
41 
42 std::list< std::string > opencl_split_string( const std::string & str, const char separator );
43 
44 // OpenCL support functions to retrieve information about an OpenCL device.
45 unsigned int opencl_get_device_info_uint( const cl_device_id id, const cl_device_info name );
46 
47 int opencl_get_device_info_int( const cl_device_id id, const cl_device_info name );
48 
49 unsigned long opencl_get_device_info_ulong( const cl_device_id id, const cl_device_info name );
50 
51 std::size_t opencl_get_device_info_size( const cl_device_id id, const cl_device_info name );
52 
53 bool opencl_get_device_info_bool( const cl_device_id id, const cl_device_info name );
54 
55 bool opencl_get_device_info_is_string( const cl_device_id id, const cl_device_info name, const char * str );
56 
57 } // end of namespace itk
58 
59 #endif /* __itkOpenCLStringUtils_h */
bool opencl_get_device_info_is_string(const cl_device_id id, const cl_device_info name, const char *str)
std::string opencl_get_device_info_string(const cl_device_id id, const cl_device_info name)
unsigned long opencl_get_device_info_ulong(const cl_device_id id, const cl_device_info name)
std::string opencl_get_platform_info_string(const cl_platform_id id, const cl_platform_info name)
std::string opencl_simplified(const std::string &str)
bool opencl_get_device_info_bool(const cl_device_id id, const cl_device_info name)
unsigned int opencl_get_device_info_uint(const cl_device_id id, const cl_device_info name)
int opencl_version_flags(const std::string &version)
int opencl_get_device_info_int(const cl_device_id id, const cl_device_info name)
std::vcl_size_t opencl_get_device_info_size(const cl_device_id id, const cl_device_info name)
bool opencl_is_platform(cl_platform_id id, cl_platform_info name, const char *str)
std::list< std::string > opencl_split_string(const std::string &str, const char separator)
bool opencl_has_extension(const std::string &list, const std::string &name)


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo