189 |
pArticulations = NULL; |
pArticulations = NULL; |
190 |
} |
} |
191 |
|
|
192 |
|
/** |
193 |
|
* Returns Articulation at supplied @a pos position within the articulation |
194 |
|
* list. If supplied @a pos is out of bounds then @c NULL is returned. |
195 |
|
* |
196 |
|
* @param pos - position of sought Articulation in articulation list |
197 |
|
* @returns pointer address to requested articulation or @c NULL if @a pos |
198 |
|
* is out of bounds |
199 |
|
*/ |
200 |
|
Articulation* Articulator::GetArticulation(size_t pos) { |
201 |
|
if (!pArticulations) LoadArticulations(); |
202 |
|
if (!pArticulations) return NULL; |
203 |
|
if (pos >= pArticulations->size()) return NULL; |
204 |
|
return (*pArticulations)[pos]; |
205 |
|
} |
206 |
|
|
207 |
|
/** |
208 |
|
* Returns the first Articulation in the list of articulations. You have to |
209 |
|
* call this method once before you can use GetNextArticulation(). |
210 |
|
* |
211 |
|
* @returns pointer address to first Articulation or NULL if there is none |
212 |
|
* @see GetNextArticulation() |
213 |
|
* @deprecated This method is not reentrant-safe, use GetArticulation() |
214 |
|
* instead. |
215 |
|
*/ |
216 |
Articulation* Articulator::GetFirstArticulation() { |
Articulation* Articulator::GetFirstArticulation() { |
217 |
if (!pArticulations) LoadArticulations(); |
if (!pArticulations) LoadArticulations(); |
218 |
if (!pArticulations) return NULL; |
if (!pArticulations) return NULL; |
220 |
return (ArticulationsIterator != pArticulations->end()) ? *ArticulationsIterator : NULL; |
return (ArticulationsIterator != pArticulations->end()) ? *ArticulationsIterator : NULL; |
221 |
} |
} |
222 |
|
|
223 |
|
/** |
224 |
|
* Returns the next Articulation from the list of articulations. You have |
225 |
|
* to call GetFirstArticulation() once before you can use this method. By |
226 |
|
* calling this method multiple times it iterates through the available |
227 |
|
* articulations. |
228 |
|
* |
229 |
|
* @returns pointer address to the next Articulation or NULL if end reached |
230 |
|
* @see GetFirstArticulation() |
231 |
|
* @deprecated This method is not reentrant-safe, use GetArticulation() |
232 |
|
* instead. |
233 |
|
*/ |
234 |
Articulation* Articulator::GetNextArticulation() { |
Articulation* Articulator::GetNextArticulation() { |
235 |
if (!pArticulations) return NULL; |
if (!pArticulations) return NULL; |
236 |
ArticulationsIterator++; |
ArticulationsIterator++; |