Go to the source code of this file.
|
template<class HashState , class ELEM > |
std::enable_if_t< VtIsHashable< ELEM >()> | TfHashAppend (HashState &h, VtArray< ELEM > const &array) |
|
template<class ELEM > |
std::enable_if< VtIsHashable< ELEM >(), size_t >::type | hash_value (VtArray< ELEM > const &array) |
|
ARCH_PRAGMA_PUSH ARCH_PRAGMA_FORCING_TO_BOOL ARCH_PRAGMA_UNSAFE_USE_OF_BOOL ARCH_PRAGMA_UNARY_MINUS_ON_UNSIGNED | VTOPERATOR_CPPARRAY (+, Add) |
|
| VTOPERATOR_CPPARRAY (-, Sub) |
|
| VTOPERATOR_CPPARRAY (/, Div) |
|
| VTOPERATOR_CPPARRAY (%, Mod) |
|
template<class T > |
VtArray< T > | operator- (VtArray< T > const &a) |
|
|
VTOPERATOR_CPPARRAY * | Mul |
|
◆ VT_ARRAY_EXTERN_TMPL
#define VT_ARRAY_EXTERN_TMPL |
( |
|
unused, |
|
|
|
elem |
|
) |
| VT_API_TEMPLATE_CLASS(VtArray< VT_TYPE(elem) >); |
◆ VTOPERATOR_CPPARRAY
#define VTOPERATOR_CPPARRAY |
( |
|
op, |
|
|
|
opName |
|
) |
| |
◆ VTOPERATOR_CPPSCALAR
#define VTOPERATOR_CPPSCALAR |
( |
|
op, |
|
|
|
opName |
|
) |
| |
Value: template<typename T> \
using Op = Vt_ArrayOpHelp<T>; \
std::transform(arr.
begin(), arr.
end(), ret.begin(), \
[&scalar](T const &aObj) { \
return Op:: opName (scalar, aObj); \
}); \
return ret; \
} \
template<typename T> \
using Op = Vt_ArrayOpHelp<T>; \
std::transform(arr.
begin(), arr.
end(), ret.begin(), \
[&scalar](T const &aObj) { \
return Op:: opName (aObj, scalar); \
}); \
return ret; \
}
Represents an arbitrary dimensional rectangular container class.
size_t size() const
Return the total number of elements in this array.
iterator end()
Returns a non-const iterator to the end of the array.
iterator begin()
Return a non-const iterator to the start of the array.
Definition at line 1036 of file array.h.
◆ VTOPERATOR_CPPSCALAR_DOUBLE
#define VTOPERATOR_CPPSCALAR_DOUBLE |
( |
|
op, |
|
|
|
opName |
|
) |
| |
Value: template<typename T> \
std::enable_if_t<!std::is_same<T, double>::value,
VtArray<T>> \
operator op (
double const &scalar,
VtArray<T> const &arr) { \
using Op = Vt_ArrayOpHelpScalar<T>; \
std::transform(arr.
begin(), arr.
end(), ret.begin(), \
[&scalar](T const &aObj) { \
return Op:: opName (scalar, aObj); \
}); \
return ret; \
} \
template<typename T> \
std::enable_if_t<!std::is_same<T, double>::value,
VtArray<T>> \
operator op (
VtArray<T> const &arr,
double const &scalar) { \
using Op = Vt_ArrayOpHelpScalar<T>; \
std::transform(arr.
begin(), arr.
end(), ret.begin(), \
[&scalar](T const &aObj) { \
return Op:: opName (aObj, scalar); \
}); \
return ret; \
}
Definition at line 1061 of file array.h.
◆ hash_value()
std::enable_if< VtIsHashable< ELEM >(), size_t >::type hash_value |
( |
VtArray< ELEM > const & |
array | ) |
|
◆ operator-()
◆ TfHashAppend()
std::enable_if_t< VtIsHashable< ELEM >()> TfHashAppend |
( |
HashState & |
h, |
|
|
VtArray< ELEM > const & |
array |
|
) |
| |
|
inline |
◆ Mul