[Overview][Types][Classes][Index] Reference for unit 'LazListClasses' (#lazutils)

TLazShiftBufferList

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Declaration

Source position: lazlistclasses.pas line 516

type TLazShiftBufferList = class

public

  constructor Create();

  

  destructor Destroy; override;

  

  function Add();

  

  procedure Clear; virtual;

  

  procedure Delete();

  

  procedure Insert();

  

  property Capacity: Integer; [rw]

  

  property Count: Integer; [rw]

  

  property ItemPointer []: Pointer; [r]

  

end;

Inheritance

TLazShiftBufferList

  

|

TObject

Description

This list is designed for shift/unshift/pop/push operations.

The first list element is not forced to the start of the allocated memory. Instead it allows a gap (some of the over-allocated memory / List.Capacity) in front of the first element.

Therefore elements can be added/removed at either the begin or end of the list, without any need to move the other elements in the list.


Version 4.0 Generated 2025-05-03 Home