Table of Contents

Class: Heap mudlib/heap.py

Heap allows you to have many of one kind of object without retaining a seperate copy in memory for each one.

Base Classes   
core.Object
Methods   
cloneSelf
createHeap
createObject
destroyHeap
destroyObject
getHeapType
getNumObjectsInHeap
getPartialHeap
move
objectEnteredEnvironment
setHeapType
setNumObjectsInHeap
takeAwayPartialHeap
  cloneSelf 
cloneSelf ( self )

This method needs to be overridden. This method will get called when a heap is split into two heaps.

  createHeap 
createHeap ( self )

  createObject 
createObject ( self )

  destroyHeap 
destroyHeap ( self )

  destroyObject 
destroyObject ( self )

  getHeapType 
getHeapType ( self )

  getNumObjectsInHeap 
getNumObjectsInHeap ( self )

  getPartialHeap 
getPartialHeap ( self,  numObjects )

  move 
move ( self,  newEnvironment )

  objectEnteredEnvironment 
objectEnteredEnvironment ( self,  newObject )

  setHeapType 
setHeapType ( self,  type )

  setNumObjectsInHeap 
setNumObjectsInHeap ( self,  number )

  takeAwayPartialHeap 
takeAwayPartialHeap ( self )


Table of Contents

This document was automatically generated on Thu Jan 24 08:57:43 2002 by HappyDoc version 2.0