|
| template<std::size_t... Is> |
| static constexpr bool | IsConstructorInvocable (std::index_sequence< Is... >) |
| | Check whether the constructor function accepts all field values.
|
| template<std::size_t... Is> |
| static constexpr bool | IsDirectlyConstructible (std::index_sequence< Is... >) |
| | Check whether the structure can be constructed directly from field values.
|
| template<typename Field> |
| static auto | ReadField (const T &object) |
| | Read a field through its AttributeValue type.
|
| template<typename Field, typename Value> |
| static void | SetField (T &object, Value &&value) |
| | Set a structure field through its data member or setter.
|
| template<std::size_t... Is> |
| static void | SetFields (T &object, tuple_type &&values, std::index_sequence< Is... >) |
| | Set the fields of a structure from tuple elements.
|
template<typename T, auto Constructor, typename... Fields>
requires (StructFieldFor<Fields, T> && ...)
struct ns3::internal::StructValueTraitsBase< T, Constructor, Fields >
Provide the implementation details of StructValue for a set of fields.
- Template Parameters
-
| T | The represented structure type. |
| Constructor | Function used to construct the structure, or nullptr. |
| Fields | Fields represented by StructValue. |
Definition at line 309 of file struct.h.
template<typename T, auto Constructor, typename... Fields>
template<typename T, auto Constructor, typename... Fields>
template<std::size_t... Is>
template<typename T, auto Constructor, typename... Fields>
template<std::size_t... Is>
template<typename T, auto Constructor, typename... Fields>
template<typename Field, typename Value>
Set a structure field through its data member or setter.
- Template Parameters
-
| Field | Descriptor of the field to set. |
| Value | Type of the field value. |
- Parameters
-
| object | The structure whose field is set. |
| value | The value to set. |
Definition at line 597 of file struct.h.
References NS_ABORT_MSG_UNLESS, and SetField().
Referenced by SetField(), and SetFields().
template<typename T, auto Constructor, typename... Fields>
template<std::size_t... Is>
Set the fields of a structure from tuple elements.
- Template Parameters
-
| Is | Indices of the fields to set. |
- Parameters
-
| object | The structure whose fields are set. |
| values | The tuple containing the field values. |
Definition at line 585 of file struct.h.
References SetField().
Referenced by Construct().