GAVectorInt_Impl Struct Reference

#include <GA_vector.h>

Data Fields

int * elts
int size
int refs

Detailed Description

A vector of integers (implementation).

This type holds the elements of a vector of integers. Memory for this type is managed automatically if the interface functions from the API (as defined in GA_vector.h) are used. To create a new vector, use the GA_vector_create_int() function. To reference a vector, use GA_vector_ref_int(). To release a reference to a vector, use GA_vector_destroy_int(). The memory for the vector instance and the vector elements will be freed if the reference count reaches zero.

Vector elements may be accessed directly by dereferencing the elts pointer, for example


to access the element with index i of the vector v. The size of a vector is stored in the size member of the type. It is also possible to do a checked access using GA_vector_get_elt_int(). If this function is used, an error message will be sent if the index is out of range.

Field Documentation

int* GAVectorInt_Impl::elts

Elements of the vector.

int GAVectorInt_Impl::size

Number of elements.

int GAVectorInt_Impl::refs

Reference count.

The documentation for this struct was generated from the following file:
Generated on Thu Aug 16 15:28:42 2007 for Graphalignment(Rpackage) by  doxygen 1.5.1