A Discrete-Event Network Simulator
API
ns3::internal::TupleHelper< Args > Struct Template Reference

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...

#include "tuple.h"

Static Public Member Functions

template<class T1 >
static Ptr< const AttributeAccessorMakeTupleAccessor (T1 a1)
 Create an AttributeAccessor for a class data member of type tuple, or a lone class get functor or set method. More...
 
template<class T1 , class T2 >
static Ptr< const AttributeAccessorMakeTupleAccessor (T1 a1, T2 a2)
 Create an AttributeAccessor using a pair of get functor and set methods from a class. More...
 
template<class... Ts>
static Ptr< const AttributeCheckerMakeTupleChecker (Ts... checkers)
 Create a TupleChecker from AttributeCheckers associated with TupleValue elements. More...
 

Detailed Description

template<class... Args>
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.

Definition at line 432 of file tuple.h.

Member Function Documentation

◆ MakeTupleAccessor() [1/2]

template<class... Args>
template<class T1 >
static Ptr<const AttributeAccessor> ns3::internal::TupleHelper< Args >::MakeTupleAccessor ( T1  a1)
inlinestatic

Create an AttributeAccessor for a class data member of type tuple, or a lone class get functor or set method.

Template Parameters
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.
Parameters
a1The address of the data member, or the get or set method.
Returns
the AttributeAccessor

Definition at line 446 of file tuple.h.

References ns3::MakeAccessorHelper().

+ Here is the call graph for this function:

◆ MakeTupleAccessor() [2/2]

template<class... Args>
template<class T1 , class T2 >
static Ptr<const AttributeAccessor> ns3::internal::TupleHelper< Args >::MakeTupleAccessor ( T1  a1,
T2  a2 
)
inlinestatic

Create an AttributeAccessor using a pair of get functor and set methods from a class.

Template Parameters
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.
Parameters
a2The address of the class method to set the attribute.
a1The address of the data member, or the get or set method.
Returns
the AttributeAccessor

Definition at line 454 of file tuple.h.

References ns3::MakeAccessorHelper().

+ Here is the call graph for this function:

◆ MakeTupleChecker()

template<class... Args>
template<class... Ts>
static Ptr<const AttributeChecker> ns3::internal::TupleHelper< Args >::MakeTupleChecker ( Ts...  checkers)
inlinestatic

Create a TupleChecker from AttributeCheckers associated with TupleValue elements.

Template Parameters
Args[explicit] Attribute value types
Ts[deduced] Attribute checker types
Parameters
checkersattribute checkers
Returns
Pointer to TupleChecker instance.

Definition at line 438 of file tuple.h.

References ns3::Create().

+ Here is the call graph for this function:

The documentation for this struct was generated from the following file: