Sign in Join
FPDoc Onlineexperiment

TBufIndex class

In unit BufDataset

Defines the interface used to implement indexes in TBufDataset.

Declaration

pascal
TBufIndex = class(TObject)

Inheritance

  1. TBufIndex
  2. TObject

Descends from it: TArrayBufIndex TDoubleLinkedBufIndex TUniDirectionalBufIndex

Description

TBufIndex is a TObject descendant which defines the interface used to implement indexes in TBufDataset. TBufIndex provides access to the Dataset with field values for the index, and methods to perform record navigation and index maintenance.

TBufIndex contains many virtual and abstract methods that should be implemented in a descendent class which provides a specific index implementation, such as: TDoubleLinkedBufIndex, TUniDirectionalBufIndex, and TArrayBufIndex.

TBufIndex is the type used for the TBufDataset.BufferIndex property.

See also

Properties

SpareRecordpublicSpare record for the index.
SpareBufferpublicSpare record buffer for the index.
CurrentRecordpublicCurrent record in the index.
CurrentBufferpublicCurrent record buffer in the index.
IsInitializedpublicIndicates if the index has been initialized.
BookmarkSizepublicSize (number of bytes) needed for Bookmarks in the index.
RecNopublicActive record number in the index.

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.
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 forward.
DoScrollForwardpublicImplements actions need to scroll forward in the index.
StoreCurrentRecIntoBookmarkpublic
StoreSpareRecIntoBookmarkpublic
GotoBookmarkpublicMoves the index position to the specified Bookmark.
BookmarkValidpublicIndicates the specified Bookmark is valid.
CompareBookmarkspublicGets the relative order for the specified Bookmarks.
SameBookmarkspublicIndicates if the specified Bookmarks are for the same record.
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.
OrderCurrentRecordpublic
EndUpdatepublic

Fields

DBCompareStructpublicStructure used when comparing record/field values in the index.
NamepublicName of the index.
FieldsNamepublicField names included in the index.
CaseinsFieldspublicCase-insensitive field names in the index.
DescFieldspublicDescending fields in the index.
OptionspublicOptions for the index.
IndNrpublicOrdinal position for the index in the list of indexes.

Inherited

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.