AttributeValue implementation for structures. More...
Files | |
| file | struct.h |
| Guidelines for defining attributes represented by structures. | |
Classes | |
| class | ns3::StructChecker |
| Checker for attribute values representing structures. More... | |
| class | ns3::internal::StructChecker< T > |
| Internal StructChecker implementation. More... | |
| class | ns3::internal::StructChecker< StructValue< T, Fields... > > |
| StructChecker specialization for a StructValue. More... | |
| class | ns3::StructValue< T, Descriptors > |
| AttributeValue implementation for structures. More... | |
Functions | |
| template<typename T, typename T1> | |
| Ptr< const AttributeAccessor > | ns3::MakeStructAccessor (T1 a1) |
| Create an AttributeAccessor for a structure data member, or for a lone class get functor or set method. | |
| template<typename T, typename T1, typename T2> | |
| Ptr< const AttributeAccessor > | ns3::MakeStructAccessor (T1 a1, T2 a2) |
| Create an AttributeAccessor using a pair of get functor and set methods. | |
| template<typename T, typename... Ts> | |
| Ptr< const AttributeChecker > | ns3::MakeStructChecker (Ts... checkers) |
| Create a StructChecker from the AttributeCheckers associated with the fields. | |
AttributeValue implementation for structures.
| Ptr< const AttributeAccessor > ns3::MakeStructAccessor | ( | T1 | a1 | ) |
Create an AttributeAccessor for a structure data member, or for a lone class get functor or set method.
| T | The StructValue type used by the attribute. |
| T1 | The type of the class data member, get functor, or set method. |
| a1 | The address of the data member, get functor, or set method. |
Definition at line 765 of file struct.h.
References MakeAccessorHelper().
Referenced by ns3::ObjectWithTimeSpanAttribute::GetTypeId(), and StructObject::GetTypeId().
| Ptr< const AttributeAccessor > ns3::MakeStructAccessor | ( | T1 | a1, |
| T2 | a2 ) |
Create an AttributeAccessor using a pair of get functor and set methods.
| T | The StructValue type used by the attribute. |
| T1 | The type of the first method. |
| T2 | The type of the second method. |
| a1 | The address of the first method. |
| a2 | The address of the second method. |
Definition at line 772 of file struct.h.
References MakeAccessorHelper().
| Ptr< const AttributeChecker > ns3::MakeStructChecker | ( | Ts... | checkers | ) |
Create a StructChecker from the AttributeCheckers associated with the fields.
| T | The StructValue type to check. |
| Ts | The AttributeChecker types. |
| checkers | AttributeCheckers for the individual fields. |
Definition at line 758 of file struct.h.
References Create().
Referenced by StructValueTestCase::DoRun(), ns3::ObjectWithTimeSpanAttribute::GetTypeId(), and StructObject::GetTypeId().