Bolt  1.3
C++ template library with support for OpenCL
generate.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_GENERATE_H )
19 #define BOLT_AMP_GENERATE_H
20 #pragma once
21 
22 #include <bolt/amp/bolt.h>
23 #include <bolt/amp/device_vector.h>
24 
25 #include <string>
26 #include <iostream>
27 
32 namespace bolt {
33  namespace amp {
34 
87  template<typename ForwardIterator, typename Generator>
88  void generate(
89  bolt::amp::control &ctl,
90  ForwardIterator first,
91  ForwardIterator last,
92  const Generator & gen);
93 
94  template<typename ForwardIterator, typename Generator>
95  void generate(
96  ForwardIterator first,
97  ForwardIterator last,
98  const Generator & gen);
99 
141  template<typename OutputIterator, typename Size, typename Generator>
142  OutputIterator generate_n(
143  bolt::amp::control &ctl,
144  OutputIterator first,
145  Size n,
146  const Generator & gen);
147 
148  template<typename OutputIterator, typename Size, typename Generator>
149  OutputIterator generate_n(
150  OutputIterator first,
151  Size n,
152  const Generator & gen);
153 
155  };
156 };
157 
158 #include <bolt/amp/detail/generate.inl>
159 #endif