gem5  v20.1.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Net::UdpPtr Class Reference

#include <inet.hh>

Public Member Functions

 UdpPtr ()
 
 UdpPtr (const IpPtr &ptr)
 
 UdpPtr (const Ip6Ptr &ptr)
 
 UdpPtr (const UdpPtr &ptr)
 
UdpHdrget ()
 
UdpHdroperator-> ()
 
UdpHdroperator* ()
 
const UdpHdrget () const
 
const UdpHdroperator-> () const
 
const UdpHdroperator* () const
 
const UdpPtroperator= (const IpPtr &i)
 
const UdpPtroperator= (const UdpPtr &t)
 
const EthPacketPtr packet () const
 
EthPacketPtr packet ()
 
bool operator! () const
 
 operator bool () const
 
int off () const
 
int pstart () const
 

Protected Member Functions

void set (const EthPacketPtr &ptr, int offset)
 
void set (const IpPtr &ptr)
 
void set (const Ip6Ptr &ptr)
 

Protected Attributes

EthPacketPtr p
 
int _off
 

Detailed Description

Definition at line 751 of file inet.hh.

Constructor & Destructor Documentation

◆ UdpPtr() [1/3]

Net::UdpPtr::UdpPtr ( const IpPtr ptr)
inline

Definition at line 778 of file inet.hh.

References set().

◆ UdpPtr() [2/3]

Net::UdpPtr::UdpPtr ( const Ip6Ptr ptr)
inline

Definition at line 779 of file inet.hh.

References set().

◆ UdpPtr() [3/3]

Net::UdpPtr::UdpPtr ( const UdpPtr ptr)
inline

Definition at line 780 of file inet.hh.

Member Function Documentation

◆ get() [1/2]

UdpHdr* Net::UdpPtr::get ( )
inline

Definition at line 783 of file inet.hh.

References _off, and p.

Referenced by operator*(), operator->(), and pstart().

◆ get() [2/2]

const UdpHdr* Net::UdpPtr::get ( ) const
inline

Definition at line 787 of file inet.hh.

References _off, and p.

◆ operator*() [1/2]

UdpHdr& Net::UdpPtr::operator* ( )
inline

Definition at line 785 of file inet.hh.

References get().

◆ operator*() [2/2]

const UdpHdr& Net::UdpPtr::operator* ( ) const
inline

Definition at line 789 of file inet.hh.

References get().

◆ operator->() [1/2]

UdpHdr* Net::UdpPtr::operator-> ( )
inline

Definition at line 784 of file inet.hh.

References get().

◆ operator->() [2/2]

const UdpHdr* Net::UdpPtr::operator-> ( ) const
inline

Definition at line 788 of file inet.hh.

References get().

◆ set() [1/3]

void Net::UdpPtr::set ( const EthPacketPtr ptr,
int  offset 
)
inlineprotected

Definition at line 757 of file inet.hh.

References _off, ArmISA::offset, and p.

Referenced by operator=(), set(), and UdpPtr().

◆ set() [2/3]

void Net::UdpPtr::set ( const Ip6Ptr ptr)
inlineprotected

Definition at line 765 of file inet.hh.

References Net::Ip6Ptr::p, Net::Ip6Hdr::proto(), Net::Ip6Ptr::pstart(), and set().

◆ set() [3/3]

void Net::UdpPtr::set ( const IpPtr ptr)
inlineprotected

Definition at line 758 of file inet.hh.

References Net::IpPtr::p, Net::IpHdr::proto(), Net::IpPtr::pstart(), and set().

Member Data Documentation

◆ _off

int Net::UdpPtr::_off
protected

Definition at line 755 of file inet.hh.

Referenced by get(), off(), and set().

◆ p

EthPacketPtr Net::UdpPtr::p
protected

Definition at line 754 of file inet.hh.

Referenced by get(), operator bool(), operator!(), packet(), and set().


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

Generated on Wed Sep 30 2020 14:03:07 for gem5 by doxygen 1.8.17