SoundFontInfoLib
2.21.6
Library for parsing and rendering SF2 files
|
Base class that offers common functionality for working with entities that are part of a collection. More...
#include <Entity.hpp>
Inherited by SF2::Entity::Bag [private]
, SF2::Entity::Instrument [private]
, and SF2::Entity::Preset [private]
.
Static Public Member Functions | |
static uint16_t | calculateSize (uint16_t next, uint16_t current) |
Calculate the number of bag elements between to items. More... | |
template<typename T > | |
static const T & | next (const T *obj) |
Obtain reference to the next item in a collection. More... | |
Base class that offers common functionality for working with entities that are part of a collection.
|
inlinestatic |
Calculate the number of bag elements between to items.
next | the bag index from the following item in the collection |
current | the bag index from the current item in the collection |
References next().
Referenced by SF2::Entity::Bag::generatorCount(), SF2::Entity::Bag::modulatorCount(), SF2::Entity::Instrument::zoneCount(), and SF2::Entity::Preset::zoneCount().
|
inlinestatic |
Obtain reference to the next item in a collection.
For a valid SF2 file, this is OK to do because all collections contain a sentinel value to mark the end of the collection.
obj | the object address to calculate with |
Referenced by calculateSize(), SF2::Entity::Bag::generatorCount(), SF2::Entity::Bag::modulatorCount(), SF2::Entity::Instrument::zoneCount(), and SF2::Entity::Preset::zoneCount().