8 #ifndef BOOST_GIL_CONCEPTS_PIXEL_DEREFERENCE_HPP 9 #define BOOST_GIL_CONCEPTS_PIXEL_DEREFERENCE_HPP 11 #include <boost/gil/concepts/basic.hpp> 12 #include <boost/gil/concepts/concept_check.hpp> 13 #include <boost/gil/concepts/fwd.hpp> 14 #include <boost/gil/concepts/pixel.hpp> 15 #include <boost/gil/concepts/detail/type_traits.hpp> 17 #include <boost/concept_check.hpp> 20 #include <type_traits> 22 #if defined(BOOST_CLANG) 23 #pragma clang diagnostic push 24 #pragma clang diagnostic ignored "-Wunused-local-typedefs" 27 #if defined(BOOST_GCC) && (BOOST_GCC >= 40900) 28 #pragma GCC diagnostic push 29 #pragma GCC diagnostic ignored "-Wunused-local-typedefs" 32 namespace boost {
namespace gil {
58 boost::UnaryFunctionConcept
61 typename detail::remove_const_and_reference<typename D::result_type>::type,
62 typename D::argument_type
65 gil_function_requires<boost::DefaultConstructibleConcept<D>>();
66 gil_function_requires<boost::CopyConstructibleConcept<D>>();
67 gil_function_requires<boost::AssignableConcept<D>>();
71 typename detail::remove_const_and_reference<typename D::result_type>::type
74 using const_t =
typename D::const_t;
75 gil_function_requires<PixelDereferenceAdaptorConcept<const_t>>();
77 using value_type =
typename D::value_type;
78 gil_function_requires<PixelValueConcept<value_type>>();
81 using reference =
typename D::reference;
82 using const_reference =
typename D::const_reference;
84 bool const is_mutable = D::is_mutable;
85 ignore_unused_variable_warning(is_mutable);
91 struct PixelDereferenceAdaptorArchetype
93 using argument_type = P;
94 using result_type = P;
95 using const_t = PixelDereferenceAdaptorArchetype;
96 using value_type =
typename std::remove_reference<P>::type;
97 using reference =
typename std::add_lvalue_reference<P>::type;
98 using const_reference = reference;
100 static const bool is_mutable =
false;
101 P operator()(P)
const {
throw; }
106 #if defined(BOOST_CLANG) 107 #pragma clang diagnostic pop 110 #if defined(BOOST_GCC) && (BOOST_GCC >= 40900) 111 #pragma GCC diagnostic pop Represents a unary function object that can be invoked upon dereferencing a pixel iterator.
Definition: pixel_dereference.hpp:52
Pixel concept - A color base whose elements are channels.
Definition: concepts/pixel.hpp:62