Units
Classes, Interfaces, Objects
Types
Variables
Constants
Functions, Procedures
Identifiers

Class TExContainerType

Unit

rjExObjectList

Declaration

type TExContainerType = class(TBase04List)

Description

Base class for TObjectList.

Hierarchy

TBase04List > TExList > TExContainer > TErrorObject

Fields

None.

Methods

Overview

function ExistAllObjects(const AObjs: array of TExObjectType): Boolean;
function ExistAnyObjects(const AObjs: array of TExObjectType): Boolean;
function ExistsBackFromObject(const Item: Pointer; const Obj: TExObjectType): Boolean;
function ExistsBackObject(const AObj: TExObjectType): Boolean;
function ExistsFromObject(const Item: Pointer; const Obj: TExObjectType): Boolean;
function ExistsObject(const AObj: TExObjectType): Boolean;
function GetFirstObject: TExObjectType;
function GetLastObject: TExObjectType;
function GetObject(const Item: Pointer): TExObjectType;
function InsertObjectAfter(const Item: Pointer; const Obj: TExObjectType): Pointer;
function InsertObjectBefore(const Item: Pointer; const Obj: TExObjectType): Pointer;
function InsertObjectFirst(const Obj: TExObjectType): Pointer;
function InsertObjectLast(const Obj: TExObjectType): Pointer;
function ItemBackOfObject(const Obj: TExObjectType): Pointer;
function ItemOfObject(const Obj: TExObjectType): Pointer;
procedure RemoveAllObjects(const AObj: TExObjectType);
procedure RemoveBackAllObjects(const AObj: TExObjectType);
procedure SetFirstObject(const Obj: TExObjectType);
procedure SetLastObject(const Obj: TExObjectType);
procedure SetObject(const Item: Pointer; const Obj: TExObjectType);
procedure SortByObject;
procedure SortByObjectDesc;

Description

function ExistAllObjects(const AObjs: array of TExObjectType): Boolean;

Returns True if all of the AObjs in the array exist in the Items' Obj Elements of the container, otherwise returns False. Comparison starts with the first Item.

function ExistAnyObjects(const AObjs: array of TExObjectType): Boolean;

Returns True if at least one of the AObjs in the array exists in the Items' Obj Elements of the container, otherwise returns False. Comparison starts with the first Item.

function ExistsBackFromObject(const Item: Pointer; const Obj: TExObjectType): Boolean;

 

function ExistsBackObject(const AObj: TExObjectType): Boolean;

Returns True if AObj exists among the Items' Obj Elements of the container, otherwise returns False. Comparison starts with the last Item.

function ExistsFromObject(const Item: Pointer; const Obj: TExObjectType): Boolean;

 

function ExistsObject(const AObj: TExObjectType): Boolean;

Returns True if AObj exists among the Items' Obj Elements of the container, otherwise returns False. Comparison starts with the first Item.

function GetFirstObject: TExObjectType;

Returns the Obj Element of the first Item in the container.

function GetLastObject: TExObjectType;

Returns the Obj Element of the last Item in the container.

function GetObject(const Item: Pointer): TExObjectType;

Returns the Obj Element of the Item pointed to by Item.

function InsertObjectAfter(const Item: Pointer; const Obj: TExObjectType): Pointer;

 

function InsertObjectBefore(const Item: Pointer; const Obj: TExObjectType): Pointer;

 

function InsertObjectFirst(const Obj: TExObjectType): Pointer;

 

function InsertObjectLast(const Obj: TExObjectType): Pointer;

 

function ItemBackOfObject(const Obj: TExObjectType): Pointer;

 

function ItemOfObject(const Obj: TExObjectType): Pointer;

 

procedure RemoveAllObjects(const AObj: TExObjectType);

Removes all Items whose Obj Element is the same as AObj from the container.

procedure RemoveBackAllObjects(const AObj: TExObjectType);

Removes all Items whose Obj Element is the same as AObj from the container starting at the last Item.

procedure SetFirstObject(const Obj: TExObjectType);

Stores Obj to the Obj Element of the first Item in the container.

procedure SetLastObject(const Obj: TExObjectType);

Stores Obj to the Obj Element of the last Item in the container.

procedure SetObject(const Item: Pointer; const Obj: TExObjectType);

Stores Obj to the Obj Element of the Item pointed to by Item.

procedure SortByObject;

Sorts all Items in the container by their Obj Element in ascending order.

procedure SortByObjectDesc;

Sorts all Items in the container by their Obj Element in descending order.

Properties

Overview

FirstObject: TExObjectType;
LastObject: TExObjectType;
Obj[const Item: Pointer]: TExObjectType;

Description

FirstObject: TExObjectType;

Reads or modifies the Obj Element of the first Item in the container.

LastObject: TExObjectType;

Reads or modifies the Obj Element of the last Item in the container.

Obj[const Item: Pointer]: TExObjectType;

Reads or writes the Obj Element of the Item pointed to by Item.


rjExContainer Library Version 0.2.
Copyright Ralf Junker 2000-2001.
http://www.zeitungsjunge.de/delphi/.