Show: Delphi C++
Display Preferences

System.Generics.Collections.TQueue

From XE2 API Documentation
Jump to: navigation, search

System.Generics.Collections.TEnumerableSystem.TObject
TQueue

Delphi

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

C++

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

Contents

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


Personal tools
Previous Versions
Translations