tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
tpbrt::opt_float Struct Reference

C++ wrapper for tpbrt_opt_float_t. More...

#include <tinypbrt/detail/cpp/math.hpp>

Public Types

using optional_type = std::optional< float_t >
 std::optional type.
 

Public Member Functions

constexpr float_t value () const noexcept
 Returns value value.
 
constexpr bool_t has_value () const noexcept
 Returns has_value value.
 
constexpr optional_type to_optional () const noexcept
 Converts to std::optional.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

C++ wrapper for tpbrt_opt_float_t.

Member Typedef Documentation

◆ optional_type

using tpbrt::opt_float::optional_type = std::optional<float_t>

std::optional type.

Member Function Documentation

◆ value()

constexpr float_t tpbrt::opt_float::value ( ) const
inlineconstexprnoexcept

Returns value value.

◆ has_value()

constexpr bool_t tpbrt::opt_float::has_value ( ) const
inlineconstexprnoexcept

Returns has_value value.

◆ to_optional()

constexpr optional_type tpbrt::opt_float::to_optional ( ) const
inlineconstexprnoexcept

Converts to std::optional.

◆ reflect()

constexpr auto tpbrt::opt_float::reflect ( ) const
inlineconstexprnoexcept

Conversion to tuple.


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