Main Page | Class List | Directories | File List | Class Members | File Members

array Struct Reference

#include <array.h>

List of all members.

Public Attributes

 PIKE_MEMORY_OBJECT_MEMBERS
arraynext
arrayprev
INT32 size
INT32 malloced_size
TYPE_FIELD type_field
INT16 flags
svalueitem
svalue real_item [1]


Detailed Description

A Pike array is represented as a 'struct array' with all the needed svalues malloced in the same block.

See also:
type_field


Member Data Documentation

INT16 array::flags
 

ARRAY_* flags

struct svalue* array::item
 

the array of svalues

INT32 array::malloced_size
 

number of svalues that can fit in this array

struct array* array::next
 

we need to keep track of all arrays

array::PIKE_MEMORY_OBJECT_MEMBERS
 

struct array* array::prev
 

Another pointer, so we don't have to search when freeing arrays

struct svalue array::real_item[1]
 

INT32 array::size
 

number of svalues in this array

TYPE_FIELD array::type_field
 

A bitfield with one bit for each type of data in this array. Bits can be set that don't exist in the array. type_field is initialized to BIT_MIXED|BIT_UNFINISHED for newly allocated arrays so that they can be modified without having to update this. It should be set accurately when that's done, though.


The documentation for this struct was generated from the following file:
Generated on Fri Jul 22 23:44:31 2005 for Pike by  doxygen 1.3.9.1