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 412 of file pair.h.

◆ 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 298 of file pair.h.

Referenced by AttributeContainerObject::GetTypeId(), and ns3::EhtConfiguration::GetTypeId().

+ 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 281 of file pair.h.

◆ 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 288 of file pair.h.