blob: 6da9280a7326aea9b91930ec0871c09d61dfe588 [file] [log] [blame]
{%- for field in union.fields %}
{%- set kind = field.kind %}
{%- set name = field.name %}
{%- if kind|is_object_kind %}
inline void {{union.name}}DataView::Get{{name|under_to_camel}}DataView(
{{kind|cpp_data_view_type}}* output) {
DCHECK(is_{{name}}());
*output = {{kind|cpp_data_view_type}}(data_->data.f_{{name}}.Get(), context_);
}
{%- endif %}
{%- endfor %}