MIP_SDK
v3.0.0-343-g605b467
MicroStrain Communications Library for embedded systems
|
Functions | |
Type | serializedType (const TypeInfo &type) |
Determines the type used for serialization purposes. More... | |
constexpr size_t | serializedSizeForBasicType (Type type, const void *info=nullptr) |
Gets the size of a basic type (including bitfields and enums if class_ is not NULL). More... | |
constexpr size_t | serializedSizeForBasicType (const TypeInfo &type) |
constexpr const char * | nameForBasicType (Type type) |
constexpr const char * | nameOfType (const TypeInfo &type) |
constexpr void | getOffsetForAlignment (const TypeInfo &type, size_t ¤t_offset) |
constexpr size_t | sizeForBasicType (const TypeInfo &type) |
constexpr size_t | sizeForBasicType (const Type type, const void *info=nullptr) |
Gets the size of a basic type (including bitfields and enums if info is not NULL). More... | |
constexpr size_t | alignmentForBasicType (const TypeInfo &type) |
constexpr size_t | alignmentForBasicType (const Type type, const void *info=nullptr) |
Gets the size of a basic type (including bitfields and enums if info is not NULL). More... | |
const ParameterInfo * | getParameterInfoFromStructMemberOffset (const size_t offset, const StructInfo &field_info) |
Get a pointer to a parameter given the offset of the member in the class/struct. More... | |
const ParameterInfo * | getNestedParameterInfoFromStructMemberOffset (const size_t base_offset, const size_t nested_offset, const StructInfo &field_info) |
Get a pointer to a parameter given the offset of the member in the class/struct. More... | |
const ParameterInfo * | getParameterInfoForMember (const StructInfo &struct_info, const char *param_name, const size_t dummy=0) |
Get a pointer to a parameter given the member of a MIP type. More... | |
|
constexpr |
Gets the size of a basic type (including bitfields and enums if info is not NULL).
|
constexpr |
|
inline |
Get a pointer to a parameter given the offset of the member in the class/struct.
base_offset | The offset of the member within the struct/class. Use the C++ offsetof or a variant to get this value |
nested_offset | The offset of the member within the struct/class. Use the C++ offsetof or a variant to get this value |
field_info | Metadata field info to look up parameter info for |
|
constexpr |
|
inline |
Get a pointer to a parameter given the member of a MIP type.
struct_info | Metadata struct info to find the member of |
param_name | The name of the member to find info for |
dummy | Dummy variable for macro compile checks and code completion |
|
inline |
Get a pointer to a parameter given the offset of the member in the class/struct.
offset | The offset of the member within the struct/class. Use the C++ offsetof or a variant to get this value |
field_info | Metadata field info to look up parameter info for |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Gets the size of a basic type (including bitfields and enums if class_ is not NULL).
Determines the type used for serialization purposes.
This essentially translates bitfields and enums to their underlying types.
|
constexpr |
Gets the size of a basic type (including bitfields and enums if info is not NULL).
|
constexpr |