A Discrete-Event Network Simulator
API
ObjectPtrContainer Attribute

Attribute implementation for ObjectPtrContainer. More...

+ Collaboration diagram for ObjectPtrContainer Attribute:

Files

file  object-ptr-container.cc
 ObjectPtrContainer attribute value implementation.
 
file  object-ptr-container.h
 ObjectPtrContainer attribute value declarations and template implementations.
 

Classes

class  ns3::ObjectPtrContainerAccessor
 AttributeAccessor implementation for ObjectPtrContainerValue. More...
 
class  ns3::ObjectPtrContainerChecker
 AttributeChecker implementation for ObjectPtrContainerValue. More...
 
class  ns3::ObjectPtrContainerValue
 Container for a set of ns3::Object pointers. More...
 

Functions

template<typename T , typename U , typename INDEX >
Ptr< const AttributeAccessor > ns3::MakeObjectPtrContainerAccessor (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::MakeObjectPtrContainerAccessor (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::MakeObjectPtrContainerChecker (void)
 

Detailed Description

Attribute implementation for ObjectPtrContainer.

Function Documentation

template<typename T , typename U , typename INDEX >
Ptr< const AttributeAccessor > ns3::MakeObjectPtrContainerAccessor ( 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
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 245 of file object-ptr-container.h.

Referenced by ns3::MakeObjectPtrContainerAccessor().

+ Here is the caller graph for this function:

template<typename T , typename U , typename INDEX >
Ptr< const AttributeAccessor > ns3::MakeObjectPtrContainerAccessor ( 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
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 274 of file object-ptr-container.h.

References ns3::MakeObjectPtrContainerAccessor().

+ Here is the call graph for this function:

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

Definition at line 281 of file object-ptr-container.h.