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< struct Item >::const_iterator | CIterator |
Iterator type. More... | |
Public Member Functions | |
AttributeConstructionList () | |
Constructor. More... | |
void | Add (std::string name, Ptr< const AttributeChecker > checker, Ptr< AttributeValue > value) |
Add an Attribute to the list. More... | |
CIterator | Begin (void) const |
CIterator | End (void) const |
Ptr< AttributeValue > | Find (Ptr< const AttributeChecker > checker) const |
Find an Attribute in the list from its AttributeChecker. More... | |
Private Attributes | |
std::list< struct Item > | m_list |
The list of Items. More... | |
List of Attribute name, value and checker triples used to construct Objects.
Definition at line 39 of file attribute-construction-list.h.
typedef std::list<struct Item>::const_iterator ns3::AttributeConstructionList::CIterator |
Iterator type.
Definition at line 53 of file attribute-construction-list.h.
ns3::AttributeConstructionList::AttributeConstructionList | ( | ) |
Constructor.
Definition at line 33 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 39 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::operator>>(), and ns3::ObjectFactory::Set().
AttributeConstructionList::CIterator ns3::AttributeConstructionList::Begin | ( | void | ) | const |
Definition at line 77 of file attribute-construction-list.cc.
References m_list, and NS_LOG_FUNCTION.
Referenced by ns3::operator<<().
AttributeConstructionList::CIterator ns3::AttributeConstructionList::End | ( | void | ) | const |
Definition at line 83 of file attribute-construction-list.cc.
References m_list, and NS_LOG_FUNCTION.
Referenced by ns3::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 62 of file attribute-construction-list.cc.
References m_list, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by ns3::ObjectBase::ConstructSelf().