A single column.
More...
#include <cvb/_decl/block/decl_block.hpp>
template<class T, class ACCESSTRAIT>
class Cvb::Block< T, ACCESSTRAIT >::Column
A single column.
◆ operator=()
Copy assignment.
- Returns
- Reference to this object.
◆ operator[]() [1/2]
CVB_FORCE_INLINE PixelType& operator[] |
( |
int |
y | ) |
|
|
inlinenoexcept |
Row access.
- Precondition
- y must be between 0 and less than the allowed height.
- Parameters
-
- Returns
- Pointer to the pixel at the row y.
◆ operator[]() [2/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
-
- 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] | y | Pixel row. |
[in] | value | New 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] | y | Pixel row. |
[in] | value | New pixel value. |