BlitzMax Extended  0.8.11
Pushing Blitz to the Max.
Data Fields | Protected Attributes
BBObject Struct Reference

Basic BlitzMax object data type. More...

#include <blitz_object.h>

+ Inheritance diagram for BBObject:

Data Fields

BBClassclas
 The class of the object.

Protected Attributes

int refs
 The number of times an instance is currently used.

Detailed Description

Basic BlitzMax object data type.

Every class extends BBObject in some way, therefore allowing you to store any instance of any class in a BBObject*.

See also:
BBClass

Field Documentation

The class of the object.

Since all functionality and identification is based on classes, changes to this value affect how an object is handled by the runtime.

Reimplemented in BBArrayArray, BBStringArray, BBObjectArray, BBDoubleArray, BBFloatArray, BBLongArray, BBIntArray, BBShortArray, BBByteArray, BBString, BBArray, BBException, BBBlitzException, BBNullObjectException, BBArrayBoundsException, BBNullFunctionException, BBNullMethodException, BBOutOfDataException, and BBRuntimeException.

Referenced by bbArrayFindObject(), bbArrayStartsWith(), bbObjectClone(), bbObjectCtor(), bbObjectDtor(), and bbObjectFree().

int BBObject::refs [protected]

The number of times an instance is currently used.

Note:
Only used in single-threaded mode (by the reference-counting GC).
Warning:
Do not change or read this manually, as it is controlled be the runtime.

Reimplemented in BBArrayArray, BBStringArray, BBObjectArray, BBDoubleArray, BBFloatArray, BBLongArray, BBIntArray, BBShortArray, BBByteArray, BBString, BBArray, BBException, BBBlitzException, BBNullObjectException, BBArrayBoundsException, BBNullFunctionException, BBNullMethodException, BBOutOfDataException, and BBRuntimeException.

Referenced by bbObjectFree().