control access to objects' trace sources More...
#include <trace-source-accessor.h>
Inheritance diagram for ns3::TraceSourceAccessor:Public Member Functions | |
| 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 |
Public Member Functions inherited from ns3::SimpleRefCount< TraceSourceAccessor > | |
| SimpleRefCount (const SimpleRefCount &o) | |
| uint32_t | GetReferenceCount (void) const |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| void | Ref (void) const |
| void | Unref (void) const |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::SimpleRefCount< TraceSourceAccessor > | |
| static void | Cleanup (void) |
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.
|
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. |