Lines Matching defs:Collection
132 Empty the collection by iterating forward through its entries.
137 @param[in,out] Collection The collection to empty.
141 IN OUT ORDERED_COLLECTION *Collection
146 Entry = OrderedCollectionMin (Collection);
153 OrderedCollectionDelete (Collection, Entry, &Ptr);
165 Empty the collection by iterating backward through its entries.
170 @param[in,out] Collection The collection to empty.
174 IN OUT ORDERED_COLLECTION *Collection
179 Entry = OrderedCollectionMax (Collection);
186 OrderedCollectionDelete (Collection, Entry, &Ptr);
198 List the user structures linked into the collection, in increasing order.
200 @param[in] Collection The collection to list.
204 IN ORDERED_COLLECTION *Collection
209 for (Entry = OrderedCollectionMin (Collection); Entry != NULL;
220 List the user structures linked into the collection, in decreasing order.
222 @param[in] Collection The collection to list.
226 IN ORDERED_COLLECTION *Collection
231 for (Entry = OrderedCollectionMax (Collection); Entry != NULL;
242 Create a new user structure and attempt to insert it into the collection.
246 @param[in,out] Collection The collection to insert the new user structure
252 IN OUT ORDERED_COLLECTION *Collection
266 Status = OrderedCollectionInsert (Collection, &Entry, UserStruct);
297 Look up a user structure by key in the collection and print it.
301 @param[in] Collection The collection to search for the user structure with
307 IN ORDERED_COLLECTION *Collection
315 Entry = OrderedCollectionFind (Collection, &StandaloneKey);
329 Look up a user structure by key in the collection and delete it.
333 @param[in] Collection The collection to search for the user structure with
339 IN ORDERED_COLLECTION *Collection
348 Entry = OrderedCollectionFind (Collection, &StandaloneKey);
355 OrderedCollectionDelete (Collection, Entry, &Ptr);
366 void (*Function) (ORDERED_COLLECTION *Collection);
372 void (*Function) (int Value, ORDERED_COLLECTION *Collection);
378 "empty the collection iterating forward" },
382 "empty the collection iterating backward" },
397 { "insert ", CmdInsert, "insert value into collection" },
399 { "find ", CmdFind, "find value in collection" },
401 { "delete ", CmdDelete, "delete value from collection" },
553 ORDERED_COLLECTION *Collection;
558 Collection = OrderedCollectionInit (UserStructCompare, KeyCompare);
559 if (Collection == NULL) {
606 KeylessCmd->Function (Collection);
634 KeyedCmd->Function (Value, Collection);
652 CmdForwardEmpty (Collection);
653 OrderedCollectionUninit (Collection);