add doxygen for each TraceSourceElement subclass
parent
471e30d85e
commit
87a9c29cf7
|
@ -64,6 +64,11 @@ CsmaTraceType::GetTypeName (void) const
|
||||||
{
|
{
|
||||||
return "ns3::CsmaTraceType";
|
return "ns3::CsmaTraceType";
|
||||||
}
|
}
|
||||||
|
enum CsmaTraceType::Type
|
||||||
|
CsmaTraceType::Get (void) const
|
||||||
|
{
|
||||||
|
return m_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
CsmaNetDevice::CsmaNetDevice (Ptr<Node> node)
|
CsmaNetDevice::CsmaNetDevice (Ptr<Node> node)
|
||||||
|
|
|
@ -41,6 +41,9 @@ namespace ns3 {
|
||||||
class Queue;
|
class Queue;
|
||||||
class CsmaChannel;
|
class CsmaChannel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief hold in a TraceContext the type of trace source from a CsmaNetDevice
|
||||||
|
*/
|
||||||
class CsmaTraceType : public TraceContextElement
|
class CsmaTraceType : public TraceContextElement
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -53,6 +56,10 @@ public:
|
||||||
void Print (std::ostream &os) const;
|
void Print (std::ostream &os) const;
|
||||||
static uint16_t GetUid (void);
|
static uint16_t GetUid (void);
|
||||||
std::string GetTypeName (void) const;
|
std::string GetTypeName (void) const;
|
||||||
|
/**
|
||||||
|
* \returns the type of the trace source which generated an event.
|
||||||
|
*/
|
||||||
|
enum Type Get (void) const;
|
||||||
private:
|
private:
|
||||||
enum Type m_type;
|
enum Type m_type;
|
||||||
};
|
};
|
||||||
|
|
|
@ -38,6 +38,9 @@ namespace ns3 {
|
||||||
class Queue;
|
class Queue;
|
||||||
class PointToPointChannel;
|
class PointToPointChannel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief hold in a TraceContext the type of trace source from a PointToPointNetDevice
|
||||||
|
*/
|
||||||
class PointToPointTraceType : public TraceContextElement
|
class PointToPointTraceType : public TraceContextElement
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -44,6 +44,9 @@ class Node;
|
||||||
class TraceResolver;
|
class TraceResolver;
|
||||||
class TraceContext;
|
class TraceContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief hold in a TraceContext the type of trace source used by this Ipv4L3Protocol
|
||||||
|
*/
|
||||||
class Ipv4L3ProtocolTraceContextElement : public TraceContextElement
|
class Ipv4L3ProtocolTraceContextElement : public TraceContextElement
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -54,8 +57,17 @@ public:
|
||||||
};
|
};
|
||||||
Ipv4L3ProtocolTraceContextElement ();
|
Ipv4L3ProtocolTraceContextElement ();
|
||||||
Ipv4L3ProtocolTraceContextElement (enum Type type);
|
Ipv4L3ProtocolTraceContextElement (enum Type type);
|
||||||
|
/**
|
||||||
|
* \returns true if this is a tx event, false otherwise.
|
||||||
|
*/
|
||||||
bool IsTx (void) const;
|
bool IsTx (void) const;
|
||||||
|
/**
|
||||||
|
* \returns true if this is a rx event, false otherwise.
|
||||||
|
*/
|
||||||
bool IsRx (void) const;
|
bool IsRx (void) const;
|
||||||
|
/**
|
||||||
|
* \returns true if this is a drop event, false otherwise.
|
||||||
|
*/
|
||||||
bool IsDrop (void) const;
|
bool IsDrop (void) const;
|
||||||
void Print (std::ostream &os) const;
|
void Print (std::ostream &os) const;
|
||||||
static uint16_t GetUid (void);
|
static uint16_t GetUid (void);
|
||||||
|
@ -64,11 +76,17 @@ private:
|
||||||
enum Type m_type;
|
enum Type m_type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief hold in a TraceContext the index of an Ipv4Interface within the ipv4 stack of a Node
|
||||||
|
*/
|
||||||
class Ipv4L3ProtocolInterfaceIndex : public TraceContextElement
|
class Ipv4L3ProtocolInterfaceIndex : public TraceContextElement
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Ipv4L3ProtocolInterfaceIndex ();
|
Ipv4L3ProtocolInterfaceIndex ();
|
||||||
Ipv4L3ProtocolInterfaceIndex (uint32_t index);
|
Ipv4L3ProtocolInterfaceIndex (uint32_t index);
|
||||||
|
/**
|
||||||
|
* \returns the index of the Ipv4Interface within a Node.
|
||||||
|
*/
|
||||||
uint32_t Get (void) const;
|
uint32_t Get (void) const;
|
||||||
void Print (std::ostream &os) const;
|
void Print (std::ostream &os) const;
|
||||||
static uint16_t GetUid (void);
|
static uint16_t GetUid (void);
|
||||||
|
|
|
@ -37,11 +37,17 @@ class Node;
|
||||||
class TraceResolver;
|
class TraceResolver;
|
||||||
class TraceContext;
|
class TraceContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief hold in a TraceContext the protocol number of a L4 Protocol
|
||||||
|
*/
|
||||||
class Ipv4L4ProtocolTraceContextElement : public TraceContextElement
|
class Ipv4L4ProtocolTraceContextElement : public TraceContextElement
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Ipv4L4ProtocolTraceContextElement ();
|
Ipv4L4ProtocolTraceContextElement ();
|
||||||
Ipv4L4ProtocolTraceContextElement (int protocolNumber);
|
Ipv4L4ProtocolTraceContextElement (int protocolNumber);
|
||||||
|
/**
|
||||||
|
* \returns the protocol number as registered in the Ipv4L4Demux.
|
||||||
|
*/
|
||||||
int Get (void) const;
|
int Get (void) const;
|
||||||
void Print (std::ostream &os) const;
|
void Print (std::ostream &os) const;
|
||||||
static uint16_t GetUid (void);
|
static uint16_t GetUid (void);
|
||||||
|
|
|
@ -32,6 +32,9 @@ class Node;
|
||||||
class CallbackBase;
|
class CallbackBase;
|
||||||
class TraceResolver;
|
class TraceResolver;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief hold in a TraceContext the index of a node within a NodeList.
|
||||||
|
*/
|
||||||
class NodeListIndex : public TraceContextElement
|
class NodeListIndex : public TraceContextElement
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -39,6 +42,9 @@ public:
|
||||||
NodeListIndex (uint32_t index);
|
NodeListIndex (uint32_t index);
|
||||||
void Print (std::ostream &os);
|
void Print (std::ostream &os);
|
||||||
static uint16_t GetUid (void);
|
static uint16_t GetUid (void);
|
||||||
|
/**
|
||||||
|
* \returns the index of the node within the NodeList
|
||||||
|
*/
|
||||||
uint32_t Get (void) const;
|
uint32_t Get (void) const;
|
||||||
std::string GetTypeName (void) const;
|
std::string GetTypeName (void) const;
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -37,11 +37,17 @@ class Packet;
|
||||||
class Address;
|
class Address;
|
||||||
class CompositeTraceResolver;
|
class CompositeTraceResolver;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief hold in a TraceContext the index of a NetDevice within a Node
|
||||||
|
*/
|
||||||
class NodeNetDeviceIndex : public TraceContextElement
|
class NodeNetDeviceIndex : public TraceContextElement
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NodeNetDeviceIndex ();
|
NodeNetDeviceIndex ();
|
||||||
NodeNetDeviceIndex (uint32_t index);
|
NodeNetDeviceIndex (uint32_t index);
|
||||||
|
/**
|
||||||
|
* \returns the index of the NetDevice within its container Node.
|
||||||
|
*/
|
||||||
uint32_t Get (void) const;
|
uint32_t Get (void) const;
|
||||||
void Print (std::ostream &os) const;
|
void Print (std::ostream &os) const;
|
||||||
std::string GetTypeName (void) const;
|
std::string GetTypeName (void) const;
|
||||||
|
|
|
@ -37,6 +37,9 @@ namespace ns3 {
|
||||||
|
|
||||||
class StringEnumDefaultValue;
|
class StringEnumDefaultValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief hold in a TraceContext the type of a trace source
|
||||||
|
*/
|
||||||
class QueueTraceType : public TraceContextElement
|
class QueueTraceType : public TraceContextElement
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -48,8 +51,17 @@ public:
|
||||||
static uint16_t GetUid (void);
|
static uint16_t GetUid (void);
|
||||||
QueueTraceType ();
|
QueueTraceType ();
|
||||||
QueueTraceType (enum Type type);
|
QueueTraceType (enum Type type);
|
||||||
|
/**
|
||||||
|
* \returns true if this is an enqueue event, false otherwise.
|
||||||
|
*/
|
||||||
bool IsEnqueue (void) const;
|
bool IsEnqueue (void) const;
|
||||||
|
/**
|
||||||
|
* \returns true if this is a dequeue event, false otherwise.
|
||||||
|
*/
|
||||||
bool IsDequeue (void) const;
|
bool IsDequeue (void) const;
|
||||||
|
/**
|
||||||
|
* \returns true if this is a drop event, false otherwise.
|
||||||
|
*/
|
||||||
bool IsDrop (void) const;
|
bool IsDrop (void) const;
|
||||||
void Print (std::ostream &os) const;
|
void Print (std::ostream &os) const;
|
||||||
std::string GetTypeName (void) const;
|
std::string GetTypeName (void) const;
|
||||||
|
|
Loading…
Reference in New Issue