Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields | Related Functions
sld_vector Struct Reference

#include <vector.h>

Data Fields

void ** objects
 
int capacity
 
int object_count
 

Related Functions

SLD_SSINT sld_vector_init (sld_vector *vector)
 Initializes a sld_vector. More...
 
SLD_SSINT sld_vector_init_size (sld_vector *vector, int size)
 Initializes a sld_vector with the specified size. More...
 
SLD_UINT sld_vector_objects (sld_vector *vector)
 Returns the number of objects contained within a sld_vector. More...
 
SLD_UINT sld_vector_size (sld_vector *vector)
 Returns the capacity of a sld_vector. More...
 
SLD_SSINT sld_vector_resize (sld_vector *vector, int new_size)
 Resizes a sld_vector to the specified size. More...
 
SLD_SSINT sld_vector_add (sld_vector *vector, void *object)
 Adds an object to a sld_vector. More...
 
void * sld_vector_get (sld_vector *vector, int index)
 Returns an object from an sld_vector at index. More...
 
void sld_vector_set (sld_vector *vector, int index, void *object)
 Sets the data residing at the specified index in a sld_vector. More...
 
void * sld_vector_pop (sld_vector *vector)
 Returns and removes the last object in a sld_vector. More...
 
void sld_vector_delete (sld_vector *vector, SLD_UINT index)
 Removes an object from a sld_vector at the specified index. More...
 
void sld_vector_free (sld_vector *vector)
 Frees any memory allocated for an initialized sld_vector. More...
 

Detailed Description

A sld_vector is a resizeable array

Examples:
vector.c.

Field Documentation

int sld_vector::capacity

contains the size of the sld_vector

int sld_vector::object_count

contains the number of objects in the sld_vector

void** sld_vector::objects

contains the data housed in the sld_vector


The documentation for this struct was generated from the following file: