ns-3
ns3::TraceSourceAccessor Class Reference

control access to objects' trace sources More...

#include <trace-source-accessor.h>

Inheritance diagram for ns3::TraceSourceAccessor:
Collaboration diagram for ns3::TraceSourceAccessor:

List of all members.

Public Member Functions

virtual bool ConnectWithoutContext (ObjectBase *obj, const CallbackBase &cb) const =0
virtual bool Connect (ObjectBase *obj, std::string context, const CallbackBase &cb) const =0
virtual bool DisconnectWithoutContext (ObjectBase *obj, const CallbackBase &cb) const =0
virtual bool Disconnect (ObjectBase *obj, std::string context, const CallbackBase &cb) const =0
- Public Member Functions inherited from ns3::SimpleRefCount< TraceSourceAccessor >
 SimpleRefCount (const SimpleRefCount &o)
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
uint32_t GetReferenceCount (void) const

Additional Inherited Members

- Static Public Member Functions inherited from ns3::SimpleRefCount< TraceSourceAccessor >
static void Cleanup (void)

Detailed Description

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.


Member Function Documentation

virtual bool ns3::TraceSourceAccessor::Connect ( ObjectBase obj,
std::string  context,
const CallbackBase cb 
) const
pure virtual
Parameters:
objthe object instance which contains the target trace source.
contextthe context to bind to the user callback.
cbthe callback to connect to the target trace source.
virtual bool ns3::TraceSourceAccessor::ConnectWithoutContext ( ObjectBase obj,
const CallbackBase cb 
) const
pure virtual
Parameters:
objthe object instance which contains the target trace source.
cbthe callback to connect to the target trace source.
virtual bool ns3::TraceSourceAccessor::Disconnect ( ObjectBase obj,
std::string  context,
const CallbackBase cb 
) const
pure virtual
Parameters:
objthe object instance which contains the target trace source.
contextthe context which was bound to the user callback.
cbthe callback to disconnect from the target trace source.
virtual bool ns3::TraceSourceAccessor::DisconnectWithoutContext ( ObjectBase obj,
const CallbackBase cb 
) const
pure virtual
Parameters:
objthe object instance which contains the target trace source.
cbthe callback to disconnect from the target trace source.

The documentation for this class was generated from the following files: