This class holds references to K values of type T. More...
#include <cvb/block.hpp>
Public Member Functions | |
template<class... TT> | |
ConstRefValue (const TT &...refs) | |
Constructor from reference values. | |
template<class Ty> | |
Ty | Cast () const noexcept |
Cast to any type, for which a set<size_t>(Ty) function exists. | |
T | X () const noexcept |
Get const value of the first (x) value. | |
template<size_t N = K, std::enable_if_t< less< 1, N >::value, int > = 0> | |
T | Y () const noexcept |
Get const value of the second (y) value. | |
template<size_t N = K, std::enable_if_t< less< 2, N >::value, int > = 0> | |
T | Z () const noexcept |
Get const value of the third (z) value. | |
template<size_t N = K, std::enable_if_t< less< 3, N >::value, int > = 0> | |
T | W () const noexcept |
Get const value of the fourth (w) value. | |
T | operator[] (size_t i) const noexcept |
Element access. | |
Static Public Member Functions | |
static constexpr size_t | NumValues () noexcept |
Get number of values stored in this ConstRefValue. | |
Related Symbols | |
(Note that these are not member symbols.) | |
template<size_t I, class T, size_t K, std::enable_if_t< less< I, K >::value, int > = 0> | |
auto | get (const ConstRefValue< T, K > &refVal) noexcept -> decltype(refVal[I]) |
Get's the I-th element of the ConstRefValue<T,K>. | |
template<size_t I, class Ty, size_t K> | |
CVB_FORCE_INLINE void | internal_set (ConstRefValue< Ty, K > &refVal, const Ty *val) noexcept |
Set's the I-th pointer in the ConstRefValue<T,K> refVal. | |
This class holds references to K values of type T.
|
inlineexplicit |
Constructor from reference values.
[in] | refs | K references to values that are stored in the order of the parameters. |
|
inlinenoexcept |
Cast to any type, for which a set<size_t>(Ty) function exists.
Ty | Target type, for which a Cvb::set<size_t>(Ty) function exists. |
|
inlinestaticconstexprnoexcept |
Get number of values stored in this ConstRefValue.
|
inlinenoexcept |
Element access.
[in] | i | The index of the requested element. |
|
inlinenoexcept |
Get const value of the fourth (w) value.
|
inlinenoexcept |
Get const value of the first (x) value.
|
inlinenoexcept |
Get const value of the second (y) value.
|
inlinenoexcept |
Get const value of the third (z) value.
|
related |
Get's the I-th element of the ConstRefValue<T,K>.
I | The index of the element. |
refVal | The ConstRefValue<T,K> to retrieve the I-th element from. |
|
related |
Set's the I-th pointer in the ConstRefValue<T,K> refVal.
I | The index of the pointer to set. |
refVal | The ConstRefValue<T,K> to set the I-th pointer in. |
val | The pointer to be set as the I-th element of refVal. |
We use cookies to improve your experience. By using this documentation, you agree to our use of cookies.