System.Generics.Collections.TQueue

From RAD Studio API Documentation
Jump to: navigation, search

System.Generics.Collections.TEnumerableSystem.TObjectTQueue

Delphi

TQueue<T> = class(TEnumerable<T>)

C++

template<typename T> class PASCALIMPLEMENTATION TQueue__1 : public TEnumerable__1<T>

Properties

Type Visibility Source Unit Parent
class public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections System.Generics.Collections

Description

Queue implemented over array, using wrapping.

TQueue is a queue implemented over array, using wrapping.

You can add items to the end of the queue and remove them from the start or remove all the items. You can also peek at the top item without removing it. You can add nil objects to the queue.

Count contains the number of items in the queue.

An OnNotify event tells you when the queue has changed.

The class TObjectQueue inherits from TQueue and provides an automatic mechanism for freeing objects removed from queues.

See Also

Code Examples