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

#include "bitstreams/BitStreamerJPEG.h"

Inheritance diagram for rawspeed::PosOrUnknown< T >:
[legend]
Collaboration diagram for rawspeed::PosOrUnknown< T >:
[legend]

Public Member Functions

 PosOrUnknown ()=default
bool has_value () const RAWSPEED_READONLY
template<typename U>
requires std::same_as<U, T>
PosOrUnknownoperator= (U newValue)
template<typename U>
requires std::same_as<U, T>
T value_or (U fallback) const

Private Attributes

T val = -1

Detailed Description

template<typename T>
requires std::signed_integral<T>
class rawspeed::PosOrUnknown< T >

Definition at line 42 of file BitStreamerJPEG.h.

Constructor & Destructor Documentation

◆ PosOrUnknown()

template<typename T>
rawspeed::PosOrUnknown< T >::PosOrUnknown ( )
default

Referenced by operator=().

Here is the caller graph for this function:

Member Function Documentation

◆ has_value()

template<typename T>
bool rawspeed::PosOrUnknown< T >::has_value ( ) const
inlinenodiscard

Definition at line 48 of file BitStreamerJPEG.h.

References val.

Referenced by operator=(), and value_or().

Here is the caller graph for this function:

◆ operator=()

template<typename T>
template<typename U>
requires std::same_as<U, T>
PosOrUnknown & rawspeed::PosOrUnknown< T >::operator= ( U newValue)
inline

Definition at line 52 of file BitStreamerJPEG.h.

References PosOrUnknown(), has_value(), invariant, and val.

Here is the call graph for this function:

◆ value_or()

template<typename T>
template<typename U>
requires std::same_as<U, T>
T rawspeed::PosOrUnknown< T >::value_or ( U fallback) const
inlinenodiscard

Definition at line 61 of file BitStreamerJPEG.h.

References has_value(), rawspeed::T(), and val.

Here is the call graph for this function:

Member Data Documentation

◆ val

template<typename T>
T rawspeed::PosOrUnknown< T >::val = -1
private

Definition at line 43 of file BitStreamerJPEG.h.

Referenced by has_value(), operator=(), and value_or().


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