Bolt  1.1
C++ template library with support for OpenCL
merge.h
Go to the documentation of this file.
1 /***************************************************************************
2 * Copyright 2012 - 2013 Advanced Micro Devices, Inc.
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/bolt.h>
23 #include <bolt/cl/functional.h>
24 #include <bolt/cl/device_vector.h>
25 
26 #include <string>
27 #include <iostream>
28 
35 namespace bolt {
36  namespace cl {
37 
86  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator >
87  OutputIterator merge (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2,
88  InputIterator2 last2, OutputIterator result,const std::string& cl_code="" );
89 
90  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator >
91  OutputIterator merge (bolt::cl::control &ctl,InputIterator1 first1, InputIterator1 last1,
92  InputIterator2 first2,InputIterator2 last2, OutputIterator result,const std::string& cl_code="" );
93 
129  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator,
130  typename StrictWeakCompare>
131  OutputIterator merge (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2,
132  InputIterator2 last2, OutputIterator result,StrictWeakCompare comp, const std::string& cl_code="" );
133 
134  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator,
135  typename StrictWeakCompare>
136  OutputIterator merge (bolt::cl::control &ctl,InputIterator1 first1, InputIterator1 last1,
137  InputIterator2 first2,InputIterator2 last2, OutputIterator result,StrictWeakCompare comp,
138  const std::string& cl_code="" );
139 
142  };
143 };
144 
145 #include <bolt/cl/detail/merge.inl>
146 #endif