Container for a set of ns3::Object pointers. More...
#include <object-ptr-container.h>
Inheritance diagram for ns3::ObjectPtrContainerValue:
Collaboration diagram for ns3::ObjectPtrContainerValue:Public Types | |
| typedef std::map< uint32_t, Ptr< Object > >::const_iterator | Iterator |
| Iterator type for traversing this container. More... | |
Public Member Functions | |
| ObjectPtrContainerValue () | |
| Default constructor. More... | |
| Iterator | Begin (void) const |
| Get an iterator to the first Object. More... | |
| virtual Ptr< AttributeValue > | Copy (void) const |
| Get a copy of this container. More... | |
| virtual bool | DeserializeFromString (std::string value, Ptr< const AttributeChecker > checker) |
| Deserialize from a string. More... | |
| Iterator | End (void) const |
| Get an iterator to the past-the-end Object. More... | |
| Ptr< Object > | Get (uint32_t i) const |
| Get a specific Object. More... | |
| uint32_t | GetN (void) const |
| Get the number of Objects. More... | |
| virtual std::string | SerializeToString (Ptr< const AttributeChecker > checker) const |
| Serialize each of the Object pointers to a string. More... | |
Public Member Functions inherited from ns3::AttributeValue | |
| AttributeValue () | |
| virtual | ~AttributeValue () |
Public Member Functions inherited from ns3::SimpleRefCount< AttributeValue > | |
| SimpleRefCount () | |
| Constructor. More... | |
| SimpleRefCount (const SimpleRefCount &o) | |
| Copy constructor. More... | |
| uint32_t | GetReferenceCount (void) const |
| Get the reference count of the object. More... | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| Assignment. More... | |
| void | Ref (void) const |
| Increment the reference count. More... | |
| void | Unref (void) const |
| Decrement the reference count. More... | |
Private Attributes | |
| std::map< uint32_t, Ptr< Object > > | m_objects |
| The container implementation. More... | |
Friends | |
| class | ObjectPtrContainerAccessor |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::SimpleRefCount< AttributeValue > | |
| static void | Cleanup (void) |
| Noop. More... | |
Container for a set of ns3::Object pointers.
AttributeValue implementation for ObjectPtrContainer.
This class it used to get attribute access to an array of ns3::Object pointers.
Definition at line 45 of file object-ptr-container.h.
| typedef std::map<uint32_t, Ptr<Object> >::const_iterator ns3::ObjectPtrContainerValue::Iterator |
Iterator type for traversing this container.
Definition at line 49 of file object-ptr-container.h.
| ns3::ObjectPtrContainerValue::ObjectPtrContainerValue | ( | void | ) |
Default constructor.
Definition at line 33 of file object-ptr-container.cc.
References NS_LOG_FUNCTION.
| ObjectPtrContainerValue::Iterator ns3::ObjectPtrContainerValue::Begin | ( | void | ) | const |
Get an iterator to the first Object.
Definition at line 39 of file object-ptr-container.cc.
References m_objects, and NS_LOG_FUNCTION.
Referenced by LteX2HandoverTestCase::CheckConnected(), LteRrcConnectionEstablishmentTestCase::CheckConnected(), LteX2HandoverMeasuresTestCase::CheckConnected(), ns3::Resolver::DoArrayResolve(), ns3::AttributeIterator::DoIterate(), and SerializeToString().
Here is the caller graph for this function:
|
virtual |
Get a copy of this container.
Implements ns3::AttributeValue.
Definition at line 70 of file object-ptr-container.cc.
References NS_LOG_FUNCTION.
|
virtual |
Deserialize from a string.
(Not implemented; raises a fatal error.)
| value | The serialized string form. |
| checker | The checker to use. |
true. Implements ns3::AttributeValue.
Definition at line 92 of file object-ptr-container.cc.
References NS_FATAL_ERROR, and NS_LOG_FUNCTION.
| ObjectPtrContainerValue::Iterator ns3::ObjectPtrContainerValue::End | ( | void | ) | const |
Get an iterator to the past-the-end Object.
Definition at line 45 of file object-ptr-container.cc.
References m_objects, and NS_LOG_FUNCTION.
Referenced by LteX2HandoverTestCase::CheckConnected(), LteRrcConnectionEstablishmentTestCase::CheckConnected(), LteX2HandoverMeasuresTestCase::CheckConnected(), ns3::Resolver::DoArrayResolve(), ns3::AttributeIterator::DoIterate(), and SerializeToString().
Here is the caller graph for this function:Get a specific Object.
| i | The index of the requested object. |
Definition at line 57 of file object-ptr-container.cc.
References m_objects, and NS_LOG_FUNCTION.
Referenced by ObjectVectorAttributeTestCase::DoRun(), and ObjectMapAttributeTestCase::DoRun().
Here is the caller graph for this function:| uint32_t ns3::ObjectPtrContainerValue::GetN | ( | void | ) | const |
Get the number of Objects.
Definition at line 51 of file object-ptr-container.cc.
References m_objects, and NS_LOG_FUNCTION.
Referenced by LteX2HandoverTestCase::CheckConnected(), LteRrcConnectionEstablishmentTestCase::CheckConnected(), LteX2HandoverMeasuresTestCase::CheckConnected(), ObjectVectorAttributeTestCase::DoRun(), and ObjectMapAttributeTestCase::DoRun().
Here is the caller graph for this function:
|
virtual |
Serialize each of the Object pointers to a string.
Note this serializes the Ptr values, not the Objects themselves.
| checker | The checker to use (currently not used.) |
Implements ns3::AttributeValue.
Definition at line 76 of file object-ptr-container.cc.
References Begin(), End(), and NS_LOG_FUNCTION.
Here is the call graph for this function:
|
friend |
Definition at line 105 of file object-ptr-container.h.
The container implementation.
Definition at line 107 of file object-ptr-container.h.
Referenced by Begin(), End(), Get(), ns3::ObjectPtrContainerAccessor::Get(), and GetN().