SLIP
1.4
|
Provides some extension to STL algorithms. More...
#include <iostream>
#include <cassert>
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 | |
Transform algorithms | |
template<typename _InputIterator , typename _MaskIterator , typename _OutputIterator , typename _UnaryOperation > | |
_OutputIterator | slip::transform_mask_un (_InputIterator first, _InputIterator last, _MaskIterator mask_first, _OutputIterator result, _UnaryOperation unary_op, typename std::iterator_traits< _MaskIterator >::value_type value=typename std::iterator_traits< _MaskIterator >::value_type(1)) |
Perform an operation on a sequence according to a mask sequence. More... | |
template<typename _InputIterator1 , typename _InputIterator2 , typename _MaskIterator , typename _OutputIterator , typename _BinaryOperation > | |
_OutputIterator | slip::transform_mask_bin (_InputIterator1 first1, _InputIterator1 last1, _MaskIterator mask_first, _InputIterator2 first2, _OutputIterator result, _BinaryOperation binary_op, typename std::iterator_traits< _MaskIterator >::value_type value=typename std::iterator_traits< _MaskIterator >::value_type(1)) |
Perform an operation on corresponding elements of two sequences according to a mask sequence. More... | |
template<typename _InputIterator , typename _OutputIterator , typename _UnaryOperation , typename _Predicate > | |
_OutputIterator | slip::transform_if (_InputIterator first, _InputIterator last, _OutputIterator result, _UnaryOperation unary_op, _Predicate pred) |
Perform an operation on a sequence according to a Predicate. More... | |
template<typename _InputIterator1 , typename _InputIterator2 , typename _OutputIterator , typename _BinaryOperation , typename _Predicate > | |
_OutputIterator | slip::transform_if (_InputIterator1 first1, _InputIterator1 last1, _InputIterator2 first2, _OutputIterator result, _BinaryOperation binary_op, _Predicate pred) |
Perform an operation on corresponding elements of two sequences according to a Predicate. More... | |
max_element algorithms | |
template<typename _ForwardIterator , typename _MaskIterator > | |
_ForwardIterator | slip::max_element_mask (_ForwardIterator first, _ForwardIterator last, _MaskIterator mask_first, typename std::iterator_traits< _MaskIterator >::value_type value=typename std::iterator_traits< _MaskIterator >::value_type(1)) |
Return the maximum element in a range according to a mask sequence or return last if no value verify the mask. More... | |
template<typename _ForwardIterator , typename Predicate > | |
_ForwardIterator | slip::max_element_if (_ForwardIterator first, _ForwardIterator last, Predicate pred) |
Return the maximum element in a range according to a predicate or last if the predicate is never verified. More... | |
template<typename _ForwardIterator , typename _MaskIterator , typename _Compare > | |
_ForwardIterator | slip::max_element_mask_compare (_ForwardIterator first, _ForwardIterator last, _MaskIterator mask_first, _Compare comp, typename std::iterator_traits< _MaskIterator >::value_type value=typename std::iterator_traits< _MaskIterator >::value_type(1)) |
Return the maximum element in a range using comparison functor according to a mask sequence or return last if no value verify the mask. More... | |
template<typename _ForwardIterator , typename _Compare , typename Predicate > | |
_ForwardIterator | slip::max_element_if_compare (_ForwardIterator first, _ForwardIterator last, Predicate pred, _Compare comp) |
Return the maximum element in a range using comparison functor according to a predicate or return last if the predicate is never verified. More... | |
min_element algorithms | |
template<typename _ForwardIterator , typename _MaskIterator > | |
_ForwardIterator | slip::min_element_mask (_ForwardIterator first, _ForwardIterator last, _MaskIterator mask_first, typename std::iterator_traits< _MaskIterator >::value_type value=typename std::iterator_traits< _MaskIterator >::value_type(1)) |
Return the minimum element in a range according to a mask sequence or return last if no value verify the mask. More... | |
template<typename _ForwardIterator , typename _MaskIterator , typename _Compare > | |
_ForwardIterator | slip::min_element_mask_compare (_ForwardIterator first, _ForwardIterator last, _MaskIterator mask_first, _Compare comp, typename std::iterator_traits< _MaskIterator >::value_type value=typename std::iterator_traits< _MaskIterator >::value_type(1)) |
Return the minimum element in a range using comparison functor according to a mask sequence or return last if no value verify the mask. More... | |
template<typename _ForwardIterator , typename Predicate > | |
_ForwardIterator | slip::min_element_if (_ForwardIterator first, _ForwardIterator last, Predicate pred) |
Return the minimum element in a range according to a predicate or return last if the predicate is never verified. More... | |
template<typename _ForwardIterator , typename _Compare , typename Predicate > | |
_ForwardIterator | slip::min_element_if_compare (_ForwardIterator first, _ForwardIterator last, Predicate pred, _Compare comp) |
Return the minimum element in a range using comparison functor according to a predicate or return last if the predicate is never verified. More... | |
Provides some extension to STL algorithms.
Definition in file stl_algo_ext.hpp.