31 GemSlice(
const std::vector<PitchGem> *pGems,
int nOffset);
59 return mGems !=
nullptr ?
static_cast<int>(mGems->size()) : 0;
71 return mGems->at(nIndex);
92 const std::vector<PitchGem> *mGems;
const PitchGem & At(int nIndex) const
Report the gem at an index.
Definition gemslice.h:70
GemSlice()
Construct a view of no gems.
GemSlice & operator=(const GemSlice &other)
Copy another view.
~GemSlice()
Release the view.
int GetOffset() const
Definition gemslice.h:87
int Size() const
Report the number of gems.
Definition gemslice.h:58
GemSlice(const std::vector< PitchGem > *pGems, int nOffset)
Construct a view of the gems of a bar.
int TickAt(int nIndex) const
Report the tick of the gem at an index, moved to the bar the song plays.
Definition gemslice.h:82
One gem of a pitch track.
Definition pitchgem.h:8
int GetTick() const
Definition pitchgem.h:36