|
wavelength 1.0.0
|
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 |
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.
| GemSlice::GemSlice | ( | ) |
Construct a view of no gems.
| GemSlice::GemSlice | ( | const std::vector< PitchGem > * | pGems, |
| int | nOffset ) |
Construct a view of the gems of a bar.
| pGems | The gems. |
| nOffset | The ticks added to the tick of each gem. |
| GemSlice::~GemSlice | ( | ) |
Release the view.
Copy another view.
| other | The view. |
|
inline |
Report the number of gems.
Inline.
|
inline |
Report the gem at an index.
Inline. A bad index reports an error and stops the program.
| nIndex | The index. |
|
inline |
Report the tick of the gem at an index, moved to the bar the song plays.
Inline.
| nIndex | The index. |
|
inline |