CAST II Game Engine

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

Unit basecont

Description

Basic containers unit

(C) 2006 George "Mirage" Bakhtadze. www.casteng.com
The source code may be used under either MPL 1.1 or LGPL 2.1 license. See included license.txt file
Created May 30, 2006
Unit contains basic container classes

Classes, Interfaces and Objects

NameDescription
Class TBaseUniqueItem 
Class TPointerPointerMapPointer to pointer hash map
Class TQueue 
Class TReferencedItem 
Class TReferencedItemManager 
Class TSampledData 
Class TSampledFloats 
Class TSampledGradient 
Class TTempContainer 
Class TUniqueItemCollection 

Types

Overview

CReferencedItem = of TReferencedItem;
KeyType = Pointer;
TKeyLocation = packed record Index1, Index2: Integer; end;
TKeyValuePair = packed record Key: KeyType; Value: ValueType; end;
TPointerHashFunction = function(Key: KeyType): Integer of object;
TPointerPointerDoFunction = function(Key: KeyType; Value: ValueType): Boolean of object;
TValueStore = packed record Count: Integer; Data: array of TKeyValuePair; end;
ValueType = Pointer;

Description

CReferencedItem = of TReferencedItem;

 

KeyType = Pointer;

Pointer-to-pointer map key type

TKeyLocation = packed record Index1, Index2: Integer; end;

Hash map key location data structure

TKeyValuePair = packed record Key: KeyType; Value: ValueType; end;

Hash map key-value pair

TPointerHashFunction = function(Key: KeyType): Integer of object;

Hash function delegate

TPointerPointerDoFunction = function(Key: KeyType; Value: ValueType): Boolean of object;

Hash map action delegate

TValueStore = packed record Count: Integer; Data: array of TKeyValuePair; end;

Data structure to store values of hash map

ValueType = Pointer;

Pointer-to-pointer map value type

Constants

Overview

DefaultHashmapCapacity = 16;

Description

DefaultHashmapCapacity = 16;

Default capacity for hash map containers

Last modified: Jan 6, 2010
Copyright (C) 2006-2010, casteng.com