DESERT 3.5.1
Loading...
Searching...
No Matches
hdr_tokenbus Struct Reference

#include <uwtokenbus_hdr.h>

Public Member Functions

tokenid_ttokenId ()
 
size_t getSize () const
 

Static Public Member Functions

static int & offset ()
 
static struct hdr_tokenbusaccess (const Packet *p)
 

Public Attributes

tokenid_t token_id_
 

Static Public Attributes

static int offset_ = 0
 

Detailed Description

Header of the token bus protocol.

Definition at line 54 of file uwtokenbus_hdr.h.

Member Function Documentation

◆ access()

static struct hdr_tokenbus * hdr_tokenbus::access ( const Packet *  p)
inlinestatic

Returns a pointer to the tokenbus header of the packet p.

Parameters
pPacket
Returns
a pointer to the tokenbus header of the packet p

Definition at line 92 of file uwtokenbus_hdr.h.

◆ getSize()

size_t hdr_tokenbus::getSize ( ) const
inline

Returns the size of this header.

Returns
the size of this header

Definition at line 72 of file uwtokenbus_hdr.h.

◆ offset()

static int & hdr_tokenbus::offset ( )
inlinestatic

Returns a reference to the offset variable.

Returns
a reference to the offset variable

Definition at line 81 of file uwtokenbus_hdr.h.

◆ tokenId()

tokenid_t & hdr_tokenbus::tokenId ( )
inline

Returns a reference to the token_id variable.

Returns
a reference to the token_id variable

Definition at line 63 of file uwtokenbus_hdr.h.

Member Data Documentation

◆ offset_

int hdr_tokenbus::offset_ = 0
static

Required by the PacketHeaderManager.

Definition at line 56 of file uwtokenbus_hdr.h.

◆ token_id_

tokenid_t hdr_tokenbus::token_id_

progressive token id, indicates which node has the token

Definition at line 57 of file uwtokenbus_hdr.h.


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