Public Member Functions | List of all members
ScatterAccess< K >::Row Class Reference

A single row. More...

#include <cvb/vpat.hpp>

Public Member Functions

 Row () noexcept=default
 Default ctor of invalid row.
 
 Row (const Row &)=default
 Copy ctor.
 
Rowoperator= (const Row &)=default
 Copy assignment. More...
 
std::array< void *, K > operator[] (int x) noexcept
 Value access. More...
 
std::array< const void *, K > operator[] (int x) const noexcept
 Value access. More...
 

Detailed Description

template<int K>
class Cvb::ScatterAccess< K >::Row

A single row.

Member Function Documentation

◆ operator=()

Row& operator= ( const Row )
default

Copy assignment.

Returns
Reference to this object.

◆ operator[]() [1/2]

std::array<void *, K> operator[] ( int  x)
inlinenoexcept

Value access.

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

◆ operator[]() [2/2]

std::array<const void *, K> operator[] ( int  x) const
inlinenoexcept

Value access.

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