A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
Pair Attribute

AttributeValue implementation for Pair More...

+ Collaboration diagram for Pair Attribute:

Classes

class  ns3::PairChecker
 AttributeChecker implementation for PairValue. More...
 
class  ns3::internal::PairChecker< A, B >
 Internal checker class templated to each AttributeChecker for each entry in the pair. More...
 
class  ns3::PairValue< A, B >
 AttributeValue implementation for Pair. More...
 

Functions

template<typename A , typename B , typename T1 >
Ptr< const AttributeAccessorns3::MakePairAccessor (T1 a1)
 Create an AttributeAccessor for std::pair<>.
 
template<class A , class B >
Ptr< AttributeCheckerns3::MakePairChecker ()
 Make a PairChecker without abscissa and ordinate AttributeCheckers.
 
template<class A , class B >
Ptr< AttributeCheckerns3::MakePairChecker (const PairValue< A, B > &value)
 Make a PairChecker from a PairValue.
 
template<class A , class B >
Ptr< const AttributeCheckerns3::MakePairChecker (Ptr< const AttributeChecker > firstchecker, Ptr< const AttributeChecker > secondchecker)
 Make a PairChecker from abscissa and ordinate AttributeCheckers.
 

Detailed Description

AttributeValue implementation for Pair

Function Documentation

◆ MakePairAccessor()

template<typename A , typename B , typename T1 >
Ptr< const AttributeAccessor > ns3::MakePairAccessor ( T1 a1)

Create an AttributeAccessor for std::pair<>.

Template Parameters
A[explicit] The type of pair.first.
B[explicit] The type of pair.second.
T1[deduced] The argument pair type.
Parameters
[in]a1The std::pair to be accessed.
Returns
The AttributeAccessor.

Definition at line 401 of file pair.h.

References ns3::MakeAccessorHelper().

Referenced by ns3::StaWifiMac::GetTypeId(), and PairObject::GetTypeId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MakePairChecker() [1/3]

template<class A , class B >
Ptr< AttributeChecker > ns3::MakePairChecker ( )

Make a PairChecker without abscissa and ordinate AttributeCheckers.

Returns
Pointer to PairChecker instance.

Definition at line 287 of file pair.h.

References ns3::MakeSimpleAttributeChecker().

Referenced by AttributeContainerSerializationTestCase::DoRun(), ns3::ApWifiMac::GetTimeAccessParamsChecker(), AttributeContainerObject::GetTypeId(), ns3::EhtConfiguration::GetTypeId(), ns3::StaWifiMac::GetTypeId(), PairObject::GetTypeId(), ns3::ApWifiMac::GetUintAccessParamsChecker(), ns3::MakePairChecker(), and ns3::MakePairChecker().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MakePairChecker() [2/3]

template<class A , class B >
Ptr< AttributeChecker > ns3::MakePairChecker ( const PairValue< A, B > & value)

Make a PairChecker from a PairValue.

This function returns a Pointer to a non-const instance to allow subsequent setting of the underlying AttributeCheckers.

Parameters
[in]valuePairValue from which to derive abscissa and ordinate types.
Returns
Pointer to PairChecker instance.

Definition at line 270 of file pair.h.

References ns3::MakePairChecker().

+ Here is the call graph for this function:

◆ MakePairChecker() [3/3]

template<class A , class B >
Ptr< const AttributeChecker > ns3::MakePairChecker ( Ptr< const AttributeChecker > firstchecker,
Ptr< const AttributeChecker > secondchecker )

Make a PairChecker from abscissa and ordinate AttributeCheckers.

This function returns a Pointer to a const instance since both underlying AttributeCheckers are set.

Parameters
[in]firstcheckerAttributeChecker for abscissa.
[in]secondcheckerAttributeChecker for ordinate.
Returns
Pointer to PairChecker instance.

Definition at line 277 of file pair.h.

References ns3::DynamicCast(), and ns3::MakePairChecker().

+ Here is the call graph for this function: