SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces
apply.hpp File Reference

Provides some algorithms to apply C like functions to ranges. More...

#include <cmath>
#include <iterator>
Include dependency graph for apply.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 slip
 This namespace corresponds to the kernel of the Simple Library on Image Processing (SLIP). That is to say that it contains the data structures and the algorithms needed by these data strucutres.
 

Functions

Applies an unary C-function with non const parameter
template<typename InputIterator , typename OutputIterator >
void slip::apply (InputIterator first, InputIterator last, OutputIterator result, typename std::iterator_traits< OutputIterator >::value_type(*function)(typename std::iterator_traits< InputIterator >::value_type))
 Applies a C-function to each element of a range. More...
 
template<typename InputIterator , typename OutputIterator , typename MaskIterator >
void slip::apply_mask (InputIterator first, InputIterator last, MaskIterator mask_first, OutputIterator result, typename std::iterator_traits< OutputIterator >::value_type(*function)(typename std::iterator_traits< InputIterator >::value_type), typename std::iterator_traits< MaskIterator >::value_type value=typename std::iterator_traits< MaskIterator >::value_type(1))
 Applies a C-function to each element of a range according to a mask range. More...
 
template<typename InputIterator , typename OutputIterator , typename Predicate >
void slip::apply_if (InputIterator first, InputIterator last, OutputIterator result, Predicate pred, typename std::iterator_traits< OutputIterator >::value_type(*function)(typename std::iterator_traits< InputIterator >::value_type))
 Applies a C-function to each element of a range according to a predicate. More...
 
Apply an unary C-function with a const parameter
template<typename InputIterator , typename OutputIterator >
void slip::apply (InputIterator first, InputIterator last, OutputIterator result, typename std::iterator_traits< OutputIterator >::value_type(*function)(const typename std::iterator_traits< InputIterator >::value_type &))
 Applies a C-function to each element of a range. More...
 
template<typename InputIterator , typename OutputIterator , typename MaskIterator >
void slip::apply_mask (InputIterator first, InputIterator last, MaskIterator mask_first, OutputIterator result, typename std::iterator_traits< OutputIterator >::value_type(*function)(const typename std::iterator_traits< InputIterator >::value_type &), typename std::iterator_traits< MaskIterator >::value_type value=typename std::iterator_traits< MaskIterator >::value_type(1))
 Applies a C-function to each element of a range according to a mask range. More...
 
template<typename InputIterator , typename OutputIterator , typename Predicate >
void slip::apply_if (InputIterator first, InputIterator last, OutputIterator result, Predicate pred, typename std::iterator_traits< OutputIterator >::value_type(*function)(const typename std::iterator_traits< InputIterator >::value_type &))
 Applies a C-function to each element of a range according to a predicate. More...
 
Applies a binary C-function with two non const parameters
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator >
void slip::apply (InputIterator1 first, InputIterator1 last, InputIterator2 first2, OutputIterator result, typename std::iterator_traits< OutputIterator >::value_type(*function)(typename std::iterator_traits< InputIterator1 >::value_type, typename std::iterator_traits< InputIterator2 >::value_type))
 Applies a two-parameter C-function to each element of two ranges. More...
 
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename MaskIterator >
void slip::apply_mask (InputIterator1 first, InputIterator1 last, MaskIterator mask_first, InputIterator2 first2, OutputIterator result, typename std::iterator_traits< OutputIterator >::value_type(*function)(typename std::iterator_traits< InputIterator1 >::value_type, typename std::iterator_traits< InputIterator2 >::value_type), typename std::iterator_traits< MaskIterator >::value_type value=typename std::iterator_traits< MaskIterator >::value_type(1))
 Applies a C-function to each element of a range according to a mask range. More...
 
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename Predicate >
void slip::apply_if (InputIterator1 first, InputIterator1 last, InputIterator2 first2, OutputIterator result, Predicate pred, typename std::iterator_traits< OutputIterator >::value_type(*function)(typename std::iterator_traits< InputIterator1 >::value_type, typename std::iterator_traits< InputIterator2 >::value_type))
 Applies a C-function to each element of a range according to a predicate. More...
 
Applies a binary C-function with two const parameters
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator >
void slip::apply (InputIterator1 first, InputIterator1 last, InputIterator2 first2, OutputIterator result, typename std::iterator_traits< OutputIterator >::value_type(*function)(const typename std::iterator_traits< InputIterator1 >::value_type &, const typename std::iterator_traits< InputIterator2 >::value_type &))
 Applies a two-const-parameter C-function to each element of two ranges. More...
 
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename MaskIterator >
void slip::apply_mask (InputIterator1 first, InputIterator1 last, MaskIterator mask_first, InputIterator2 first2, OutputIterator result, typename std::iterator_traits< OutputIterator >::value_type(*function)(const typename std::iterator_traits< InputIterator1 >::value_type &, const typename std::iterator_traits< InputIterator2 >::value_type &), typename std::iterator_traits< MaskIterator >::value_type value=typename std::iterator_traits< MaskIterator >::value_type(1))
 Applies a C-function to each element of a range according to a mask range. More...
 
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename Predicate >
void slip::apply_if (InputIterator1 first, InputIterator1 last, InputIterator2 first2, OutputIterator result, Predicate pred, typename std::iterator_traits< OutputIterator >::value_type(*function)(const typename std::iterator_traits< InputIterator1 >::value_type &, const typename std::iterator_traits< InputIterator2 >::value_type &))
 Applies a C-function to each element of a range according to a predicate. More...
 

Detailed Description

Provides some algorithms to apply C like functions to ranges.

Definition in file apply.hpp.