A reference to one field of a struct-typed Expr, returned by field().
Implicitly converts to Expr for a scalar field; supports operator[] for an array field. Using the wrong one of these for how the field was actually declared is a user_error.
Public Functions
-
operator Expr() const
Valid only for a scalar field.
-
Expr operator[](const Expr &i) const
Valid only for an array field.
i may be a runtime Expr.
-
inline int size() const
The number of elements, for an array field.
1 for a scalar field.
-
inline bool is_array() const
Whether this refers to an array field (vs.
a scalar field).
-
inline Type element_type() const
The element type of the field.