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

eagine::biteset_value_proxy_base< BiS > Class Template Reference

Base class for biteset value proxy. More...

#include <eagine/biteset.hpp>

Public Types

using size_type = typename BiS::size_type
 Alias for size type.
 
using value_type = typename BiS::value_type
 Alias for element value type.
 

Public Member Functions

constexpr auto is_valid () const noexcept -> bool
 Indicates if this is a valid proxy object that can be used for access.
 
constexpr auto get () const noexcept -> value_type
 Gets the value of the referenced biteset element. More...
 
void set (value_type val) noexcept
 Sets the value of the referenced biteset element. More...
 
constexpr operator value_type () const noexcept
 Implicit conversion to the value type. More...
 

Friends

constexpr friend auto operator== (const self &a, const self &b) noexcept
 Equality comparison.
 
constexpr friend auto operator!= (const self &a, const self &b) noexcept
 Non-equality comparison.
 
constexpr friend auto operator< (const self &a, const self &b) noexcept
 Less-than comparison.
 
constexpr friend auto operator<= (const self &a, const self &b) noexcept
 Less-equal comparison.
 
constexpr friend auto operator> (const self &a, const self &b) noexcept
 Greater-than comparison.
 
constexpr friend auto operator>= (const self &a, const self &b) noexcept
 Greater-equal comparison.
 

Detailed Description

template<typename BiS>
class eagine::biteset_value_proxy_base< BiS >

Base class for biteset value proxy.

See also
biteset
biteset_iterator
biteset_value_proxy

Member Function Documentation

◆ get()

template<typename BiS >
constexpr auto eagine::biteset_value_proxy_base< BiS >::get ( ) const -> value_type
inlineconstexprnoexcept

Gets the value of the referenced biteset element.

Precondition
is_valid()

Referenced by eagine::biteset_value_proxy_base< biteset< N, B, T > >::operator value_type().

◆ operator value_type()

template<typename BiS >
constexpr eagine::biteset_value_proxy_base< BiS >::operator value_type ( ) const
inlineconstexprnoexcept

Implicit conversion to the value type.

See also
get
Precondition
is_valid()

◆ set()

template<typename BiS >
void eagine::biteset_value_proxy_base< BiS >::set ( value_type  val)
inlinenoexcept

Sets the value of the referenced biteset element.

Precondition
is_valid()

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).