OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::program_parameter_alias< T > Class Template Reference

Alias (alternative tags) for another declared program parameter. More...

#include <eagine/program_args.hpp>

Public Member Functions

 program_parameter_alias (string_view short_tag, string_view long_tag, program_parameter< T > &that) noexcept
 Construction from alternative short and long tags and parameter reference.
 
auto ref () noexcept -> auto &
 Returns a reference to the value in the aliased program parameter.
 
auto value () const noexcept -> auto &
 Returns the value in the aliased program parameter.
 
 operator const T & () const noexcept
 Returns the value in the aliased program parameter. More...
 
- Public Member Functions inherited from eagine::basic_program_parameter
constexpr auto short_tag () const noexcept -> string_view
 Get the short tag string for this parameter.
 
constexpr auto long_tag () const noexcept -> string_view
 Get the long tag string for this parameter.
 
constexpr auto description () const noexcept -> string_view
 Returns a human-readable description for this program parameter.
 
constexpr auto description (string_view help_str) noexcept -> auto &
 Specifies a human-readable description for this program parameter.
 

Detailed Description

template<typename T>
class eagine::program_parameter_alias< T >

Alias (alternative tags) for another declared program parameter.

See also
program_parameter.

Member Function Documentation

◆ operator const T &()

template<typename T >
eagine::program_parameter_alias< T >::operator const T & ( ) const
inlinenoexcept

Returns the value in the aliased program parameter.

See also
value

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).