Bolt  1.3
C++ template library with support for OpenCL
unique.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_UNIQUE_H )
24 #define BOLT_AMP_UNIQUE_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  {
99  template<typename ForwardIterator>
100  ForwardIterator unique(control &ctl, ForwardIterator first, ForwardIterator last);
101 
102  template<typename ForwardIterator>
103  ForwardIterator unique( ForwardIterator first, ForwardIterator last);
104 
105  template<typename ForwardIterator, typename BinaryPredicate>
106  ForwardIterator unique(control &ctl,
107  ForwardIterator first,
108  ForwardIterator last,
109  BinaryPredicate binary_pred);
110 
111  template<typename ForwardIterator, typename BinaryPredicate>
112  ForwardIterator unique(ForwardIterator first,
113  ForwardIterator last,
114  BinaryPredicate binary_pred);
115 
116  template<typename InputIterator, typename OutputIterator>
117  OutputIterator unique_copy(control &ctl,
118  InputIterator first,
119  InputIterator last,
120  OutputIterator output);
121 
122  template<typename InputIterator, typename OutputIterator>
123  OutputIterator unique_copy(InputIterator first,
124  InputIterator last,
125  OutputIterator output);
126 
127  template<typename InputIterator, typename OutputIterator, typename BinaryPredicate>
128  OutputIterator unique_copy(control &ctl,
129  InputIterator first,
130  InputIterator last,
131  OutputIterator output,
132  BinaryPredicate binary_pred);
133 
134  template<typename InputIterator, typename OutputIterator, typename BinaryPredicate>
135  OutputIterator unique_copy(InputIterator first,
136  InputIterator last,
137  OutputIterator output,
138  BinaryPredicate binary_pred);
139 
140 
141 
144  }//amp namespace ends
145 }//bolt namespace ends
146 
147 #include <bolt/amp/detail/unique.inl>
148 
149 #endif // AMP_UNIQUE_H
150 
151