Lines Matching refs:INDEX
21 * as the objects move through the queue. This is enabled by using a non-nullptr function for INDEX.
22 * When an INDEX function is provided random deletes from the queue are allowed using remove().
29 int* (*INDEX)(const T&) = (int* (*)(const T&))nullptr>
51 SkDEBUGCODE(if (SkToBool(INDEX)) { *INDEX(fArray[0]) = -1; })
75 /** Random access removal. This requires that the INDEX function is non-nullptr. */
77 SkASSERT(nullptr != INDEX);
78 int index = *INDEX(entry);
81 SkDEBUGCODE(*INDEX(fArray[index]) = -1;)
95 allowed if an INDEX function is provided. */
97 SkASSERT(nullptr != INDEX);
98 int index = *INDEX(entry);
199 if (SkToBool(INDEX)) {
200 *INDEX(fArray[index]) = index;
210 SkASSERT(!SkToBool(INDEX) || *INDEX(fArray[i]) == i);