RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
rawspeed::CroppedArray2DRef< T > Class Template Referencefinal

#include "adt/CroppedArray2DRef.h"

Collaboration diagram for rawspeed::CroppedArray2DRef< T >:
[legend]

Public Types

using value_type = T
using cvless_value_type = std::remove_cv_t<value_type>

Public Member Functions

void establishClassInvariants () const noexcept
 CroppedArray2DRef ()=delete
template<typename T2>
requires (std::is_const_v<T2> && !std::is_const_v<T>)
 CroppedArray2DRef (CroppedArray2DRef< T2 > RHS)=delete
template<typename T2>
requires (!(std::is_const_v<T2> && !std::is_const_v<T>) && !std::is_same_v<std::remove_const_t<T>, std::remove_const_t<T2>>)
 CroppedArray2DRef (CroppedArray2DRef< T2 > RHS)=delete
 CroppedArray2DRef (Array2DRef< T > RHS)
 CroppedArray2DRef (Array2DRef< T > base_, int offsetCols_, int offsetRows_, int croppedWidth_, int croppedHeight_)
template<class T2>
requires (!std::is_const_v<T2> && std::is_const_v<T> && std::is_same_v<std::remove_const_t<T>, std::remove_const_t<T2>>)
 CroppedArray2DRef (CroppedArray2DRef< T2 > RHS)
Array2DRef< TgetAsArray2DRef () const
CroppedArray1DRef< Toperator[] (int row) const
Toperator() (int row, int col) const

Public Attributes

int offsetCols
int offsetRows
int croppedWidth
int croppedHeight

Private Attributes

const Array2DRef< Tbase
friend CroppedArray2DRef< const T >

Detailed Description

template<class T>
class rawspeed::CroppedArray2DRef< T >

Definition at line 31 of file CroppedArray2DRef.h.

Member Typedef Documentation

◆ cvless_value_type

template<class T>
using rawspeed::CroppedArray2DRef< T >::cvless_value_type = std::remove_cv_t<value_type>

Definition at line 41 of file CroppedArray2DRef.h.

◆ value_type

template<class T>
using rawspeed::CroppedArray2DRef< T >::value_type = T

Definition at line 40 of file CroppedArray2DRef.h.

Constructor & Destructor Documentation

◆ CroppedArray2DRef() [1/6]

template<class T>
rawspeed::CroppedArray2DRef< T >::CroppedArray2DRef ( )
delete

References CroppedArray2DRef(), and rawspeed::T().

Referenced by CroppedArray2DRef(), CroppedArray2DRef(), CroppedArray2DRef(), and CroppedArray2DRef().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CroppedArray2DRef() [2/6]

template<class T>
template<typename T2>
requires (std::is_const_v<T2> && !std::is_const_v<T>)
rawspeed::CroppedArray2DRef< T >::CroppedArray2DRef ( CroppedArray2DRef< T2 > RHS)
delete

References CroppedArray2DRef(), and rawspeed::T().

Here is the call graph for this function:

◆ CroppedArray2DRef() [3/6]

template<class T>
template<typename T2>
requires (!(std::is_const_v<T2> && !std::is_const_v<T>) && !std::is_same_v<std::remove_const_t<T>, std::remove_const_t<T2>>)
rawspeed::CroppedArray2DRef< T >::CroppedArray2DRef ( CroppedArray2DRef< T2 > RHS)
delete

References CroppedArray2DRef().

Here is the call graph for this function:

◆ CroppedArray2DRef() [4/6]

template<class T>
rawspeed::CroppedArray2DRef< T >::CroppedArray2DRef ( Array2DRef< T > RHS)
inline

Definition at line 63 of file CroppedArray2DRef.h.

References CroppedArray2DRef(), and rawspeed::T().

Here is the call graph for this function:

◆ CroppedArray2DRef() [5/6]

template<class T>
rawspeed::CroppedArray2DRef< T >::CroppedArray2DRef ( Array2DRef< T > base_,
int offsetCols_,
int offsetRows_,
int croppedWidth_,
int croppedHeight_ )

◆ CroppedArray2DRef() [6/6]

template<class T>
template<class T2>
requires (!std::is_const_v<T2> && std::is_const_v<T> && std::is_same_v<std::remove_const_t<T>, std::remove_const_t<T2>>)
rawspeed::CroppedArray2DRef< T >::CroppedArray2DRef ( CroppedArray2DRef< T2 > RHS)
inline

Definition at line 74 of file CroppedArray2DRef.h.

References CroppedArray2DRef().

Here is the call graph for this function:

Member Function Documentation

◆ establishClassInvariants()

template<class T>
void rawspeed::CroppedArray2DRef< T >::establishClassInvariants ( ) const
noexcept

Referenced by getAsArray2DRef(), operator()(), and operator[]().

Here is the caller graph for this function:

◆ getAsArray2DRef()

template<class T>
Array2DRef< T > rawspeed::CroppedArray2DRef< T >::getAsArray2DRef ( ) const
inlinenodiscard

Definition at line 79 of file CroppedArray2DRef.h.

References base, croppedHeight, croppedWidth, establishClassInvariants(), and operator[]().

Here is the call graph for this function:

◆ operator()()

template<class T>
T & rawspeed::CroppedArray2DRef< T >::operator() ( int row,
int col ) const
inline

Definition at line 134 of file CroppedArray2DRef.h.

References croppedWidth, establishClassInvariants(), invariant, operator()(), and rawspeed::T().

Referenced by operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator[]()

template<class T>
CroppedArray1DRef< T > rawspeed::CroppedArray2DRef< T >::operator[] ( int row) const
inline

Definition at line 125 of file CroppedArray2DRef.h.

References base, croppedHeight, croppedWidth, establishClassInvariants(), rawspeed::Array1DRef< T >::getCrop(), invariant, offsetCols, offsetRows, and operator[]().

Referenced by getAsArray2DRef(), and operator[]().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ base

template<class T>
const Array2DRef<T> rawspeed::CroppedArray2DRef< T >::base
private

Definition at line 32 of file CroppedArray2DRef.h.

Referenced by getAsArray2DRef(), and operator[]().

◆ CroppedArray2DRef< const T >

template<class T>
friend rawspeed::CroppedArray2DRef< T >::CroppedArray2DRef< const T >
private

Definition at line 35 of file CroppedArray2DRef.h.

◆ croppedHeight

◆ croppedWidth

◆ offsetCols

template<class T>
int rawspeed::CroppedArray2DRef< T >::offsetCols

◆ offsetRows

template<class T>
int rawspeed::CroppedArray2DRef< T >::offsetRows

The documentation for this class was generated from the following file: