Object TListCursor

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TListCursor = object(TObject)

Description

Hierarchy

  • TObject
  • TListCursor

Overview

Methods

Public function Equals(const Cursor: TListCursor) : Boolean; inline;
Public function HasItem: Boolean; inline;
Public constructor Init(AList : TAbstractList; ANode: Pointer);
Public function IsFirst: Boolean; inline;
Public function IsLast: Boolean; inline;
Public function IsNil: Boolean; inline;
Public procedure MoveNext; inline;
Public procedure MovePrevious; inline;

Properties

Public property List : TAbstractList read fList;
Public property Node : Pointer read fNode write fNode;

Description

Methods

Public function Equals(const Cursor: TListCursor) : Boolean; inline;

Check if the cursors designate the same item.

Public function HasItem: Boolean; inline;

Check if the cursors designate an item.

Public constructor Init(AList : TAbstractList; ANode: Pointer);
 
Public function IsFirst: Boolean; inline;

Returns true if the cursor designates the first element.

Public function IsLast: Boolean; inline;

Returns true if the cursor designates the last element.

Public function IsNil: Boolean; inline;

Equivalent to not HasItem.

Public procedure MoveNext; inline;

If cursor is nil then do nothing, else if cursor is last then cursor becomes nil cursor, otherwise move cursor to the next item.

Public procedure MovePrevious; inline;

If cursor is nil then do nothing, else if cursor is first then cursor becomes nil cursor, otherwise move cursor to the previous item.

Properties

Public property List : TAbstractList read fList;

The designated List.

Public property Node : Pointer read fNode write fNode;

The designated node.


Generated by PasDoc 0.13.0 on 2014-07-29 16:12:40