Class tcomponentqueue

Unit

Declaration

type tcomponentqueue = class(tlinkedqueue, iobjectlink)

Description

Holds a list of tmsecomponent items, automatically removing an item when it is destroyed — useful, for example, to track dynamically created subforms without needing explicit removal code. If maxcount is set, the queue behaves as a ring buffer, and getfirst/getlast then also remove the returned item, so do not use them just to peek at an item. Use findobject to find an item's actual index, rather than storing indexes.

Hierarchy

Overview

Methods

Public function findobject(const aobject: tmsecomponent): integer;
Public function add(const value: tmsecomponent): integer;
Public procedure insert(const index: integer; const value: tmsecomponent); reintroduce;
Public function getfirst: tmsecomponent;
Public function getlast: tmsecomponent;

Properties

Public property items[const index: integer]: tmsecomponent read getitems write setitems; default;

Description

Methods

Public function findobject(const aobject: tmsecomponent): integer;

This item has no description.

Public function add(const value: tmsecomponent): integer;

This item has no description.

Public procedure insert(const index: integer; const value: tmsecomponent); reintroduce;

This item has no description.

Public function getfirst: tmsecomponent;

This item has no description.

Public function getlast: tmsecomponent;

This item has no description.

Properties

Public property items[const index: integer]: tmsecomponent read getitems write setitems; default;

This item has no description.


Generated by PasDoc 1.0.4.