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

View of the gems of one bar of a pitch track's song as written, moved to a bar the song plays. More...

#include <gemslice.h>

Public Member Functions

 GemSlice ()
 Construct a view of no gems.
 GemSlice (const std::vector< PitchGem > *pGems, int nOffset)
 Construct a view of the gems of a bar.
 ~GemSlice ()
 Release the view.
GemSlice & operator= (const GemSlice &other)
 Copy another view.
int Size () const
 Report the number of gems.
const PitchGem & At (int nIndex) const
 Report the gem at an index.
int TickAt (int nIndex) const
 Report the tick of the gem at an index, moved to the bar the song plays.
int GetOffset () const

Detailed Description

View of the gems of one bar of a pitch track's song as written, moved to a bar the song plays.

The class is not polymorphic and has no RTTI. The name is inferred. Its members are out of line, and only the ones its callers here use are declared.

Constructor & Destructor Documentation

◆ GemSlice() [1/2]

GemSlice::GemSlice ( )

Construct a view of no gems.

Ghidra address:
NTSC-U/C: 0x00151a10
Ghidra address:
PAL: 0x00153258

◆ GemSlice() [2/2]

GemSlice::GemSlice ( const std::vector< PitchGem > * pGems,
int nOffset )

Construct a view of the gems of a bar.

Parameters
pGemsThe gems.
nOffsetThe ticks added to the tick of each gem.
Ghidra address:
NTSC-U/C: 0x00151a20
Ghidra address:
PAL: 0x00153268

◆ ~GemSlice()

GemSlice::~GemSlice ( )

Release the view.

Ghidra address:
NTSC-U/C: 0x00151a30
Ghidra address:
PAL: 0x00153278

Member Function Documentation

◆ operator=()

GemSlice & GemSlice::operator= ( const GemSlice & other)

Copy another view.

Parameters
otherThe view.
Returns
This view.
Ghidra address:
NTSC-U/C: 0x00151a58
Ghidra address:
PAL: 0x001532a0

◆ Size()

int GemSlice::Size ( ) const
inline

Report the number of gems.

Inline.

Returns
The number of gems, or 0 for a view of no gems.

◆ At()

const PitchGem & GemSlice::At ( int nIndex) const
inline

Report the gem at an index.

Inline. A bad index reports an error and stops the program.

Parameters
nIndexThe index.
Returns
The gem.

◆ TickAt()

int GemSlice::TickAt ( int nIndex) const
inline

Report the tick of the gem at an index, moved to the bar the song plays.

Inline.

Parameters
nIndexThe index.
Returns
The tick.

◆ GetOffset()

int GemSlice::GetOffset ( ) const
inline
Returns
The ticks added to the tick of each gem.

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