Bolt  1.3
C++ template library with support for OpenCL
remove.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 
22 #pragma once
23 #if !defined( BOLT_AMP_REMOVE_H )
24 #define BOLT_AMP_REMOVE_H
25 
26 #include <amp.h>
27 #include "bolt/amp/functional.h"
28 
29 #include "bolt/amp/bolt.h"
30 #include <string>
31 #include <assert.h>
32 
37 namespace bolt
38 {
39  namespace amp
40  {
115  template<typename ForwardIterator, typename Predicate>
116  ForwardIterator remove_if(control &ctl,
117  ForwardIterator first,
118  ForwardIterator last,
119  Predicate pred);
120 
121 
122  template<typename ForwardIterator, typename Predicate>
123  ForwardIterator remove_if(ForwardIterator first,
124  ForwardIterator last,
125  Predicate pred);
126 
127 
128  template< typename ForwardIterator, typename InputIterator, typename Predicate>
129  ForwardIterator remove_if( control &ctl,
130  ForwardIterator first,
131  ForwardIterator last,
132  InputIterator stencil,
133  Predicate pred);
134 
135 
136  template< typename ForwardIterator, typename InputIterator, typename Predicate>
137  ForwardIterator remove_if(ForwardIterator first,
138  ForwardIterator last,
139  InputIterator stencil,
140  Predicate pred);
141 
142  template< typename ForwardIterator, typename T>
143  ForwardIterator remove(control &ctl,
144  ForwardIterator first,
145  ForwardIterator last,
146  const T &value);
147 
148  template< typename ForwardIterator, typename T>
149  ForwardIterator remove(ForwardIterator first,
150  ForwardIterator last,
151  const T &value);
152 
205  template<typename InputIterator, typename OutputIterator, typename Predicate>
206  OutputIterator remove_copy_if(control &ctl,
207  InputIterator first,
208  InputIterator last,
209  OutputIterator result,
210  Predicate pred);
211 
212 
213  template<typename InputIterator, typename OutputIterator, typename Predicate>
214  OutputIterator remove_copy_if(InputIterator first,
215  InputIterator last,
216  OutputIterator result,
217  Predicate pred);
218 
219 
220  template<typename InputIterator1, typename InputIterator2, typename OutputIterator, typename Predicate>
221  OutputIterator remove_copy_if(control &ctl,
222  InputIterator1 first,
223  InputIterator1 last,
224  InputIterator2 stencil,
225  OutputIterator result,
226  Predicate pred);
227 
228  template<typename InputIterator1, typename InputIterator2, typename OutputIterator, typename Predicate>
229  OutputIterator remove_copy_if(InputIterator1 first,
230  InputIterator1 last,
231  InputIterator2 stencil,
232  OutputIterator result,
233  Predicate pred);
234 
235 
236  template<typename InputIterator, typename OutputIterator, typename T>
237  OutputIterator remove_copy(control &ctl,
238  InputIterator first,
239  InputIterator last,
240  OutputIterator result,
241  const T &value);
242 
243  template<typename InputIterator, typename OutputIterator, typename T>
244  OutputIterator remove_copy(InputIterator first,
245  InputIterator last,
246  OutputIterator result,
247  const T &value);
248 
249 
252  }//amp namespace ends
253 }//bolt namespace ends
254 
255 #include <bolt/amp/detail/remove.inl>
256 
257 #endif // AMP_REMOVE_H
258 
259