Skip to main content

Module type_map

Module type_map 

Source
Expand description

Mapping IDL-Primitive → C++-Type-Strings.

Follows the OMG IDL4-CPP mapping §7.4 Table 7.5 and Table 7.6 (formal/2018-07-01). Only the foundation subset (Block B): primitive scalars, strings, as well as the Foundation-Container [std::vector], std::array, [std::variant], [std::optional].

Functions§

check_identifier
Check + error conversion: returns Err if name is reserved.
floating_to_cpp
Mapping for floating subtypes. long double is reported as CppGenError::UnsupportedConstruct (block E — outside the current scope).
integer_to_cpp
Mapping for integer subtypes.
is_reserved
Checks whether an identifier is a C++ keyword.
primitive_to_cpp
Maps a PrimitiveType to the C++ type expression (as &'static str).