ttg::SplitMetadataDescriptor< T > Struct Template Reference

Documentation

template<typename T>
struct ttg::SplitMetadataDescriptor< T >

SplitMetadataDescriptor is a serialization descriptor provided by the user for a user-specified type. It should contain the following public member functions:

<metadata_type> get_metadata(const T& t);

which returns the metadata that describes the object, e.g., shape information. This data will be passed to

auto create_from_metadata(const <metadata_type>& meta);

which returns a new instance of T, initialized with the previously provided metadata. This instance will be deserialization target.

Both the serialization source and the deserialization target objects will be passed to

auto get_data(T& t);

which returns a collection of

See also
ttg::iovec instances describing the payload data to be transferred from the source to the target object.

Definition at line 35 of file splitmd_data_descriptor.h.


The documentation for this struct was generated from the following file: