Lines Matching refs:index
226 int32 index = _FindInsertionIndex(event->Time());
227 return fEvents.AddItem(event, index);
242 int32 index = _IndexOfEvent(event);
243 return (index >= 0 && fEvents.RemoveItem(index));
251 \param index The list index of the event to be returned.
252 \return The event, or \c NULL, if the index is out of range.
255 EventQueue::_EventAt(int32 index) const
257 return (Event*)fEvents.ItemAt(index);
261 /*! \brief Returns the event list index of the supplied event.
266 \return The event list index of the supplied event or \c -1, if the event
273 int32 index = _FindInsertionIndex(time);
274 // The found index is the index succeeding the one of the last event with
278 while (((listEvent = _EventAt(--index))) && listEvent->Time() == time) {
280 return index;
286 /*! \brief Finds the event list index at which an event with the supplied
289 The returned index is the greatest possible index, that is if there are
290 events with the same time in the list, the index is the successor of the
291 index of the last of these events.
296 \return The index at which an event with the supplied time should be added.