CAST II Game Engine

   DESCRIPTION       FEATURES       SCREENSHOTS       FORUMS       DOCUMENTATION       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TReferencedItem

Unit

basecont

Declaration

type TReferencedItem = class

Description

Class of items with reference counting and universal equivalence checking

Methods

Overview

Publicconstructor Create;
Publicfunction DecRef: Integer;
Publicfunction IncRef: Integer;
Publicfunction IsSameItem(AItem: TReferencedItem): Boolean; virtual;
Publicfunction RetrieveParameters(out Parameters: Pointer; Internal: Boolean): Integer; virtual;

Description

Publicconstructor Create;

 

Publicfunction DecRef: Integer;

Decrease and return reference counter. If it becomes zero destructor is called

Publicfunction IncRef: Integer;

Increase and return reference counter

Publicfunction IsSameItem(AItem: TReferencedItem): Boolean; virtual;

Returns True if the item has the same class and parameters as AItem

Publicfunction RetrieveParameters(out Parameters: Pointer; Internal: Boolean): Integer; virtual;

Fills Parameters with a pointer to public or internal (depending on value of Internal) parameters and returns size of the parameters in 32-bit dwords. Descendant classes should override this method to introduce their own parameters

Properties

Overview

Publicproperty RefCount: Integer;

Description

Publicproperty RefCount: Integer;

Reference counter

Last modified: 4 Jul, 2008
Copyright (C) 2006-2008, casteng.com