#include <datatypelib.h>
TupleDataType represents a custom tuple type created at runtime with ParametricTypes::Tuple. If a DataType is of the kind VALUEKIND::TUPLE or VALUEKIND::NAMED_TUPLE, you can safely cast it to TupleDataType. The memory layout of a TupleDataType is compatible with the corresponding C++ layout of standard-layout classes.
Additional Inherited Members | |
Public Types inherited from DataType | |
enum class | BASE_OF_MODE { NONE , ORDERED_TYPE_ONLY , UNORDERED_BY_NAME , GENERIC_DOWNCAST } |
using | Conversion = Delegate< Result< void >(const DataPtr &dest, const ConstDataPtr &src)> |
Static Public Member Functions inherited from DataType | |
static MAXON_ATTRIBUTE_FORCE_INLINE const DataType & | NullValue () |
static Result< DataType > | Get (const Id &typeId) |
template<typename DEST , typename SRC > | |
static Result< void > | AddConversion (CONVERSION_FLAGS kind, Result< void >(*conversion)(DEST &dest, const SRC &src)) |
Returns the byte offset of the tuple member at the given index. I.e., if s
is a TupleValue*
, the member at index
will be found at the returned offset from s
. Members with higher index have a higher offset. The memory layout of a TupleDataType is compatible with the C++ layout of standard-layout classes.
[in] | index | Index of the member. |
|
default |
|
explicit |
|
explicitdelete |