resonance 1.0.1
Loading...
Searching...
No Matches
RiffSet Class Reference

The riffs of one phrase, one per difficulty level. More...

#include <riffset.h>

Collaboration diagram for RiffSet:

Public Member Functions

void * operator new (size_t nSize)
 Allocate a set from the tagged heap under the tag RiffSet.
void operator delete (void *pBlock)
 Release a set to the tagged heap.
 RiffSet ()
 Construct a set with no riff at any level.
 ~RiffSet ()
 Give back the reference to every riff the set has.
void Print (std::ostream &stream)
 Write every level to a diagnostic stream, one line each, with [empty] for a missing riff.

Public Attributes

Riff * mRiffs [kRiffSetLevelCount]

Detailed Description

The riffs of one phrase, one per difficulty level.

The class emits no RTTI and is not polymorphic. Its title is attested by the allocation tag RiffSet, under which TrackData allocates it and its destructor releases it. The object is 0x10 bytes of four riff pointers indexed by Riff::mId.

TrackData deletes every RiffSet it creates through TrackData::mRiffSetsOwned, and each bar the set covers refers to it from the bar's riff list.

Constructor & Destructor Documentation

◆ RiffSet()

RiffSet::RiffSet ( )

Construct a set with no riff at any level.

Ghidra address:
NTSC-U/C: 0x001cecc0
Ghidra address:
PAL: 0x001d4b78

◆ ~RiffSet()

RiffSet::~RiffSet ( )

Give back the reference to every riff the set has.

Ghidra address:
NTSC-U/C: 0x001cecf0
Ghidra address:
PAL: 0x001d4ba8

Member Function Documentation

◆ operator new()

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

Allocate a set from the tagged heap under the tag RiffSet.

No out-of-line body exists. TrackData expands the call inline.

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

◆ operator delete()

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

Release a set to the tagged heap.

No out-of-line body exists. The deleting destructor expands the call inline.

Parameters
pBlockThe block.

◆ Print()

void RiffSet::Print ( std::ostream & stream)

Write every level to a diagnostic stream, one line each, with [empty] for a missing riff.

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

Member Data Documentation

◆ mRiffs

Riff* RiffSet::mRiffs[kRiffSetLevelCount]

The riff of each level, or null. +0x00


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