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

Interface IRefcountedContainer

Unit

Basics

Declaration

type IRefcountedContainer = interface

Description

Reference-counted container of temporary objects and memory buffers

Create an instance with CreateRefcountedContainer. The container can be used to accumulate temporary objects and buffers. When no more references points to the container it destroys itself and all accumulated objects and buffers.

Methods

Overview

Publicfunction AddObject(Obj: TObject): TObject;
Publicprocedure AddObjects(Objs: array of TObject);
Publicfunction AddPointer(Ptr: Pointer): Pointer;
Publicprocedure AddPointers(Ptrs: array of Pointer);

Description

Publicfunction AddObject(Obj: TObject): TObject;

Adds an object instance

Publicprocedure AddObjects(Objs: array of TObject);

Adds an array of object instances

Publicfunction AddPointer(Ptr: Pointer): Pointer;

Adds a memory buffer

Publicprocedure AddPointers(Ptrs: array of Pointer);

Adds an array of memory buffers

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