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...
#include "tuple.h"
Static Public Member Functions | |
template<class T1 > | |
static Ptr< const AttributeAccessor > | 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 T1 , class T2 > | |
static Ptr< const AttributeAccessor > | MakeTupleAccessor (T1 a1, T2 a2) |
Create an AttributeAccessor using a pair of get functor and set methods from a class. | |
template<class... Ts> | |
static Ptr< const AttributeChecker > | MakeTupleChecker (Ts... checkers) |
Create a TupleChecker from AttributeCheckers associated with TupleValue elements. | |
static TupleValue< Args... > | MakeTupleValue (const typename TupleValue< Args... >::result_type &t) |
Create a TupleValue object. | |
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.
This struct is a partial specialization of struct TupleHelper.
|
inlinestatic |
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 486 of file tuple.h.
References ns3::MakeAccessorHelper().
|
inlinestatic |
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 495 of file tuple.h.
References ns3::MakeAccessorHelper().
|
inlinestatic |
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 477 of file tuple.h.
References ns3::Create().
|
inlinestatic |
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 |