#include <senf/Ext/NetEmu/InterfaceId.hh>

Public Types

enum  Bus_t { Unknown = 0, PCI = 1, PCIe, USB }
 

Public Member Functions

 InterfaceDeviceId ()
 
 InterfaceDeviceId (Bus_t b, boost::uint16_t v, boost::uint16_t d)
 
 InterfaceDeviceId (boost::uint8_t b, boost::uint16_t v, boost::uint16_t d)
 
bool operator< (InterfaceDeviceId const &other) const
 
bool operator== (InterfaceDeviceId const &other) const
 
Bus_t bus () const
 
boost::uint16_t vendor () const
 
boost::uint16_t device () const
 

Static Public Member Functions

static InterfaceDeviceId get (senf::MACAddress const &addr)
 

Static Public Attributes

static const InterfaceDeviceId None
 

Detailed Description

Definition at line 32 of file InterfaceId.hh.

Member Enumeration Documentation

◆ Bus_t

Enumerator
Unknown 
PCI 
PCIe 
USB 

Definition at line 35 of file InterfaceId.hh.

Constructor & Destructor Documentation

◆ InterfaceDeviceId() [1/3]

senf::emu::InterfaceDeviceId::InterfaceDeviceId ( )

Definition at line 60 of file InterfaceId.cc.

◆ InterfaceDeviceId() [2/3]

senf::emu::InterfaceDeviceId::InterfaceDeviceId ( Bus_t  b,
boost::uint16_t  v,
boost::uint16_t  d 
)

Definition at line 64 of file InterfaceId.cc.

◆ InterfaceDeviceId() [3/3]

senf::emu::InterfaceDeviceId::InterfaceDeviceId ( boost::uint8_t  b,
boost::uint16_t  v,
boost::uint16_t  d 
)

Definition at line 68 of file InterfaceId.cc.

Member Function Documentation

◆ bus()

senf::emu::InterfaceDeviceId::Bus_t senf::emu::InterfaceDeviceId::bus ( ) const

Definition at line 129 of file InterfaceId.cc.

◆ device()

boost::uint16_t senf::emu::InterfaceDeviceId::device ( ) const

Definition at line 141 of file InterfaceId.cc.

◆ get()

senf::emu::InterfaceDeviceId senf::emu::InterfaceDeviceId::get ( senf::MACAddress const &  addr)
static

Definition at line 76 of file InterfaceId.cc.

◆ operator<()

bool senf::emu::InterfaceDeviceId::operator< ( InterfaceDeviceId const &  other) const

Definition at line 111 of file InterfaceId.cc.

◆ operator==()

bool senf::emu::InterfaceDeviceId::operator== ( InterfaceDeviceId const &  other) const

Definition at line 121 of file InterfaceId.cc.

◆ vendor()

boost::uint16_t senf::emu::InterfaceDeviceId::vendor ( ) const

Definition at line 135 of file InterfaceId.cc.

Member Data Documentation

◆ None

senf::emu::InterfaceDeviceId const senf::emu::InterfaceDeviceId::None
static

Definition at line 41 of file InterfaceId.hh.


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