1395 |
} |
} |
1396 |
|
|
1397 |
/** |
/** |
1398 |
|
* Returns the amount of regions of this instrument. |
1399 |
|
* |
1400 |
|
* @see GetRegionAt() |
1401 |
|
*/ |
1402 |
|
size_t Instrument::CountRegions() { |
1403 |
|
if (!pRegions) LoadRegions(); |
1404 |
|
if (!pRegions) return 0; |
1405 |
|
return pRegions->size(); |
1406 |
|
} |
1407 |
|
|
1408 |
|
/** |
1409 |
* Returns Region at supplied @a pos position within the region list of |
* Returns Region at supplied @a pos position within the region list of |
1410 |
* this instrument. If supplied @a pos is out of bounds then @c NULL is |
* this instrument. If supplied @a pos is out of bounds then @c NULL is |
1411 |
* returned. |
* returned. |
1413 |
* @param pos - position of sought Region in region list |
* @param pos - position of sought Region in region list |
1414 |
* @returns pointer address to requested region or @c NULL if @a pos is |
* @returns pointer address to requested region or @c NULL if @a pos is |
1415 |
* out of bounds |
* out of bounds |
1416 |
|
* @see CountRegions() |
1417 |
*/ |
*/ |
1418 |
Region* Instrument::GetRegionAt(size_t pos) { |
Region* Instrument::GetRegionAt(size_t pos) { |
1419 |
if (!pRegions) LoadRegions(); |
if (!pRegions) LoadRegions(); |