System.Generics.Collections.TQueueHelper

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  TQueueHelper = record
  private
    FHead, FTail: Integer;
    FLH: TListHelper;
    procedure DynArraySetLength(Value: NativeInt); inline;
    function GetElType: Pointer; inline;
    function GetElSize: Integer; inline;
    function GetNewCap: Integer; inline;
    procedure CheckEmpty; inline;
    procedure DequeueAdjust(Notification: TCollectionNotification; const Item); inline;
    procedure InternalDequeueString(Notification: TCollectionNotification; Peek: Boolean; out Item);
    procedure InternalDequeueInterface(Notification: TCollectionNotification; Peek: Boolean; out Item);
    procedure InternalDequeueDynArray(Notification: TCollectionNotification; Peek: Boolean; out Item);
    procedure InternalDequeueByteString(Notification: TCollectionNotification; Peek: Boolean; out Item);
{$IF not Defined(NEXTGEN)}
    procedure InternalDequeueWideString(Notification: TCollectionNotification; Peek: Boolean; out Item);
{$ENDIF}
{$IF Defined(AUTOREFCOUNT)}
    procedure InternalDequeueObject(Notification: TCollectionNotification; Peek: Boolean; out Item);
{$ENDIF}
    procedure InternalDequeue1(Notification: TCollectionNotification; Peek: Boolean; out Item);
    procedure InternalDequeue2(Notification: TCollectionNotification; Peek: Boolean; out Item);
    procedure InternalDequeue4(Notification: TCollectionNotification; Peek: Boolean; out Item);
    procedure InternalDequeue8(Notification: TCollectionNotification; Peek: Boolean; out Item);
    procedure InternalDequeueN(Notification: TCollectionNotification; Peek: Boolean; out Item);
    procedure InternalDequeueMRef(Notification: TCollectionNotification; Peek: Boolean; out Item; Kind: TTypeKind); inline;
    procedure InternalDequeueManaged(Notification: TCollectionNotification; Peek: Boolean; out Item);
    procedure InternalClearString;
    procedure InternalClearInterface;
    procedure InternalClearDynArray;
    procedure InternalClearByteString;
{$IF not Defined(NEXTGEN)}
    procedure InternalClearWideString;
{$ENDIF}
{$IF Defined(AUTOREFCOUNT)}
    procedure InternalClearObject;
{$ENDIF}
    procedure InternalClear1;
    procedure InternalClear2;
    procedure InternalClear4;
    procedure InternalClear8;
    procedure InternalClearN;
    procedure InternalClearMRef(Kind: TTypeKind); inline;
    procedure InternalClearManaged;
    procedure EnqueueAdjust(const Value); inline;
    procedure InternalEnqueueString(const Value);
    procedure InternalEnqueueInterface(const Value);
    procedure InternalEnqueueByteString(const Value);
    procedure InternalEnqueueDynArray(const Value);
{$IF not Defined(NEXTGEN)}
    procedure InternalEnqueueWideString(const Value);
{$ENDIF}
{$IF Defined(AUTOREFCOUNT)}
    procedure InternalEnqueueObject(const Value);
{$ENDIF}
    procedure InternalEnqueue1(const Value);
    procedure InternalEnqueue2(const Value);
    procedure InternalEnqueue4(const Value);
    procedure InternalEnqueue8(const Value);
    procedure InternalEnqueueN(const Value);
    procedure InternalEnqueueMRef(const Value; Kind: TTypeKind); inline;
    procedure InternalEnqueueManaged(const Value);
    procedure InternalGrow1;
    procedure InternalGrow2;
    procedure InternalGrow4;
    procedure InternalGrow8;
    procedure InternalGrowN;
    procedure InternalGrowMRef;
    procedure InternalGrowManaged;
    procedure InternalSetCapacityInline(Value: Integer; ElemSize: NativeInt); inline;
    procedure InternalSetCapacity1(Value: Integer);
    procedure InternalSetCapacity2(Value: Integer);
    procedure InternalSetCapacity4(Value: Integer);
    procedure InternalSetCapacity8(Value: Integer);
    procedure InternalSetCapacityN(Value: Integer);
    procedure InternalSetCapacityMRef(Value: Integer);
    procedure InternalSetCapacityManaged(Value: Integer);
    property FItems: Pointer read FLH.FItems;
    property ElType: Pointer read GetElType;
    property ElSize: Integer read GetElSize;
  end;

C++

struct DECLSPEC_DRECORD TQueueHelper
{
private:
    int FHead;
    int FTail;
    TListHelper FLH;
    void __fastcall DynArraySetLength(NativeInt Value);
    void * __fastcall GetElType();
    int __fastcall GetElSize();
    int __fastcall GetNewCap();
    void __fastcall CheckEmpty();
    void __fastcall DequeueAdjust(TCollectionNotification Notification, const void *Item);
    void __fastcall InternalDequeueString(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalDequeueInterface(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalDequeueDynArray(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalDequeueByteString(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalDequeueWideString(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalDequeue1(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalDequeue2(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalDequeue4(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalDequeue8(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalDequeueN(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalDequeueMRef(TCollectionNotification Notification, bool Peek, /* out */ void *Item, System::TTypeKind Kind);
    void __fastcall InternalDequeueManaged(TCollectionNotification Notification, bool Peek, /* out */ void *Item);
    void __fastcall InternalClearString();
    void __fastcall InternalClearInterface();
    void __fastcall InternalClearDynArray();
    void __fastcall InternalClearByteString();
    void __fastcall InternalClearWideString();
    void __fastcall InternalClear1();
    void __fastcall InternalClear2();
    void __fastcall InternalClear4();
    void __fastcall InternalClear8();
    void __fastcall InternalClearN();
    void __fastcall InternalClearMRef(System::TTypeKind Kind);
    void __fastcall InternalClearManaged();
    void __fastcall EnqueueAdjust(const void *Value);
    void __fastcall InternalEnqueueString(const void *Value);
    void __fastcall InternalEnqueueInterface(const void *Value);
    void __fastcall InternalEnqueueByteString(const void *Value);
    void __fastcall InternalEnqueueDynArray(const void *Value);
    void __fastcall InternalEnqueueWideString(const void *Value);
    void __fastcall InternalEnqueue1(const void *Value);
    void __fastcall InternalEnqueue2(const void *Value);
    void __fastcall InternalEnqueue4(const void *Value);
    void __fastcall InternalEnqueue8(const void *Value);
    void __fastcall InternalEnqueueN(const void *Value);
    void __fastcall InternalEnqueueMRef(const void *Value, System::TTypeKind Kind);
    void __fastcall InternalEnqueueManaged(const void *Value);
    void __fastcall InternalGrow1();
    void __fastcall InternalGrow2();
    void __fastcall InternalGrow4();
    void __fastcall InternalGrow8();
    void __fastcall InternalGrowN();
    void __fastcall InternalGrowMRef();
    void __fastcall InternalGrowManaged();
    void __fastcall InternalSetCapacityInline(int Value, NativeInt ElemSize);
    void __fastcall InternalSetCapacity1(int Value);
    void __fastcall InternalSetCapacity2(int Value);
    void __fastcall InternalSetCapacity4(int Value);
    void __fastcall InternalSetCapacity8(int Value);
    void __fastcall InternalSetCapacityN(int Value);
    void __fastcall InternalSetCapacityMRef(int Value);
    void __fastcall InternalSetCapacityManaged(int Value);
    __property void * FItems = {read=FLH.FItems};
    __property void * ElType = {read=GetElType};
    __property int ElSize = {read=GetElSize};
};

Properties

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

Description

Internal helper with non-generic methods to handle TQueue instances.

See Also