Bolt  1.3
C++ template library with support for OpenCL
transform_scan.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_AMP_TRANSFORM_SCAN_H )
19 #define BOLT_AMP_TRANSFORM_SCAN_H
20 #pragma once
21 
22 #include <bolt/amp/bolt.h>
23 
27 namespace bolt
28 {
29 namespace amp
30 {
31 
87 template<
88  typename InputIterator,
89  typename OutputIterator,
90  typename UnaryFunction,
91  typename BinaryFunction>
92 OutputIterator
94  control &ctl,
95  InputIterator first,
96  InputIterator last,
97  OutputIterator result,
98  UnaryFunction unary_op,
99  BinaryFunction binary_op);
100 
101 template<
102  typename InputIterator,
103  typename OutputIterator,
104  typename UnaryFunction,
105  typename BinaryFunction>
106 OutputIterator
108  InputIterator first,
109  InputIterator last,
110  OutputIterator result,
111  UnaryFunction unary_op,
112  BinaryFunction binary_op);
113 
114 
115 
161 template<
162  typename InputIterator,
163  typename OutputIterator,
164  typename UnaryFunction,
165  typename T,
166  typename BinaryFunction>
167 OutputIterator
169  control &ctl,
170  InputIterator first,
171  InputIterator last,
172  OutputIterator result,
173  UnaryFunction unary_op,
174  T init,
175  BinaryFunction binary_op);
176 
177 template<
178  typename InputIterator,
179  typename OutputIterator,
180  typename UnaryFunction,
181  typename T,
182  typename BinaryFunction>
183 OutputIterator
185  InputIterator first,
186  InputIterator last,
187  OutputIterator result,
188  UnaryFunction unary_op,
189  T init,
190  BinaryFunction binary_op);
191 
192 
194 }// end of bolt::amp namespace
195 }// end of bolt namespace
196 
197 #include <bolt/amp/detail/transform_scan.inl>
198 
199 #endif