Bolt  1.3
C++ template library with support for OpenCL
logical.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_LOGICAL_H )
19 #define BOLT_AMP_LOGICAL_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 
120  template<typename InputIterator, typename Predicate>
121  bool all_of(bolt::amp::control &ctl, InputIterator first, InputIterator last, Predicate pred);
122 
123  template<typename InputIterator, typename Predicate>
124  bool all_of(InputIterator first, InputIterator last, Predicate pred);
125 
126  template<typename InputIterator, typename Predicate>
127  bool any_of(bolt::amp::control &ctl, InputIterator first, InputIterator last, Predicate pred);
128 
129  template<typename InputIterator, typename Predicate>
130  bool any_of(InputIterator first, InputIterator last, Predicate pred);
131 
132  template<typename InputIterator, typename Predicate>
133  bool none_of(bolt::amp::control &ctl, InputIterator first, InputIterator last, Predicate pred);
134 
135  template<typename InputIterator, typename Predicate>
136  bool none_of(InputIterator first, InputIterator last, Predicate pred);
137  };
138 };
139 
140 #include <bolt/amp/detail/logical.inl>
141 #endif