#include <attribute-accessor-helper.h>
Public Member Functions | |
AccessorHelper () | |
virtual bool | Set (ObjectBase *object, const AttributeValue &val) const |
virtual bool | Get (const ObjectBase *object, AttributeValue &val) const |
Private Member Functions | |
virtual bool | DoSet (T *object, const U *v) const =0 |
virtual bool | DoGet (const T *object, U *v) const =0 |
Definition at line 57 of file attribute-accessor-helper.h.
ns3::AccessorHelper< T, U >::AccessorHelper | ( | ) | [inline] |
Definition at line 60 of file attribute-accessor-helper.h.
virtual bool ns3::AccessorHelper< T, U >::DoGet | ( | const T * | object, | |
U * | v | |||
) | const [private, pure virtual] |
Referenced by ns3::AccessorHelper< T, U >::Get().
virtual bool ns3::AccessorHelper< T, U >::DoSet | ( | T * | object, | |
const U * | v | |||
) | const [private, pure virtual] |
Referenced by ns3::AccessorHelper< T, U >::Set().
virtual bool ns3::AccessorHelper< T, U >::Get | ( | const ObjectBase * | object, | |
AttributeValue & | attribute | |||
) | const [inline, 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 76 of file attribute-accessor-helper.h.
References ns3::AccessorHelper< T, U >::DoGet().
virtual bool ns3::AccessorHelper< T, U >::Set | ( | ObjectBase * | object, | |
const AttributeValue & | value | |||
) | const [inline, 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 62 of file attribute-accessor-helper.h.
References ns3::AccessorHelper< T, U >::DoSet().