AttributeValue form of a Callback. More...
#include <callback.h>
Public Member Functions | |
CallbackValue () | |
CallbackValue (const CallbackBase &base) | |
Copy constructor. More... | |
virtual | ~CallbackValue () |
virtual Ptr< AttributeValue > | Copy (void) const |
virtual bool | DeserializeFromString (std::string value, Ptr< const AttributeChecker > checker) |
Deserialize from string (not implemented) More... | |
template<typename T > | |
bool | GetAccessor (T &value) const |
Give value my callback, if type compatible. More... | |
virtual std::string | SerializeToString (Ptr< const AttributeChecker > checker) const |
Serialize to string. More... | |
void | Set (CallbackBase base) |
![]() | |
AttributeValue () | |
virtual | ~AttributeValue () |
![]() | |
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 | |
CallbackBase | m_value |
the CallbackBase More... | |
Additional Inherited Members | |
![]() | |
static void | Cleanup (void) |
Noop. More... | |
AttributeValue form of a Callback.
Definition at line 1658 of file callback.h.
ns3::CallbackValue::CallbackValue | ( | ) |
Definition at line 8 of file callback.cc.
References NS_LOG_FUNCTION.
ns3::CallbackValue::CallbackValue | ( | const CallbackBase & | base | ) |
|
virtual |
Definition at line 17 of file callback.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::AttributeValue.
Definition at line 29 of file callback.cc.
References m_value, and NS_LOG_FUNCTION.
|
virtual |
Deserialize from string (not implemented)
value | source string |
checker | checker to validate with |
Implements ns3::AttributeValue.
Definition at line 43 of file callback.cc.
References NS_LOG_FUNCTION.
bool ns3::CallbackValue::GetAccessor | ( | T & | value | ) | const |
Give value my callback, if type compatible.
value | destination callback |
Definition at line 1708 of file callback.h.
References m_value.
|
virtual |
Serialize to string.
checker | the checker to validate with |
Implements ns3::AttributeValue.
Definition at line 35 of file callback.cc.
References ns3::CallbackBase::GetImpl(), m_value, NS_LOG_FUNCTION, and ns3::PeekPointer().
void ns3::CallbackValue::Set | ( | CallbackBase | base | ) |
base | the Callbackbase to use |
Definition at line 22 of file callback.cc.
References m_value, and NS_LOG_FUNCTION.
|
private |
the CallbackBase
Definition at line 1695 of file callback.h.
Referenced by Copy(), GetAccessor(), SerializeToString(), and Set().