A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::CsmaDeviceRec Class Reference

CsmaNetDevice Record. More...

#include <csma-channel.h>

+ Collaboration diagram for ns3::CsmaDeviceRec:

Public Member Functions

 CsmaDeviceRec ()
 Is net device enabled to TX/RX. More...
 
 CsmaDeviceRec (Ptr< CsmaNetDevice > device)
 
 CsmaDeviceRec (CsmaDeviceRec const &)
 
bool IsActive ()
 

Public Attributes

bool active
 Pointer to the net device. More...
 
Ptr< CsmaNetDevicedevicePtr
 

Detailed Description

CsmaNetDevice Record.

Stores the information related to each net device that is connected to the channel.

Definition at line 41 of file csma-channel.h.

Constructor & Destructor Documentation

ns3::CsmaDeviceRec::CsmaDeviceRec ( )

Is net device enabled to TX/RX.

Definition at line 344 of file csma-channel.cc.

References active.

ns3::CsmaDeviceRec::CsmaDeviceRec ( Ptr< CsmaNetDevice device)

Definition at line 349 of file csma-channel.cc.

References active, and devicePtr.

ns3::CsmaDeviceRec::CsmaDeviceRec ( CsmaDeviceRec const &  deviceRec)

Definition at line 355 of file csma-channel.cc.

References active, and devicePtr.

Member Function Documentation

bool ns3::CsmaDeviceRec::IsActive ( )
Returns
If the net device pointed to by the devicePtr is active and ready to RX/TX.

Definition at line 362 of file csma-channel.cc.

References active.

Member Data Documentation

bool ns3::CsmaDeviceRec::active

Pointer to the net device.

Definition at line 44 of file csma-channel.h.

Referenced by CsmaDeviceRec(), and IsActive().

Ptr< CsmaNetDevice > ns3::CsmaDeviceRec::devicePtr

Definition at line 43 of file csma-channel.h.

Referenced by CsmaDeviceRec().


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