Bolt  1.3
C++ template library with support for OpenCL
merge.h
Go to the documentation of this file.
1 /***************************************************************************
2 * © 2012,2014 Advanced Micro Devices, Inc. All rights reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 
16 ***************************************************************************/
17 
18 #if !defined( BOLT_CL_MERGE_H )
19 #define BOLT_CL_MERGE_H
20 #pragma once
21 
22 #include "bolt/cl/device_vector.h"
23 #include "bolt/cl/functional.h"
24 
31 namespace bolt {
32  namespace cl {
33 
81  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator >
82  OutputIterator merge (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2,
83  InputIterator2 last2, OutputIterator result,const std::string& cl_code="" );
84 
85  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator >
86  OutputIterator merge (bolt::cl::control &ctl,InputIterator1 first1, InputIterator1 last1,
87  InputIterator2 first2,InputIterator2 last2, OutputIterator result,const std::string& cl_code="" );
88 
124  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator,
125  typename StrictWeakCompare>
126  OutputIterator merge (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2,
127  InputIterator2 last2, OutputIterator result,StrictWeakCompare comp, const std::string& cl_code="" );
128 
129  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator,
130  typename StrictWeakCompare>
131  OutputIterator merge (bolt::cl::control &ctl,InputIterator1 first1, InputIterator1 last1,
132  InputIterator2 first2,InputIterator2 last2, OutputIterator result,StrictWeakCompare comp,
133  const std::string& cl_code="" );
134 
137  };
138 };
139 
140 #include <bolt/cl/detail/merge.inl>
141 #endif