|
template<class... TT> |
| RefValue (TT &...refs) |
| Constructor from reference values.
|
|
template<class Ty> |
RefValue< T, K > & | operator= (const Ty &other) noexcept |
| Assignment from any type, for which get<size_t>(Ty) function exists. The values pointed to by this class are overwritten by those of other.
|
|
template<size_t N> |
RefValue< T, K > & | operator= (const T(&list)[N]) noexcept |
| Assignment from a N-element initializer list or array. The values pointed to by this class are overwritten by those of the initializer list.
|
|
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.
|
|
T & | X () noexcept |
| Get reference to 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< 1, N >::value, int > = 0> |
T & | Y () noexcept |
| Get reference to 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< 2, N >::value, int > = 0> |
T & | Z () noexcept |
| Get reference to 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.
|
|
template<size_t N = K, std::enable_if_t< less< 3, N >::value, int > = 0> |
T & | W () noexcept |
| Get reference to the fourth (w) value.
|
|
T | operator[] (size_t i) const noexcept |
| Element access.
|
|
T & | operator[] (size_t i) noexcept |
| Mutable element access.
|
|
|
(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 RefValue< T, K > &refVal) noexcept -> decltype(refVal[I]) |
| Get's the I-th element of the RefValue<T,K>.
|
|
template<size_t I, class T, size_t K, std::enable_if_t< less< I, K >::value, int > = 0> |
void | set (RefValue< T, K > &refVal, const T &val) noexcept |
| Set's the value of the I-th element in the RefValue<T,K> refVal.
|
|
template<size_t I, class Ty, size_t K> |
CVB_FORCE_INLINE void | internal_set (RefValue< Ty, K > &refVal, Ty *val) noexcept |
| Set's the I-th pointer in the RefValue<T,K> refVal.
|
|
template<class T, size_t K>
class Cvb::RefValue< T, K >
This class holds mutable references to K values of type T.
- See also
- Block, Visit
template<class T, size_t K>
template<size_t N = K, std::enable_if_t< less< 3, N >::value, int > = 0>
Get const value of the fourth (w) value.
- Returns
- The w value.
template<class T, size_t K>
template<size_t N = K, std::enable_if_t< less< 3, N >::value, int > = 0>
Get reference to the fourth (w) value.
- Returns
- Reference to the w value.
template<class T, size_t K>
template<size_t N = K, std::enable_if_t< less< 1, N >::value, int > = 0>
Get const value of the second (y) value.
- Returns
- The y value.
template<class T, size_t K>
template<size_t N = K, std::enable_if_t< less< 1, N >::value, int > = 0>
Get reference to the second (y) value.
- Returns
- Reference to the y value.
template<class T, size_t K>
template<size_t N = K, std::enable_if_t< less< 2, N >::value, int > = 0>
Get const value of the third (z) value.
- Returns
- The z value.
template<class T, size_t K>
template<size_t N = K, std::enable_if_t< less< 2, N >::value, int > = 0>
Get reference to the third (z) value.
- Returns
- Reference to the z value.
template<size_t I, class T, size_t K, std::enable_if_t< less< I, K >::value, int > = 0>
auto get |
( |
const RefValue< T, K > & | refVal | ) |
-> decltype(refVal[I])
|
|
related |
Get's the I-th element of the RefValue<T,K>.
- See also
- Block, Visit
- Precondition
- I < K
- Template Parameters
-
I | The index of the element. |
- Parameters
-
refVal | The RefValue<T,K> to retrieve the I-th element from. |
- Returns
- The I-th element of refVal.
template<size_t I, class T, size_t K, std::enable_if_t< less< I, K >::value, int > = 0>
void set |
( |
RefValue< T, K > & | refVal, |
|
|
const T & | val ) |
|
related |
Set's the value of the I-th element in the RefValue<T,K> refVal.
- See also
- Block, Visit
- Precondition
- I < K
- Template Parameters
-
I | The index of the element. |
- Parameters
-
refVal | The RefValue<T,K> to set the I-th value in. |
val | The value to be written to the I-th element of refVal. |