gem5  v21.1.0.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gem5::networking::UdpPtr Class Reference

#include <inet.hh>

Public Member Functions

 UdpPtr ()
 
 UdpPtr (const IpPtr &ptr)
 
 UdpPtr (const Ip6Ptr &ptr)
 
 UdpPtr (const UdpPtr &ptr)
 
UdpHdr * get ()
 
UdpHdr * operator-> ()
 
UdpHdr & operator* ()
 
const UdpHdr * get () const
 
const UdpHdr * operator-> () const
 
const UdpHdr & operator* () const
 
const UdpPtr & operator= (const IpPtr &i)
 
const UdpPtr & operator= (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 760 of file inet.hh.

Constructor & Destructor Documentation

◆ UdpPtr() [1/3]

gem5::networking::UdpPtr::UdpPtr ( const IpPtr &  ptr)
inline

Definition at line 787 of file inet.hh.

References set().

◆ UdpPtr() [2/3]

gem5::networking::UdpPtr::UdpPtr ( const Ip6Ptr &  ptr)
inline

Definition at line 788 of file inet.hh.

References set().

◆ UdpPtr() [3/3]

gem5::networking::UdpPtr::UdpPtr ( const UdpPtr &  ptr)
inline

Definition at line 789 of file inet.hh.

Member Function Documentation

◆ get() [1/2]

UdpHdr* gem5::networking::UdpPtr::get ( )
inline

Definition at line 792 of file inet.hh.

References _off, and p.

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

◆ get() [2/2]

const UdpHdr* gem5::networking::UdpPtr::get ( ) const
inline

Definition at line 796 of file inet.hh.

References _off, and p.

◆ operator*() [1/2]

UdpHdr& gem5::networking::UdpPtr::operator* ( )
inline

Definition at line 794 of file inet.hh.

References get().

◆ operator*() [2/2]

const UdpHdr& gem5::networking::UdpPtr::operator* ( ) const
inline

Definition at line 798 of file inet.hh.

References get().

◆ operator->() [1/2]

UdpHdr* gem5::networking::UdpPtr::operator-> ( )
inline

Definition at line 793 of file inet.hh.

References get().

◆ operator->() [2/2]

const UdpHdr* gem5::networking::UdpPtr::operator-> ( ) const
inline

Definition at line 797 of file inet.hh.

References get().

◆ set() [1/3]

void gem5::networking::UdpPtr::set ( const EthPacketPtr &  ptr,
int  offset 
)
inlineprotected

Definition at line 766 of file inet.hh.

References _off, gem5::ArmISA::offset, and p.

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

◆ set() [2/3]

void gem5::networking::UdpPtr::set ( const Ip6Ptr &  ptr)
inlineprotected

◆ set() [3/3]

void gem5::networking::UdpPtr::set ( const IpPtr &  ptr)
inlineprotected

Member Data Documentation

◆ _off

int gem5::networking::UdpPtr::_off
protected

Definition at line 764 of file inet.hh.

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

◆ p

EthPacketPtr gem5::networking::UdpPtr::p
protected

Definition at line 763 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 Tue Sep 21 2021 12:31:42 for gem5 by doxygen 1.8.17