control access to objects' trace sources More...
#include <trace-source-accessor.h>
Public Member Functions | |
TraceSourceAccessor () | |
virtual | ~TraceSourceAccessor () |
virtual bool | Connect (ObjectBase *obj, std::string context, const CallbackBase &cb) const =0 |
virtual bool | ConnectWithoutContext (ObjectBase *obj, const CallbackBase &cb) const =0 |
virtual bool | Disconnect (ObjectBase *obj, std::string context, const CallbackBase &cb) const =0 |
virtual bool | DisconnectWithoutContext (ObjectBase *obj, const CallbackBase &cb) const =0 |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
static void | Cleanup (void) |
Noop. More... | |
control access to objects' trace sources
This class abstracts the kind of trace source to which we want to connect and provides services to Connect and Disconnect a sink to a trace source.
Definition at line 40 of file trace-source-accessor.h.
ns3::TraceSourceAccessor::TraceSourceAccessor | ( | ) |
Definition at line 27 of file trace-source-accessor.cc.
|
virtual |
Definition at line 30 of file trace-source-accessor.cc.
|
pure virtual |
obj | the object instance which contains the target trace source. |
context | the context to bind to the user callback. |
cb | the callback to connect to the target trace source. |
|
pure virtual |
obj | the object instance which contains the target trace source. |
cb | the callback to connect to the target trace source. |
|
pure virtual |
obj | the object instance which contains the target trace source. |
context | the context which was bound to the user callback. |
cb | the callback to disconnect from the target trace source. |
|
pure virtual |
obj | the object instance which contains the target trace source. |
cb | the callback to disconnect from the target trace source. |