wavelength 1.0.0
Loading...
Searching...
No Matches
EraseBarPacket Class Reference

Packet that reports a bar of a track erased in the remix editor. More...

#include <erasebarpacket.h>

Inheritance diagram for EraseBarPacket:
Collaboration diagram for EraseBarPacket:

Public Member Functions

 ~EraseBarPacket () override=default
 Destroy the object.
 EraseBarPacket ()
 Construct a packet with no track and no bar.
 EraseBarPacket (int nTrack, int nBar)
 Construct a packet for an erased bar.
void * operator new (size_t nSize)
 Allocate a packet, billed to the class name.
void operator delete (void *pBlock)
 Release a packet.
Message * Clone () override
 Produce a heap copy of this packet.
int Type () override
 Report this packet's registered identity.
const char * GetName () const override
 Report this packet's class name.
void saveGuts (BinStream &stream) const override
 Write the track and the bar packed into one word.
void restoreGuts (BinStream &stream) override
 Read the word saveGuts() writes back into the fields.
int GetBar () const
int GetTrack () const
Public Member Functions inherited from ExternalPacket
 ExternalPacket (unsigned char nFlags=0, int nReceiver=kAllPeers)
 Construct a packet from an unset sender.
int Route () override
 Report that a received packet goes to the sink of TheNetTransport.
Public Member Functions inherited from Packet
void PrintExtra (PrnStream &stream) const override
 Write the sender and the receiver that are set, as from: and to:.
unsigned char GetFlags () const
int GetReceiver () const
int GetSender () const
void SetSender (int nSender)
Public Member Functions inherited from Message
virtual ~Message ()
 Vtable slot 1.
virtual ~Message ()
virtual void Unused1 ()
 Not called by the control.

Static Public Member Functions

static Message * New ()
 Produce a default-constructed packet on the heap.
Static Public Member Functions inherited from Message
static Message * NewMessage (int nType)
 Produce a message of the identified class through the factory list.

Additional Inherited Members

Public Types inherited from Packet
enum  RouteFlag { kRouteTransport = 1 , kRouteLaunchpad = 2 }
 Bits of Route(). More...
Static Public Attributes inherited from Packet
static constexpr int kUnset = -2
 Value of mSender and mReceiver that marks the member as unset.
static constexpr int kAllPeers = -1
 Value of mReceiver that addresses every peer.
static constexpr unsigned char kFlagOrdered = 1
 Bit of mFlags that LaunchpadRT::Send() turns into the second delivery bit of the session library.
static constexpr unsigned char kFlagGuaranteed = 2
 Bit of mFlags that NetTransport::Send() turns into its guaranteed delivery bit.
Protected Member Functions inherited from Packet
 Packet (unsigned char nFlags, int nReceiver)
 Construct a packet from an unset sender.

Detailed Description

Packet that reports a bar of a track erased in the remix editor.

The RTTI records the class as deriving from ExternalPacket. Delivery is guaranteed. The members Clone(), Type(), and GetName() are inline.

Constructor & Destructor Documentation

◆ ~EraseBarPacket()

EraseBarPacket::~EraseBarPacket ( )
overridedefault

Destroy the object.

Ghidra address:
NTSC-U/C: 0x0034b158
Ghidra address:
PAL: 0x003b8588

◆ EraseBarPacket() [1/2]

EraseBarPacket::EraseBarPacket ( )
inline

Construct a packet with no track and no bar.

Inline. New() expands it.

◆ EraseBarPacket() [2/2]

EraseBarPacket::EraseBarPacket ( int nTrack,
int nBar )
inline

Construct a packet for an erased bar.

Inline. PitchTrack::HandleInput() expands it.

Parameters
nTrackThe track.
nBarThe bar.

Member Function Documentation

◆ New()

Message * EraseBarPacket::New ( )
static

Produce a default-constructed packet on the heap.

Returns
The packet.
Ghidra address:
NTSC-U/C: 0x00123440
Ghidra address:
PAL: 0x00124bc0

◆ operator new()

void * EraseBarPacket::operator new ( size_t nSize)
inline

Allocate a packet, billed to the class name.

Parameters
nSizeThe object size the compiler supplies.
Returns
The block.

◆ operator delete()

void EraseBarPacket::operator delete ( void * pBlock)
inline

Release a packet.

Parameters
pBlockThe block.

◆ Clone()

Message * EraseBarPacket::Clone ( )
inlineoverridevirtual

Produce a heap copy of this packet.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x0034b1f8
Ghidra address:
PAL: 0x003b8628

Implements Message.

◆ Type()

int EraseBarPacket::Type ( )
inlineoverridevirtual

Report this packet's registered identity.

Returns
g_nEraseBarPacketType.
Ghidra address:
NTSC-U/C: 0x0034b270
Ghidra address:
PAL: 0x003b86a0

Implements Message.

◆ GetName()

const char * EraseBarPacket::GetName ( ) const
inlineoverridevirtual

Report this packet's class name.

Returns
The literal EraseBarPacket.
Ghidra address:
NTSC-U/C: 0x0034b280
Ghidra address:
PAL: 0x003b86b0

Implements Message.

◆ saveGuts()

void EraseBarPacket::saveGuts ( BinStream & stream) const
overridevirtual

Write the track and the bar packed into one word.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x0014e818
Ghidra address:
PAL: 0x00150198

Reimplemented from Message.

◆ restoreGuts()

void EraseBarPacket::restoreGuts ( BinStream & stream)
overridevirtual

Read the word saveGuts() writes back into the fields.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x0014e890
Ghidra address:
PAL: 0x00150210

Reimplemented from Message.

◆ GetBar()

int EraseBarPacket::GetBar ( ) const
inline
Returns
The bar erased.

◆ GetTrack()

int EraseBarPacket::GetTrack ( ) const
inline
Returns
The track.

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