A Discrete-Event Network Simulator
API
ObjectMap Attribute

Attribute implementation for ObjectMap. More...

+ Collaboration diagram for ObjectMap Attribute:

Files

file  object-map.h
 ObjectMap attribute value declarations and template implementations.
 

Classes

class  ns3::ObjectMapChecker
 AttributeChecker implementation for ObjectMapValue. More...
 

Typedefs

typedef ObjectPtrContainerValue ns3::ObjectMapValue
 ObjectVectorMap is an alias for ObjectPtrContainerValue. More...
 

Functions

template<typename T , typename U >
Ptr< const AttributeAccessor > ns3::MakeObjectMapAccessor (U T::*memberVariable)
 MakeAccessorHelper implementation for ObjectVector. More...
 
template<typename T , typename U , typename INDEX >
Ptr< const AttributeAccessor > ns3::MakeObjectMapAccessor (Ptr< U >(T::*get)(INDEX) const, INDEX(T::*getN)(void) const)
 Create an AttributeAccessor using a container class indexed get method. More...
 
template<typename T , typename U , typename INDEX >
Ptr< const AttributeAccessor > ns3::MakeObjectMapAccessor (INDEX(T::*getN)(void) const, Ptr< U >(T::*get)(INDEX) const)
 Create an AttributeAccessor using a container class indexed get method. More...
 
template<typename T >
Ptr< const AttributeChecker > ns3::MakeObjectMapChecker (void)
 

Detailed Description

Attribute implementation for ObjectMap.

Typedef Documentation

typedef ObjectPtrContainerValue ns3::ObjectMapValue

ObjectVectorMap is an alias for ObjectPtrContainerValue.

Definition at line 40 of file object-map.h.

Function Documentation

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

MakeAccessorHelper implementation for ObjectVector.

Template Parameters
VThe specific AttributeValue type to use to represent the Attribute.
TThe class holding the data member.
UThe type of the data member.
Parameters
memberVariableThe address of the data member.
Returns
The AttributeAccessor.

Definition at line 80 of file object-map.h.

References NS_ASSERT.

Referenced by AttributeObjectTest::GetTypeId(), ns3::UeManager::GetTypeId(), ns3::LteUeRrc::GetTypeId(), ns3::WaveNetDevice::GetTypeId(), and ns3::LteEnbRrc::GetTypeId().

+ Here is the caller graph for this function:

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

Create an AttributeAccessor using a container class indexed get method.

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

Template Parameters
TThe container class type.
UThe type of object the get method returns.
INDEXThe 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 125 of file object-map.h.

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

Create an AttributeAccessor using a container class indexed get method.

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

Template Parameters
TThe container class type.
UThe type of object the get method returns.
INDEXThe 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 133 of file object-map.h.

template<typename T >
Ptr< const AttributeChecker > ns3::MakeObjectMapChecker ( void  )
Returns
The AttributeChecker.
See also
AttributeChecker

Definition at line 118 of file object-map.h.