cf4ocl (C Framework for OpenCL)  v2.1.0
Object-oriented framework for developing and benchmarking OpenCL projects in C/C++
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
_ccl_memobj_wrapper.h
1 /*
2  * This file is part of cf4ocl (C Framework for OpenCL).
3  *
4  * cf4ocl is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as
6  * published by the Free Software Foundation, either version 3 of the
7  * License, or (at your option) any later version.
8  *
9  * cf4ocl is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with cf4ocl. If not, see
16  * <http://www.gnu.org/licenses/>.
17  * */
18 
32 #include "ccl_context_wrapper.h"
33 #include "_ccl_abstract_wrapper.h"
34 
35 #ifndef __CCL_MEMOBJ_WRAPPER_H_
36 #define __CCL_MEMOBJ_WRAPPER_H_
37 
45 struct ccl_memobj {
46 
51  CCLWrapper base;
52 
57  CCLContext* ctx;
58 
59 };
60 
61 /* Implementation of ccl_wrapper_release_fields() function for
62  * ::CCLMemObj wrapper objects. */
63 void ccl_memobj_release_fields(CCLMemObj* mo);
64 
65 #endif
Definition of a wrapper class and its methods for OpenCL context objects.
The context wrapper class.
Base class for memory object wrappers, i.e., CCLBuffer and CCLImage.
Base class for all OpenCL wrappers.