#include "callback.h"
Public Member Functions | |
CallbackValue () | |
Constructor. More... | |
CallbackValue (const CallbackBase &base) | |
Copy constructor. More... | |
~CallbackValue () override | |
Destructor. More... | |
Ptr< AttributeValue > | Copy () const override |
bool | DeserializeFromString (std::string value, Ptr< const AttributeChecker > checker) override |
Deserialize from string (not implemented) More... | |
template<typename T > | |
bool | GetAccessor (T &value) const |
std::string | SerializeToString (Ptr< const AttributeChecker > checker) const override |
Serialize to string. More... | |
void | Set (CallbackBase base) |
Public Member Functions inherited from ns3::AttributeValue | |
AttributeValue () | |
virtual | ~AttributeValue () |
Public Member Functions inherited from ns3::SimpleRefCount< AttributeValue > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
Private Attributes | |
CallbackBase | m_value |
Definition at line 805 of file callback.h.
ns3::CallbackValue::CallbackValue | ( | ) |
ns3::CallbackValue::CallbackValue | ( | const CallbackBase & | base | ) |
|
override |
|
overridevirtual |
Implements ns3::AttributeValue.
Definition at line 60 of file callback.cc.
References m_value, and NS_LOG_FUNCTION.
|
overridevirtual |
Deserialize from string (not implemented)
[in] | value | Source string |
[in] | checker | Checker to validate with |
true
if successful Implements ns3::AttributeValue.
Definition at line 76 of file callback.cc.
References NS_LOG_FUNCTION.
bool ns3::CallbackValue::GetAccessor | ( | T & | value | ) | const |
Definition at line 854 of file callback.h.
References m_value, and NS_FATAL_ERROR_NO_MSG.
|
overridevirtual |
Serialize to string.
[in] | checker | The checker to validate with |
Implements ns3::AttributeValue.
Definition at line 67 of file callback.cc.
References ns3::CallbackBase::GetImpl(), m_value, NS_LOG_FUNCTION, and ns3::PeekPointer().
void ns3::CallbackValue::Set | ( | CallbackBase | base | ) |
[in] | base | The CallbackBase to use |
Definition at line 52 of file callback.cc.
References m_value, and NS_LOG_FUNCTION.
|
private |
Definition at line 841 of file callback.h.
Referenced by Copy(), GetAccessor(), SerializeToString(), and Set().