Skip to main content

emit_reference_value_pattern

Function emit_reference_value_pattern 

Source
pub fn emit_reference_value_pattern(out: &mut String) -> Result<(), CppGenError>
Expand description

Emits the Reference/Value pattern from Spec §7.1.6.

dds::core::Reference<T> is a nullable smart-pointer wrapper, dds::core::Value<T> is a by-value wrapper. Both are emitted as template classes in the dds::core namespace.

§Errors

Returns CppGenError::Internal if writing into the String buffer fails.