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

AttributeValue implementation for ObjectVector More...

+ Collaboration diagram for ObjectVector Attribute:

Files

file  object-vector.h
 ns3::ObjectVectorValue attribute value declarations and template implementations.
 

Classes

class  ObjectVectorChecker
 AttributeChecker implementation for ObjectVectorValue. More...
 

Typedefs

typedef ObjectPtrContainerValue ns3::ObjectVectorValue
 ObjectVectorValue is an alias for ObjectPtrContainerValue.
 

Functions

template<typename T , typename U , typename INDEX >
Ptr< const AttributeAccessorns3::MakeObjectVectorAccessor (INDEX(T::*getN)() const, Ptr< U >(T::*get)(INDEX) const)
 Create an AttributeAccessor using a container class indexed get method.
 
template<typename T , typename U , typename INDEX >
Ptr< const AttributeAccessorns3::MakeObjectVectorAccessor (Ptr< U >(T::*get)(INDEX) const, INDEX(T::*getN)() const)
 Create an AttributeAccessor using a container class indexed get method.
 
template<typename T , typename U >
Ptr< const AttributeAccessorns3::MakeObjectVectorAccessor (U T::*memberVariable)
 MakeAccessorHelper implementation for ObjectVector.
 
template<typename T >
Ptr< const AttributeCheckerns3::MakeObjectVectorChecker ()
 

Detailed Description

AttributeValue implementation for ObjectVector

Typedef Documentation

◆ ObjectVectorValue

ObjectVectorValue is an alias for ObjectPtrContainerValue.

Definition at line 29 of file object-vector.h.

Function Documentation

◆ MakeObjectVectorAccessor() [1/3]

template<typename T , typename U , typename INDEX >
Ptr< const AttributeAccessor > ns3::MakeObjectVectorAccessor ( INDEX(T::* getN )() const,
Ptr< U >(T::* get )(INDEX) const )

Create an AttributeAccessor using a container class indexed get method.

The two versions of this function differ only in argument order.

Template Parameters
T[deduced] The container class type.
U[deduced] The type of object the get method returns.
INDEX[deduced] The type of the index variable.
Parameters
[in]getThe class method to get a specific instance from the container.
[in]getNThe class method to return the number of objects in the container.
Returns
The AttributeAccessor.

Definition at line 124 of file object-vector.h.

References ns3::MakeObjectPtrContainerAccessor().

+ Here is the call graph for this function:

◆ MakeObjectVectorAccessor() [2/3]

template<typename T , typename U , typename INDEX >
Ptr< const AttributeAccessor > ns3::MakeObjectVectorAccessor ( Ptr< U >(T::* get )(INDEX) const,
INDEX(T::* getN )() const )

Create an AttributeAccessor using a container class indexed get method.

The two versions of this function differ only in argument order.

Template Parameters
T[deduced] The container class type.
U[deduced] The type of object the get method returns.
INDEX[deduced] The type of the index variable.
Parameters
[in]getThe class method to get a specific instance from the container.
[in]getNThe class method to return the number of objects in the container.
Returns
The AttributeAccessor.

Definition at line 117 of file object-vector.h.

References ns3::MakeObjectPtrContainerAccessor().

+ Here is the call graph for this function:

◆ MakeObjectVectorAccessor() [3/3]

template<typename T , typename U >
Ptr< const AttributeAccessor > ns3::MakeObjectVectorAccessor ( U T::* memberVariable)

MakeAccessorHelper implementation for ObjectVector.

Template Parameters
V[explicit] The specific AttributeValue type to use to represent the Attribute.
T[deduced] The class holding the data member.
U[deduced] The type of the data member.
Parameters
[in]memberVariableThe address of the data member.
Returns
The AttributeAccessor.

Definition at line 65 of file object-vector.h.

References NS_ASSERT.

Referenced by AttributeObjectTest::GetTypeId(), ns3::ArpL3Protocol::GetTypeId(), ns3::BuildingListPriv::GetTypeId(), ns3::ChannelListPriv::GetTypeId(), ns3::Ipv4L3ClickProtocol::GetTypeId(), ns3::Ipv4L3Protocol::GetTypeId(), ns3::Ipv6ExtensionDemux::GetTypeId(), ns3::Ipv6ExtensionRoutingDemux::GetTypeId(), ns3::Ipv6L3Protocol::GetTypeId(), ns3::Ipv6OptionDemux::GetTypeId(), ns3::Node::GetTypeId(), ns3::NodeListPriv::GetTypeId(), ns3::QueueDisc::GetTypeId(), ns3::tests::ConfigTestObject::GetTypeId(), ns3::WifiMac::GetTypeId(), and ns3::WifiNetDevice::GetTypeId().

+ Here is the caller graph for this function:

◆ MakeObjectVectorChecker()

template<typename T >
Ptr< const AttributeChecker > ns3::MakeObjectVectorChecker ( )