Description of a compound type's internal structure.
More...
#include <type.hpp>
|
| struct | element |
| | Tuple containing a name, a type and an offset, which are used to describe a single element of a compound type. More...
|
| |
Description of a compound type's internal structure.
Type of an iterator over all members of the compound type.
| echelon::type_layout::type_layout |
( |
std::size_t |
size_ | ) |
|
|
inlineexplicit |
Constructs an empty layout for a compound type with a given total size.
- Parameters
-
| size_ | total size of the compound type in bytes |
| void echelon::type_layout::add_element |
( |
std::string |
name, |
|
|
const type & |
element_type, |
|
|
std::size_t |
offset |
|
) |
| |
|
inline |
Adds a new member to the compound type.
- Parameters
-
| name | name of the member |
| element_type | type of the member |
| offset | offset of the member within the compound type in bytes |
| iterator echelon::type_layout::begin |
( |
| ) |
const |
|
inline |
Returns an iterator, which points to the first member within the compound type.
| iterator echelon::type_layout::end |
( |
| ) |
const |
|
inline |
Returns an iterator, which points beyond the last member within the compound type.
| std::size_t echelon::type_layout::size |
( |
| ) |
const |
|
inline |
Total size of the compound type in bytes.
The documentation for this class was generated from the following file: