index

Reference: Type id flags

asTYPEID_OBJHANDLE
asTYPEID_HANDLETOCONST
asTYPEID_MASK_OBJECT
asTYPEID_APPOBJECT
asTYPEID_SCRIPTANY
asTYPEID_SCRIPTSTRUCT
asTYPEID_SCRIPTARRAY
asTYPEID_MASK_SEQNBR

asTYPEID_OBJHANDLE

If this bit flag is set in a type id, then the id is representing an object handle.

asTYPEID_HANDLETOCONST

If this bit flag is set in a type id, then the id is representing an object handle that have read only access to the object. This flag is valid only with the asTYPEID_OBJHANDLE flag.

asTYPEID_MASK_OBJECT

Use this flag to mask out the bits that determine the object type. It can also be used to determine if the type id represents a primitive type.

if( (typeId & asTYPEID_MASK_OBJECT) == 0 ) 
{
  // the type is a primitive
}

asTYPEID_APPOBJECT

These bits are set when the type id represents an application registered object type. First mask out the object type bits with asTYPEID_MASK_OBJECT and then compare with this constant.

if( (typeId & asTYPEID_MASK_OBJECT) == asTYPEID_APPOBJECT ) 
{
  // the type is an application registered type
}

asTYPEID_SCRIPTANY

These bits are set when the type id represents a script any type. First mask out the object type bits with asTYPEID_MASK_OBJECT and then compare with this constant.

if( (typeId & asTYPEID_MASK_OBJECT) == asTYPEID_SCRIPTANY ) 
{
  // the type is a script any type
}

asTYPEID_SCRIPTSTRUCT

These bits are set when the type id represents a script struct type. First mask out the object type bits with asTYPEID_MASK_OBJECT and then compare with this constant.

if( (typeId & asTYPEID_MASK_OBJECT) == asTYPEID_SCRIPTSTRUCT ) 
{
  // the type is a script struct type
}

asTYPEID_SCRIPTARRAY

These bits are set when the type id represents a script array type. First mask out the object type bits with asTYPEID_MASK_OBJECT and then compare with this constant.

if( (typeId & asTYPEID_MASK_OBJECT) == asTYPEID_SCRIPTARRAY ) 
{
  // the type is a script array type
}

asTYPEID_MASK_SEQNBR

This mask can be used to retrieve the object type's basic sequence number. Normally this is not something that is useful to an application.

top