AttributeValue implementation for Tuple More...
Classes | |
class | ns3::TupleChecker |
Checker for attribute values storing tuples. More... | |
class | ns3::internal::TupleChecker< Args > |
Internal checker class templated to each AttributeChecker for each entry in the tuple. More... | |
struct | ns3::internal::TupleHelper< Args > |
Helper class defining static methods for MakeTupleChecker and MakeTupleAccessor that are called when user specifies the list of AttributeValue types included in a TupleValue type. More... | |
struct | ns3::internal::TupleHelper< std::tuple< Args... > > |
Helper class defining static methods for MakeTupleValue, MakeTupleChecker and MakeTupleAccessor that are called when user provides a std::tuple of the AttributeValue types included in a TupleValue type. More... | |
class | ns3::TupleValue< Args > |
AttributeValue implementation for Tuple. More... | |
Functions | |
template<class... Args, class T1 > | |
Ptr< const AttributeAccessor > | ns3::MakeTupleAccessor (T1 a1) |
Create an AttributeAccessor for a class data member of type tuple, or a lone class get functor or set method. | |
template<class... Args, class T1 , class T2 > | |
Ptr< const AttributeAccessor > | ns3::MakeTupleAccessor (T1 a1, T2 a2) |
Create an AttributeAccessor using a pair of get functor and set methods from a class. | |
template<class... Args, class... Ts> | |
Ptr< const AttributeChecker > | ns3::MakeTupleChecker (Ts... checkers) |
Create a TupleChecker from AttributeCheckers associated with TupleValue elements. | |
template<class T1 , class T2 > | |
auto | ns3::MakeTupleValue (T2 t) |
Create a TupleValue object. | |
AttributeValue implementation for Tuple
Ptr< const AttributeAccessor > ns3::MakeTupleAccessor | ( | T1 | a1 | ) |
Create an AttributeAccessor for a class data member of type tuple, or a lone class get functor or set method.
Args | [explicit] Attribute value types |
T1 | [deduced] The type of the class data member, or the type of the class get functor or set method. |
a1 | The address of the data member, or the get or set method. |
Definition at line 536 of file tuple.h.
References ns3::MakeTupleAccessor().
Referenced by ns3::VhtConfiguration::GetTypeId(), TupleObject::GetTypeId(), ns3::MakeTupleAccessor(), and ns3::MakeTupleAccessor().
Ptr< const AttributeAccessor > ns3::MakeTupleAccessor | ( | T1 | a1, |
T2 | a2 ) |
Create an AttributeAccessor using a pair of get functor and set methods from a class.
Args | [explicit] Attribute value types |
T1 | [deduced] The type of the class data member, or the type of the class get functor or set method. |
T2 | [deduced] The type of the getter class functor method. |
a2 | The address of the class method to set the attribute. |
a1 | The address of the data member, or the get or set method. |
Definition at line 543 of file tuple.h.
References ns3::MakeTupleAccessor().
Ptr< const AttributeChecker > ns3::MakeTupleChecker | ( | Ts... | checkers | ) |
Create a TupleChecker from AttributeCheckers associated with TupleValue elements.
Args | [explicit] Attribute value types |
Ts | [deduced] Attribute checker types |
checkers | attribute checkers |
Definition at line 529 of file tuple.h.
References ns3::MakeTupleChecker().
Referenced by AttributeContainerSerializationTestCase::DoRun(), ns3::VhtConfiguration::GetTypeId(), ns3::WifiPhy::GetTypeId(), TupleObject::GetTypeId(), and ns3::MakeTupleChecker().
auto ns3::MakeTupleValue | ( | T2 | t | ) |
Create a TupleValue object.
Enable to write code like this snippet:
T1 | [explicit] A std::tuple of the AttributeValue types included in TupleValue |
T2 | [deduced] A std::tuple of the type of elements stored by TupleValue |
t | the tuple of elements stored by TupleValue |
Definition at line 522 of file tuple.h.
References ns3::MakeTupleValue().
Referenced by TupleValueTestCase::DoRun(), TupleObject::GetTypeId(), and ns3::MakeTupleValue().