ns3::TraceSourceAccessor Class Reference
[Tracing]

control access to objects' trace sources More...

#include <trace-source-accessor.h>

List of all members.

Public Member Functions

 TraceSourceAccessor ()
virtual ~TraceSourceAccessor ()
void Ref (void) const
void Unref (void) const
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

Private Attributes

uint32_t m_count

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.

Definition at line 39 of file trace-source-accessor.h.


Constructor & Destructor Documentation

ns3::TraceSourceAccessor::TraceSourceAccessor (  ) 

Definition at line 24 of file trace-source-accessor.cc.

ns3::TraceSourceAccessor::~TraceSourceAccessor (  )  [virtual]

Definition at line 27 of file trace-source-accessor.cc.


Member Function Documentation

virtual bool ns3::TraceSourceAccessor::Connect ( ObjectBase obj,
std::string  context,
const CallbackBase cb 
) const [pure virtual]
Parameters:
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.
virtual bool ns3::TraceSourceAccessor::ConnectWithoutContext ( ObjectBase obj,
const CallbackBase cb 
) const [pure virtual]
Parameters:
obj the object instance which contains the target trace source.
cb the 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:
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.
virtual bool ns3::TraceSourceAccessor::DisconnectWithoutContext ( ObjectBase obj,
const CallbackBase cb 
) const [pure virtual]
Parameters:
obj the object instance which contains the target trace source.
cb the callback to disconnect from the target trace source.
void ns3::TraceSourceAccessor::Ref ( void   )  const

Definition at line 30 of file trace-source-accessor.cc.

References m_count.

void ns3::TraceSourceAccessor::Unref ( void   )  const

Definition at line 35 of file trace-source-accessor.cc.

References m_count.


Member Data Documentation

uint32_t ns3::TraceSourceAccessor::m_count [mutable, private]

Definition at line 70 of file trace-source-accessor.h.

Referenced by Ref(), and Unref().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:35 2009 for NS-3 by  doxygen 1.6.3