# Generated Vector Field Functions

> The eXtremeDB vector fields are of the following types: Fixed length arrays or scalar types (eg. `time t[4];`) and fields of type `vector` (variable length array). Please use the links in the following table to view details and examples of these generated APIs:

> classname_fieldname_alloc(vector) | Allocates pages in the database to hold vector elements
> classname_fieldname_put(vector) | Assign a value into a vector
> classname_fieldname_put(vector)(string) | Assign a string into a vector of strings
> classname_fieldname_put_range(vector) | Assign values into a range of vector indexes
> classname_fieldname_get_range(vector) | Returns a reference to an array of vector elements
> classname_fieldname_at(vector) | Returns a reference to element of vector at specified position
> classname_fieldname_at(vector)(char)(string) | Returns the element of a vector at specified position
> classname_fieldname_at_len() | Returns the size of a char or string element of a vector
> classname_fieldname_at_len_vector() | Returns the size of a char or string element of a vector
> classname_fieldname_size(vector)(string) | Returns the number of elements in the vector
> classname_fieldname_erase(vector) | Removes an element of a vector from the layout and all indexes
> Structure equivalents
> structname_fieldname_alloc(vector) | Allocate pages in the database to hold the vector elements
> structname_fieldname_put(vector) | Assign a value into a vector
> structname_fieldname_put(vector)(string) | Assign a string into a vector of strings
> structname_fieldname_put_range(vector) | Assign values into a range of vector indexes
> structname_fieldname_get_range(vector) | Returns a reference to an array of vector elements
> structname_fieldname_size(vector)(string) | Returns the number of elements in the vector
> structname_fieldname_at(vector) | Returns a reference to element of vector at specified position
> structname_fieldname_at(vector)(char)(string) | Returns a reference to element of vector at specified position
> structname_fieldname_at_len(vector) | Returns the size of a char or string element of a vector
> structname_fieldname_erase(vector) | Removes an element of a vector from the layout and all indexes