Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals  

src/main/array.c File Reference

#include <gimp-print/gimp-print.h>
#include "gimp-print-internal.h"
#include <gimp-print/gimp-print-intl-internal.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>

Go to the source code of this file.

Data Structures

struct  stp_array

Functions

void check_array (const stp_array_t *array)
void array_ctor (stp_array_t *array)
stp_array_tstp_array_create (int x_size, int y_size)
 Create a new array.

void array_dtor (stp_array_t *array)
void stp_array_destroy (stp_array_t *array)
 Destroy an array.

void stp_array_copy (stp_array_t *dest, const stp_array_t *source)
 Copy an array.

stp_array_tstp_array_create_copy (const stp_array_t *array)
 Copy and allocate an array.

void stp_array_set_size (stp_array_t *array, int x_size, int y_size)
 Resize an array.

void stp_array_get_size (const stp_array_t *array, int *x_size, int *y_size)
 Get the size of an array.

void stp_array_set_data (stp_array_t *array, const double *data)
 Set the data in an array.

void stp_array_get_data (const stp_array_t *array, size_t *size, const double **data)
 Get the data in an array.

int stp_array_set_point (stp_array_t *array, int x, int y, double data)
 Set the data at a single point in the array.

int stp_array_get_point (const stp_array_t *array, int x, int y, double *data)
 Get the data at a single point in the array.

const stp_sequence_tstp_array_get_sequence (const stp_array_t *array)
 Get the underlying stp_sequence_t.

stp_array_tstp_array_create_from_xmltree (stp_mxml_node_t *array)


Function Documentation

void array_ctor stp_array_t   array [static]
 

Definition at line 58 of file array.c.

References stp_array::data, stp_sequence_create(), stp_sequence_set_size(), stp_array::x_size, and stp_array::y_size.

Referenced by stp_array_create().

void array_dtor stp_array_t   array [static]
 

Definition at line 78 of file array.c.

References stp_array::data, and stp_sequence_destroy().

Referenced by stp_array_destroy().

void check_array const stp_array_t   array [inline, static]
 

Definition at line 48 of file array.c.

References stp_abort(), and stp_erprintf().

Referenced by stp_array_copy(), stp_array_create_copy(), stp_array_destroy(), stp_array_get_data(), stp_array_get_point(), stp_array_get_sequence(), stp_array_get_size(), stp_array_set_data(), stp_array_set_point(), and stp_array_set_size().

stp_array_t* stp_array_create_from_xmltree stp_mxml_node_t   array
 

Definition at line 182 of file array.c.

References stp_array::data, stp_array_create(), stp_array_destroy(), stp_erprintf(), STP_MXML_DESCEND, stp_mxmlElementGetAttr(), stp_mxmlFindElement(), stp_sequence_create_from_xmltree(), stp_sequence_destroy(), and stp_sequence_get_size().

Referenced by stpi_dither_array_create_from_xmltree().


Generated on Wed May 12 20:21:35 2004 for libgimpprint API Reference by doxygen1.2.17