#include <attribute.h>
Public Member Functions | |
virtual bool | Set (ObjectBase *object, const AttributeValue &value) const =0 |
virtual bool | Get (const ObjectBase *object, AttributeValue &attribute) const =0 |
virtual bool | HasGetter (void) const =0 |
virtual bool | HasSetter (void) const =0 |
The goal of this class is to hide from the user how an attribute is actually set or get to or from a class instance. Implementations of this base class are usually provided through the MakeAccessorHelper template functions, hidden behind an ATTRIBUTE_HELPER_* macro.
virtual bool ns3::AttributeAccessor::Get | ( | const ObjectBase * | object, | |
AttributeValue & | attribute | |||
) | const [pure virtual] |
object | the object instance to get the value from | |
attribute | a pointer to where the value should be set. |
virtual bool ns3::AttributeAccessor::HasGetter | ( | void | ) | const [pure virtual] |
virtual bool ns3::AttributeAccessor::HasSetter | ( | void | ) | const [pure virtual] |
virtual bool ns3::AttributeAccessor::Set | ( | ObjectBase * | object, | |
const AttributeValue & | value | |||
) | const [pure virtual] |
object | the object instance to set the value in | |
value | the value to set |