A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::AttributeConstructionList Class Reference

List of Attribute name, value and checker triples used to construct Objects. More...

#include "attribute-construction-list.h"

+ Collaboration diagram for ns3::AttributeConstructionList:

Classes

struct  Item
 A single Attribute triple. More...
 

Public Types

typedef std::list< Item >::const_iterator CIterator
 Iterator type.
 

Public Member Functions

 AttributeConstructionList ()
 Constructor.
 
void Add (std::string name, Ptr< const AttributeChecker > checker, Ptr< AttributeValue > value)
 Add an Attribute to the list.
 
CIterator Begin () const
 
CIterator End () const
 
Ptr< AttributeValueFind (Ptr< const AttributeChecker > checker) const
 Find an Attribute in the list from its AttributeChecker.
 

Private Attributes

std::list< Itemm_list
 The list of Items.
 

Detailed Description

List of Attribute name, value and checker triples used to construct Objects.

Definition at line 40 of file attribute-construction-list.h.

Member Typedef Documentation

◆ CIterator

typedef std::list<Item>::const_iterator ns3::AttributeConstructionList::CIterator

Iterator type.

Definition at line 55 of file attribute-construction-list.h.

Constructor & Destructor Documentation

◆ AttributeConstructionList()

ns3::AttributeConstructionList::AttributeConstructionList ( )

Constructor.

Definition at line 34 of file attribute-construction-list.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ Add()

void ns3::AttributeConstructionList::Add ( std::string  name,
Ptr< const AttributeChecker checker,
Ptr< AttributeValue value 
)

Add an Attribute to the list.

Parameters
[in]nameThe Attribute name.
[in]checkerThe checker to use for this Attribute.
[in]valueThe AttributeValue to add.

Definition at line 40 of file attribute-construction-list.cc.

References ns3::AttributeConstructionList::Item::checker, m_list, ns3::AttributeConstructionList::Item::name, NS_LOG_FUNCTION, and ns3::AttributeConstructionList::Item::value.

Referenced by ns3::ObjectFactory::DoSet().

+ Here is the caller graph for this function:

◆ Begin()

AttributeConstructionList::CIterator ns3::AttributeConstructionList::Begin ( ) const
Returns
The first item in the list

Definition at line 80 of file attribute-construction-list.cc.

References m_list, and NS_LOG_FUNCTION.

◆ End()

AttributeConstructionList::CIterator ns3::AttributeConstructionList::End ( ) const
Returns
The end of the list (iterator to one past the last).

Definition at line 87 of file attribute-construction-list.cc.

References m_list, and NS_LOG_FUNCTION.

◆ Find()

Ptr< AttributeValue > ns3::AttributeConstructionList::Find ( Ptr< const AttributeChecker checker) const

Find an Attribute in the list from its AttributeChecker.

Parameters
[in]checkerThe AttributeChecker to find. Typically this is the AttributeChecker from TypeId::AttributeInformation.
Returns
The AttributeValue.

Definition at line 65 of file attribute-construction-list.cc.

References m_list, NS_LOG_DEBUG, and NS_LOG_FUNCTION.

Referenced by ns3::ObjectBase::ConstructSelf().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_list

std::list<Item> ns3::AttributeConstructionList::m_list
private

The list of Items.

Definition at line 85 of file attribute-construction-list.h.

Referenced by Add(), Begin(), End(), and Find().


The documentation for this class was generated from the following files: