This object represent the underlying nsc stack attributes and provide a ns-3-like system to access them though sysctls. More...
Inheritance diagram for ns3::NscStackStringAccessor:
Collaboration diagram for ns3::NscStackStringAccessor:Public Member Functions | |
| NscStackStringAccessor (std::string name) | |
| Constructor. More... | |
| virtual bool | Get (const ObjectBase *object, AttributeValue &val) const |
| virtual bool | HasGetter (void) const |
| virtual bool | HasSetter (void) const |
| virtual bool | Set (ObjectBase *object, const AttributeValue &val) 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... | |
| 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::string | m_name |
| name of the attribute More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::SimpleRefCount< AttributeAccessor > | |
| static void | Cleanup (void) |
| Noop. More... | |
This object represent the underlying nsc stack attributes and provide a ns-3-like system to access them though sysctls.
Definition at line 32 of file nsc-sysctl.cc.
|
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 nsc-sysctl.cc.
References ns3::Ns3NscStack::Get(), m_name, and ns3::StringValue::Set().
Here is the call graph for this function:
|
virtual |
Implements ns3::AttributeAccessor.
Definition at line 49 of file nsc-sysctl.cc.
|
virtual |
Implements ns3::AttributeAccessor.
Definition at line 54 of file nsc-sysctl.cc.
|
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 60 of file nsc-sysctl.cc.
References ns3::StringValue::Get(), m_name, and ns3::Ns3NscStack::Set().
Here is the call graph for this function:
|
private |