Sign in Join
FPDoc Onlineexperiment

TArrayBufIndex class

In unit BufDataset

Implements an index using an array of record buffers.

Declaration

pascal
TArrayBufIndex = class(TBufIndex)

Inheritance

  1. TArrayBufIndex
  2. TBufIndex
  3. TObject

Description

TArrayBufIndex is a TBufIndex descendant that implements an index using an array of record buffers. TArrayBufIndex uses an internal member with an array of pointers to the TRecordBuffer data type used for record buffers in the index. TArrayBufIndex provides support for Bookmarks in the dataset using TBufBookmark.

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.
CreatepublicConstructor for the class instance.
ScrollBackwardpublicMoves to the prior record in the index.
ScrollForwardpublicMoves to the next record in the index.
GetCurrentpublicGets the record buffer for the current record in the dataset.
ScrollFirstpublicMoves to the first record in the index.
ScrollLastpublicMoves to the last record in the index.
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 forward.
DoScrollForwardpublicImplements actions need to scroll forward in the index.
StoreCurrentRecIntoBookmarkpublic
StoreSpareRecIntoBookmarkpublic
GotoBookmarkpublicMoves the index position to the specified Bookmark.
InitialiseIndexpublicInitializes the index.
InitialiseSpareRecordpublicInitializes values in the spare record for the index.
ReleaseSpareRecordpublicReleases resources allocated to the spare record for the index.
BeginUpdatepublic
AddRecordpublicAdds a record to the index.
InsertRecordBeforeCurrentRecordpublicInserts a record before the current record in the index order.
RemoveRecordFromIndexpublicRemove the record at the specified bookmark from the index.
EndUpdatepublic

Fields

FRecordArraypublic
FCurrentRecIndpublic
FLastRecIndpublic
FNeedScrollpublic

Inherited

From TBufIndex (12)

BookmarkSize BookmarkValid CompareBookmarks CurrentBuffer CurrentRecord GetRecord IsInitialized OrderCurrentRecord RecNo SameBookmarks 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.