A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::ObjectPtrContainerAccessor Class Referenceabstract

#include <object-ptr-container.h>

+ Inheritance diagram for ns3::ObjectPtrContainerAccessor:
+ Collaboration diagram for ns3::ObjectPtrContainerAccessor:

Public Member Functions

virtual bool Get (const ObjectBase *object, AttributeValue &value) const
 
virtual bool HasGetter (void) const
 
virtual bool HasSetter (void) const
 
virtual bool Set (ObjectBase *object, const AttributeValue &value) const
 
- Public Member Functions inherited from ns3::AttributeAccessor
 AttributeAccessor ()
 
virtual ~AttributeAccessor ()
 
- Public Member Functions inherited from ns3::SimpleRefCount< AttributeAccessor >
 SimpleRefCount ()
 Constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 

Private Member Functions

virtual Ptr< ObjectDoGet (const ObjectBase *object, uint32_t i, uint32_t *index) const =0
 
virtual bool DoGetN (const ObjectBase *object, uint32_t *n) const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from ns3::SimpleRefCount< AttributeAccessor >
static void Cleanup (void)
 Noop. More...
 

Detailed Description

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

Member Function Documentation

virtual Ptr<Object> ns3::ObjectPtrContainerAccessor::DoGet ( const ObjectBase object,
uint32_t  i,
uint32_t *  index 
) const
privatepure virtual

Referenced by Get().

+ Here is the caller graph for this function:

virtual bool ns3::ObjectPtrContainerAccessor::DoGetN ( const ObjectBase object,
uint32_t *  n 
) const
privatepure virtual

Referenced by Get().

+ Here is the caller graph for this function:

bool ns3::ObjectPtrContainerAccessor::Get ( const ObjectBase object,
AttributeValue attribute 
) const
virtual
Parameters
objectthe object instance to get the value from
attributea pointer to where the value should be set.
Returns
true if the value could be read successfully, and stored in the input value, false otherwise.

This method expects that the caller has checked that the input value is valid with AttributeChecker::Check.

Implements ns3::AttributeAccessor.

Definition at line 101 of file object-ptr-container.cc.

References DoGet(), DoGetN(), ns3::ObjectPtrContainerValue::m_objects, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

bool ns3::ObjectPtrContainerAccessor::HasGetter ( void  ) const
virtual
Returns
true if this accessor supports the Get operation, false otherwise.

Implements ns3::AttributeAccessor.

Definition at line 125 of file object-ptr-container.cc.

References NS_LOG_FUNCTION.

bool ns3::ObjectPtrContainerAccessor::HasSetter ( void  ) const
virtual
Returns
true if this accessor supports the Set operation, false otherwise.

Implements ns3::AttributeAccessor.

Definition at line 131 of file object-ptr-container.cc.

References NS_LOG_FUNCTION.

bool ns3::ObjectPtrContainerAccessor::Set ( ObjectBase object,
const AttributeValue value 
) const
virtual
Parameters
objectthe object instance to set the value in
valuethe value to set
Returns
true if the value could be set successfully, false otherwise.

This method expects that the caller has checked that the input value is valid with AttributeChecker::Check.

Implements ns3::AttributeAccessor.

Definition at line 94 of file object-ptr-container.cc.

References NS_LOG_FUNCTION.


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