CVB++ 14.0
ArrayAccess::Row Class Reference

A single row. More...

#include <cvb/vpat.hpp>

Public Member Functions

 Row () noexcept
 Default ctor of invalid row.
 
 Row (const Row &)=default
 Copy ctor.
 
Rowoperator= (const Row &)=default
 Copy assignment. More...
 
CVB_FORCE_INLINE void * operator[] (int x) noexcept
 Value access. More...
 
CVB_FORCE_INLINE const void * operator[] (int x) const noexcept
 Value access. More...
 

Detailed Description

A single row.

Member Function Documentation

◆ operator=()

Row & operator= ( const Row )
default

Copy assignment.

Returns
Reference to this object.

◆ operator[]() [1/2]

CVB_FORCE_INLINE const void * operator[] ( int  x) const
inlinenoexcept

Value access.

Precondition
x must be between 0 and less than the allowed width.
Parameters
[in]xPixel column.
Returns
Pointer to the pixel at the column x.

◆ operator[]() [2/2]

CVB_FORCE_INLINE void * operator[] ( int  x)
inlinenoexcept

Value access.

Precondition
x must be between 0 and less than the allowed width.
Parameters
[in]xPixel column.
Returns
Pointer to the pixel at the column x.