legate::StructType#

class StructType : public legate::Type#

A class for struct data types.

Public Functions

std::uint32_t num_fields() const#

Returns the number of fields.

Returns:

Number of fields

Type field_type(std::uint32_t field_idx) const#

Returns the element type.

Parameters:

field_idx – Field index. Must be within the range

Returns:

Element type

bool aligned() const#

Indicates whether the fields are aligned.

Returns:

true Fields are aligned

Returns:

false Fields are compact

std::vector<std::uint32_t> offsets() const#

Returns offsets to fields.

Returns:

Field offsets in a vector