Sign in Join
FPDoc Onlineexperiment

TDoubleLinkedBufIndex class

In unit BufDataset

Implements an index using a doubly-linked list.

Declaration

pascal
TDoubleLinkedBufIndex = class(TBufIndex)

Inheritance

  1. TDoubleLinkedBufIndex
  2. TBufIndex
  3. TObject

Description

TDoubleLinkedBufIndex is a TBufIndex descendant that implements an index using a doubly-linked list. Nodes in the doubly-linked list are implemented using the TBufRecLinkItem record type and the PBufRecLinkItem pointer type. TDoubleLinkedBufIndex provides two sentinel nodes that represent the first and last items in the linked list.

TDoubleLinkedBufIndex is the type used to implement the default index ('DEFAULT_ORDER') in TBufDataset.

See also

Methods

GetBookmarkSizeprotectedGets the value for the BookmarkSize property.
GetCurrentBufferprotectedGets the value for the CurrentBuffer property.
GetCurrentRecordprotectedGets the value for the CurrentRecord property.
GetIsInitializedprotectedGets the value for the IsInitialized property.
GetSpareBufferprotectedGets the value for the SpareBuffer property.
GetSpareRecordprotectedGets the value for the SpareRecord property.
GetRecNoprotectedGets the value for the RecNo property.
SetRecNoprotectedSets the value for the RecNo property.
ScrollBackwardpublicScrolls the index toward the beginning of the index.
ScrollForwardpublicScrolls the index towards the end of the index.
GetCurrentpublicGets the record buffer for the current record in the dataset.
ScrollFirstpublicScrolls to the first entry in the index.
ScrollLastpublicScrolls to the last entry in the index.
GetRecordpublicGets prior/next record relative to the specified bookmark.
SetToFirstRecordpublicSets the index to the first record in the index order.
SetToLastRecordpublicSets the index to the last record in the index order.
StoreCurrentRecordpublicStores the record buffer for the current record.
RestoreCurrentRecordpublicRestores the stored record buiffer to the current record.
CanScrollForwardpublicIndicates if the index can be scrolled towards the end of the index.
DoScrollForwardpublicImplements actions needed to scroll forward using the index.
StoreCurrentRecIntoBookmarkpublic
StoreSpareRecIntoBookmarkpublic
GotoBookmarkpublicNavigates the index to the specified Bookmark.
CompareBookmarkspublicGets the relative order for the specified Bookmarks.
SameBookmarkspublicCompares Bookmark values for ordering in the index.
InitialiseIndexpublicInitializes the index.
InitialiseSpareRecordpublicInitializes the spare record in the index.
ReleaseSpareRecordpublicReleases the spare record in the index.
BeginUpdatepublic
AddRecordpublicAdds a record to the index.
InsertRecordBeforeCurrentRecordpublicInserts a record prior to the current record in the index.
RemoveRecordFromIndexpublicRemoves the record at the specified Bookmark from the index.
OrderCurrentRecordpublic
EndUpdatepublic

Fields

FLastRecBufpublic
FFirstRecBufpublic
FNeedScrollpublic

Inherited

From TBufIndex (9)

BookmarkSize BookmarkValid Create CurrentBuffer CurrentRecord IsInitialized RecNo SpareBuffer SpareRecord

From TObject (41)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.