|
RawSpeed
fast raw decoding library
|
#include "adt/Optional.h"
Public Member Functions | |
| Optional ()=default | |
| template<typename U = T> requires (!std::same_as<U, Optional<T>> && !std::same_as<U, Optional<T>&> && !std::same_as<U, Optional<T> &&> && !std::same_as<U, std::optional<T>>) | |
| Optional (U &&value) | |
| template<typename U = T> requires (std::same_as<U, T>) | |
| Optional< T > & | operator= (U &&value) |
| template<typename... Args> | |
| T & | emplace (Args &&... args) |
| const T * | operator-> () const |
| T * | operator-> () |
| const T & | operator* () const & |
| T & | operator* () & |
| T && | operator* () && |
| const T && | operator* () const && |
| bool | has_value () const RAWSPEED_READNONE |
| operator bool () const | |
| template<typename U> | |
| T | value_or (U &&fallback) const & |
| void | reset () |
Private Attributes | |
| std::optional< T > | impl |
Definition at line 30 of file Optional.h.
|
default |
|
inline |
Definition at line 42 of file Optional.h.
|
inline |
Definition at line 51 of file Optional.h.
References impl, and rawspeed::T().
Referenced by rawspeed::anonymous_namespace{BitStreamerJPEGBenchmark.cpp}::BM(), and rawspeed::anonymous_namespace{BitVacuumerJPEGBenchmark.cpp}::BM().
|
inlinenodiscard |
Definition at line 85 of file Optional.h.
References impl.
Referenced by operator bool(), operator*(), operator*(), operator*(), operator*(), operator->(), operator->(), and rawspeed::operator==().
|
inlineexplicit |
Definition at line 89 of file Optional.h.
References has_value().
|
inline |
Definition at line 70 of file Optional.h.
References has_value(), impl, invariant, and rawspeed::T().
|
inline |
Definition at line 75 of file Optional.h.
References has_value(), impl, invariant, and rawspeed::T().
|
inline |
Definition at line 65 of file Optional.h.
References has_value(), impl, invariant, and rawspeed::T().
|
inline |
Definition at line 80 of file Optional.h.
References has_value(), impl, invariant, and rawspeed::T().
|
inline |
Definition at line 60 of file Optional.h.
References has_value(), impl, invariant, and rawspeed::T().
|
inline |
Definition at line 55 of file Optional.h.
References has_value(), impl, invariant, and rawspeed::T().
|
inline |
Definition at line 46 of file Optional.h.
References Optional(), and impl.
|
inline |
Definition at line 95 of file Optional.h.
References impl.
|
inline |
Definition at line 91 of file Optional.h.
References impl, and rawspeed::T().
|
private |
Definition at line 32 of file Optional.h.
Referenced by emplace(), has_value(), operator*(), operator*(), operator*(), operator*(), operator->(), operator->(), operator=(), reset(), and value_or().