Bolt  1.3
C++ template library with support for OpenCL
Namespaces | Macros | Functions
count.h File Reference

Counts the number of elements in the specified range. More...

#include "bolt/cl/device_vector.h"
#include "bolt/cl/functional.h"
#include <bolt/cl/detail/count.inl>

Go to the source code of this file.

Namespaces

namespace  bolt
 Defining namespace for the Bolt project.
 
namespace  bolt::cl
 Namespace containing OpenCL related data types and functions.
 

Functions

template<typename InputIterator , typename Predicate >
bolt::cl::iterator_traits
< InputIterator >
::difference_type 
bolt::cl::count_if (control &ctl, InputIterator first, InputIterator last, Predicate predicate=bolt::cl::detail::CountIfEqual< int >(), const std::string &cl_code="")
 count_if counts the number of elements in the specified range for which the specified predicate is true.
 
template<typename InputIterator , typename Predicate >
bolt::cl::iterator_traits
< InputIterator >
::difference_type 
bolt::cl::count_if (InputIterator first, InputIterator last, Predicate predicate, const std::string &cl_code="")
 
template<typename InputIterator , typename EqualityComparable >
bolt::cl::iterator_traits
< InputIterator >
::difference_type 
bolt::cl::count (control &ctl, InputIterator first, InputIterator last, const EqualityComparable &value, const std::string &cl_code="")
 count counts the number of elements in the specified range which compare equal to the specified value.
 
template<typename InputIterator , typename EqualityComparable >
bolt::cl::iterator_traits
< InputIterator >
::difference_type 
bolt::cl::count (InputIterator first, InputIterator last, const EqualityComparable &value, const std::string &cl_code="")
 
 BOLT_CREATE_TYPENAME (bolt::cl::detail::CountIfEqual< int >)
 
 BOLT_CREATE_CLCODE (bolt::cl::detail::CountIfEqual< int >, bolt::cl::CountIfEqual_OclCode)
 
 BOLT_TEMPLATE_REGISTER_NEW_TYPE (bolt::cl::detail::CountIfEqual, int, unsigned int)
 
 BOLT_TEMPLATE_REGISTER_NEW_TYPE (bolt::cl::detail::CountIfEqual, int, float)
 
 BOLT_TEMPLATE_REGISTER_NEW_TYPE (bolt::cl::detail::CountIfEqual, int, double)
 

Detailed Description

Counts the number of elements in the specified range.