TObject class
Base class of all classes.
Declaration
TObject = classDescends from it: Exception TAbstractJSONWriter TAbstractTranslator TAggregatedObject TBaseJSONReader TBaseMapIterator TBasicActionLink TBits TBlowFish TBufIndex TButtonGlyph TChangeLink TCollection TCompressor TCustomAttribute TCustomBucketList TCustomHTTPEventSource TCustomImageListResolutions TCustomVariantType TDataPacketHandler TDblHashArray TDeCompressor TDOMNamedNodeMap TDOMNodeList TDOMParseOptions TDOMParser TEZcgi TFields TFileItem TFiler TFPCustomHashTable TFPExpressionScanner TFPExprNode TFPGListEnumerator TFPHashList TFPHashObjectList TFPList TFPObjectList TFPSList TFPTimerDriver TFunctionItem THashTable THelpManager THTCustomNode THTTPHeader TIDesigner TInterfacedObject TIPCClientComm TIPCServerComm TJSONComparer TJSONData TList TListItemMediator TLookupList TLResourceList TMaskUtils TMediatorManager TMimeType TMonitor TNodePool TNoRefCountObject TNSSupport TObservedHook TObserverMapping TOrderedList TPaperSize TParser TPersistent TPostScript TPostScriptCanvas TPrinter TPropInfoList TPropsStorage TPSObject TPSPattern TRecall TResourceFile TRouteObject TSQLHandle TStream TStream TStringHashList TStringList TStrListMaker TSynchroObject TTemplateParser TTextReader TThemeServices TUnZipper TValueItem TWidgetSet TXMLInputSource TZipper
Description
TObject is the parent root class for all classes in Object
Pascal. If a class has no parent class explicitly declared, it is dependent
on
TObject.
TObject introduces class methods that deal
with the class' type information, and contains all necessary methods to
create an instance at runtime, and to dispatch messages to the correct
method (both string and integer messages).See also
Properties
Disposed | protected |
Methods
GetDisposed | protected | |
Create | public | TObject Constructor. |
Destroy | public | TObject destructor. |
newinstance | public | Allocate memory on the heap for a new instance. |
FreeInstance | public | Clean up instance and free the memory reserved for the instance. |
SafeCallException | public | Handle exception object. |
DefaultHandler | public | Default handler for integer message handlers. |
Free | public | Check for Nil and call destructor. |
InitInstance | public | Initialize a new class instance. |
CleanupInstance | public | Finalize the class instance. |
ClassType | public | Return a "class of" pointer for the current class. |
ClassInfo | public | Return a pointer to the type information for this class. |
ClassName | public | Return the current class name. |
ClassNameIs | public | Check whether the class name equals the given name. |
ClassParent | public | Return the parent class. |
InstanceSize | public | Return the size of an instance. |
InheritsFrom | public | Check whether class is an ancestor. |
StringMessageTable | public | Return a pointer to the string message table. |
MethodAddress | public | Return the address of a method. |
MethodName | public | Return the name of a method. |
GetLastCastErrorInfo | public | |
FieldAddress | public | Return the address of a field. |
AfterConstruction | public | Method called after the constructor was called. |
BeforeDestruction | public | Method called before the destructor is called. |
DefaultHandlerStr | public | Default handler for string messages. |
Dispatch | public | Dispatch an integer message. |
DispatchStr | public | Dispatch a string message. |
GetInterface | public | Return a reference to an interface. |
GetInterfaceByStr | public | Return an interface based on its GUID. |
GetInterfaceWeak | public | Get a reference to an interface, not increasing the reference count. |
GetInterfaceEntry | public | Return the interface table entry by GUID. |
GetInterfaceEntryByStr | public | Return the interface table entry by string. |
GetInterfaceTable | public | Return a pointer to the table of implemented interfaces for a class. |
UnitName | public | Unit name. |
QualifiedClassName | public | Fully qualified classname. |
DisposeOf | public | |
CheckDisposed | public | |
Equals | public | Check if two objects are equal. |
GetHashCode | public | Return a hash code for the object. |
ToString | public | Return a string representation for the object. |
Types and constants
SystemHasExtendedRTTI | public |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
