Sign in Join
FPDoc Onlineexperiment

Objects unit

TP-Compatible basic Objects.

This document documents the objects unit. The unit was implemented by many people, and was mainly taken from the FreeVision sources. It has been ported to all supported platforms.

The methods and fields that are in a Private part of an object declaration have been left out of this documentation.

Classes and records

LongRecrecordRecord describing a longint (in Words).
PtrRecrecordRecord describing a pointer to a memory location.
TBufStreamobjectBuffered file stream.
TCollectionobjectManage a collection of pointers of objects.
TDosStreamobjectDOS file stream.
TMemoryStreamobjectStream which keeps data in memory.
TObjectobjectBasis of all objects.
TPointobjectRecord describing a point in a 2 dimensional plane.
TRectobjectDescribes a rectangular region in a plane.
TResourceCollectionobjectCollection of resource names.
TResourceFileobjectResource file.
TSortedCollectionobjectAbstract sorted collection.
TStrCollectionobjectCollection of null-terminated strings.
TStreamobjectBase stream class.
TStreamRecrecordRecord used in streaming mechanism.
TStrIndexRecrecordRecord type used in a to store the strings.
TStringCollectionobjectCollection of pascal strings.
TStringListobjectCollection of strings.
TStrListMakerobjectGenerate a stream with strings, readable by .
TUnSortedStrCollectionobjectUnsorted string collection.
WordRecrecordRecord describing a Word (in bytes).

Procedures and functions

AbstractprocedureAbstract error handler.
CallPointerConstructorfunctionCall a constructor with a pointer argument.
CallPointerLocalfunctionCall a local nested function with a pointer argument.
CallPointerMethodfunctionCall a method with a single pointer argument.
CallPointerMethodLocalfunctionCall a local procedure of a method with a pointer argument.
CallVoidConstructorfunctionCall a constructor with no arguments.
CallVoidLocalfunctionCall a local nested procedure.
CallVoidMethodfunctionCall an object method.
CallVoidMethodLocalfunctionCall a local procedure of a method.
DisposeStrprocedureDispose of a shortstring which was allocated on the heap.
LongDivfunctionOverflow safe divide.
LongMulfunctionOverflow safe multiply.
NewStrfunctionAllocate a copy of a shortstring on the heap.
RegisterObjectsprocedureRegister standard objects.
RegisterTypeprocedureRegister new object for streaming.
SetStrprocedureAllocate a copy of a shortstring on the heap.

Types

AsciiZtypeFilename - null terminated array of characters.
FNameStrtypeFilename - shortstring version.
PBufStreamtypePointer to object.
PByteArraytypePointer to .
PCharSettypePointer to .
PCollectiontypePointer to object.
PDosStreamtypePointer to object.
PItemListtypePointer to object.
PMemoryStreamtypePointer to object.
PObjecttypePointer to object.
PPointtypePointer to record.
PPointerArraytypePointer to .
PRecttypePointer to object.
PResourceCollectiontypePointer to object.
PResourceFiletypePointer to object.
PSortedCollectiontypePointer to object.
PStrCollectiontypePointer to object.
PStreamtypePointer type to .
PStreamRectypePointer to .
PStrIndextypePointer to array.
PStringtypePointer to a shortstring.
PStringCollectiontypePointer to object.
PStringListtypePointer to object.
PStrListMakertypePointer to object.
PUnSortedStrCollectiontypePointer to object.
PWordArraytypePointer to .
Sw_IntegertypeAlias for longint.
Sw_WordtypeAlias for Cardinal.
TByteArraytypeArray with maximum allowed number of bytes.
TCallbackFuntype
TCallbackFunBooltype
TCallbackFunBoolParamtype
TCallbackFunParamtype
TCallbackProctype
TCallbackProcParamtype
TCharSetsetGeneric set of characters type.
TItemListtypePointer array type used in a .
TPointerArraytypeArray with maximum allowed number of pointers.
TStrIndextypePointer array type used in a .
TWordArraytypeArray with maximum allowed number of words.

Constants

coIndexErrorconstantCollection list error: Index out of range.
coOverflowconstantCollection list error: Overflow.
DefaultTPCompatibleconstantDefault value for tstream.tpcompatible.
MaxBytesconstantMaximum data size (in bytes).
MaxCollectionSizeconstantMaximum collection size (in items).
MaxPtrsconstantMaximum data size (in pointers).
MaxReadBytesconstantMaximum data that can be read from a stream (not used).
MaxTPCompatibleCollectionSizeconstantMaximum collection size (in items, same value as in TP).
MaxWordsconstantMaximum data size (in words).
RCollectionconstantDefault stream record for the object.
RStrCollectionconstantDefault stream record for the object.
RStringCollectionconstantDefault stream record for the object.
RStringListconstantDefault stream record for the object.
RStrListMakerconstantDefault stream record for the object.
stCreateconstantStream initialization mode: Create new file.
stErrorconstantStream error codes: Access error.
stGetErrorconstantStream error codes: Get object error.
stInitErrorconstantStream error codes: Initialize error.
stOkconstantStream error codes: No error.
stOpenconstantStream initialization mode: Read/write access.
stOpenErrorconstantStream error codes: Error opening stream.
stOpenReadconstantStream initialization mode: Read access only.
stOpenWriteconstantStream initialization mode: Write access only.
stPutErrorconstantStream error codes: Put object error.
stReadErrorconstantStream error codes: Stream read error.
StreamErrorconstantPointer to default stream error handler.
stSeekErrorconstantStream error codes: Seek error in stream.
stWriteErrorconstantStream error codes: Stream write error.
vmtHeaderSizeconstantSize of the VMT header in an object (not used).

Variables

invalidhandlevariableValue for invalid handle. Initial value for file stream handles or when the stream is closed.

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