List of Attribute name, value and checker triples used to construct Objects. More...
#include "attribute-construction-list.h"
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< AttributeValue > | Find (Ptr< const AttributeChecker > checker) const |
| Find an Attribute in the list from its AttributeChecker. | |
Private Attributes | |
| std::list< Item > | m_list |
| The list of Items. | |
List of Attribute name, value and checker triples used to construct Objects.
Definition at line 29 of file attribute-construction-list.h.
| typedef std::list<Item>::const_iterator ns3::AttributeConstructionList::CIterator |
Iterator type.
Definition at line 44 of file attribute-construction-list.h.
| ns3::AttributeConstructionList::AttributeConstructionList | ( | ) |
Constructor.
Definition at line 23 of file attribute-construction-list.cc.
References NS_LOG_FUNCTION.
| void ns3::AttributeConstructionList::Add | ( | std::string | name, |
| Ptr< const AttributeChecker > | checker, | ||
| Ptr< AttributeValue > | value ) |
Add an Attribute to the list.
| [in] | name | The Attribute name. |
| [in] | checker | The checker to use for this Attribute. |
| [in] | value | The AttributeValue to add. |
Definition at line 29 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::operator>>.
| AttributeConstructionList::CIterator ns3::AttributeConstructionList::Begin | ( | ) | const |
Definition at line 69 of file attribute-construction-list.cc.
References m_list, and NS_LOG_FUNCTION.
Referenced by ns3::ObjectFactory::operator<<.
| AttributeConstructionList::CIterator ns3::AttributeConstructionList::End | ( | ) | const |
Definition at line 76 of file attribute-construction-list.cc.
References m_list, and NS_LOG_FUNCTION.
Referenced by ns3::ObjectFactory::operator<<.
| Ptr< AttributeValue > ns3::AttributeConstructionList::Find | ( | Ptr< const AttributeChecker > | checker | ) | const |
Find an Attribute in the list from its AttributeChecker.
| [in] | checker | The AttributeChecker to find. Typically this is the AttributeChecker from TypeId::AttributeInformation. |
Definition at line 54 of file attribute-construction-list.cc.
References m_list, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by ns3::ObjectBase::ConstructSelf().
|
private |