|
template<class Ty> |
LinearValue< 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<std::size_t N> |
LinearValue< 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 () noexcept |
| Get reference to the first (x) value.
|
|
const T & | X () const noexcept |
| Get const reference to the first (x) 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< 1, N >::value, int > = 0> |
const T & | Y () const noexcept |
| Get const reference to the second (y) 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< 2, N >::value, int > = 0> |
const T & | Z () const noexcept |
| Get const reference to the third (z) 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.
|
|
template<size_t N = K, std::enable_if_t< less< 3, N >::value, int > = 0> |
const T & | W () const noexcept |
| Get const reference to the fourth (w) value.
|
|
const 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> |
T | get (const LinearValue< T, K > &linVal) noexcept |
| Get's the I-th element of the LinearValue<T,K>.
|
|
template<size_t I, class T, size_t K, std::enable_if_t< less< I, K >::value, int > = 0> |
void | set (LinearValue< T, K > &linVal, const T &val) noexcept |
| Set's the value of the I-th element in the LinearValue<T,K> linVal.
|
|
template<typename T, size_t K>
class Cvb::LinearValue< T, K >
This class is memory compatible to K values of type T.
- See also
- Block, Visit
template<typename T, size_t K>
template<size_t N = K, std::enable_if_t< less< 3, N >::value, int > = 0>
Get const reference to the fourth (w) value.
- Returns
- const reference to the w value.
template<typename 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<typename T, size_t K>
template<size_t N = K, std::enable_if_t< less< 1, N >::value, int > = 0>
Get const reference to the second (y) value.
- Returns
- const reference to the y value.
template<typename 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<typename T, size_t K>
template<size_t N = K, std::enable_if_t< less< 2, N >::value, int > = 0>
Get const reference to the third (z) value.
- Returns
- const reference to the z value.
template<typename 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>
Get's the I-th element of the LinearValue<T,K>.
- See also
- Block, Visit
- Precondition
- I < K
- Template Parameters
-
I | The index of the element. |
- Parameters
-
linVal | The LinearValue<T,K> to retrieve the I-th element from. |
- Returns
- The value of the I-th element of linVal.
template<size_t I, class T, size_t K, std::enable_if_t< less< I, K >::value, int > = 0>
void set |
( |
LinearValue< T, K > & | linVal, |
|
|
const T & | val ) |
|
related |
Set's the value of the I-th element in the LinearValue<T,K> linVal.
- See also
- Block, Visit
- Precondition
- I < K
- Template Parameters
-
I | The index of the element. |
- Parameters
-
linVal | The LinearValue<T,K> to retrieve the I-th element from. |
val | The value to be written to the I-th element of linVal. |