CVB++ 15.0
Block< T, ACCESSTRAIT >::Column Class Reference

A single column. More...

#include <decl_block.hpp>

Public Member Functions

 Column ()=default
 Default ctor.
 
CVB_FORCE_INLINE PixelType & operator[] (int y) noexcept
 Row access. More...
 
CVB_FORCE_INLINE const PixelType & operator[] (int y) const noexcept
 Row access. More...
 
template<class FromPixelType >
CVB_FORCE_INLINE auto Set (int y, const FromPixelType &value) noexcept -> std::enable_if_t<!std::is_convertible< remove_cvref_t< FromPixelType >, remove_cvref_t< PixelType > >::value, void >
 Row setter. More...
 
CVB_FORCE_INLINE void Set (int y, const PixelType &value) noexcept
 Row setter. More...
 

Detailed Description

template<class T, class ACCESSTRAIT>
class Cvb::Block< T, ACCESSTRAIT >::Column

A single column.

Member Function Documentation

◆ operator[]() [1/2]

CVB_FORCE_INLINE const PixelType & operator[] ( int  y) const
inlinenoexcept

Row access.

Precondition
y must be between 0 and less than the allowed height.
Parameters
[in]yPixel row.
Returns
Pointer to the pixel at the row y.

◆ operator[]() [2/2]

CVB_FORCE_INLINE PixelType & operator[] ( int  y)
inlinenoexcept

Row access.

Precondition
y must be between 0 and less than the allowed height.
Parameters
[in]yPixel row.
Returns
Pointer to the pixel at the row y.

◆ Set() [1/2]

CVB_FORCE_INLINE auto Set ( int  y,
const FromPixelType &  value 
) -> std::enable_if_t<!std::is_convertible<remove_cvref_t<FromPixelType>, remove_cvref_t<PixelType>>::value, void>
inlinenoexcept

Row setter.

Supports any input type for value for which get<I>() is overloaded and has sufficiently many values.

Precondition
y must be between 0 and less than the allowed height.
Parameters
[in]yPixel row.
[in]valueNew pixel value.

◆ Set() [2/2]

CVB_FORCE_INLINE void Set ( int  y,
const PixelType &  value 
)
inlinenoexcept

Row setter.

Supports any input type for value for which get<I>() is overloaded and has sufficiently many values.

Precondition
y must be between 0 and less than the allowed height.
Parameters
[in]yPixel row.
[in]valueNew pixel value.