#include <object-vector.h>
Public Member Functions | |
virtual bool | Set (ObjectBase *object, const AttributeValue &value) const |
virtual bool | Get (const ObjectBase *object, AttributeValue &value) const |
virtual bool | HasGetter (void) const |
virtual bool | HasSetter (void) const |
Private Member Functions | |
virtual bool | DoGetN (const ObjectBase *object, uint32_t *n) const =0 |
virtual Ptr< Object > | DoGet (const ObjectBase *object, uint32_t i) const =0 |
Definition at line 119 of file object-vector.h.
virtual Ptr<Object> ns3::ObjectVectorAccessor::DoGet | ( | const ObjectBase * | object, | |
uint32_t | i | |||
) | const [private, pure virtual] |
Referenced by Get().
virtual bool ns3::ObjectVectorAccessor::DoGetN | ( | const ObjectBase * | object, | |
uint32_t * | n | |||
) | const [private, pure virtual] |
Referenced by Get().
bool ns3::ObjectVectorAccessor::Get | ( | const ObjectBase * | object, | |
AttributeValue & | attribute | |||
) | const [virtual] |
object | the object instance to get the value from | |
attribute | a pointer to where the value should be set. |
This method expects that the caller has checked that the input value is valid with AttributeChecker::Check.
Implements ns3::AttributeAccessor.
Definition at line 62 of file object-vector.cc.
References DoGet(), DoGetN(), and ns3::ObjectVectorValue::m_objects.
bool ns3::ObjectVectorAccessor::HasGetter | ( | void | ) | const [virtual] |
Implements ns3::AttributeAccessor.
Definition at line 84 of file object-vector.cc.
bool ns3::ObjectVectorAccessor::HasSetter | ( | void | ) | const [virtual] |
Implements ns3::AttributeAccessor.
Definition at line 89 of file object-vector.cc.
bool ns3::ObjectVectorAccessor::Set | ( | ObjectBase * | object, | |
const AttributeValue & | value | |||
) | const [virtual] |
object | the object instance to set the value in | |
value | the value to set |
This method expects that the caller has checked that the input value is valid with AttributeChecker::Check.
Implements ns3::AttributeAccessor.
Definition at line 56 of file object-vector.cc.