Functions | |
| cpl_column * | cpl_column_new_int (int length) |
| Create a new integer column. More... | |
| cpl_column * | cpl_column_new_float (int length) |
| Create a new float column. More... | |
| cpl_column * | cpl_column_new_double (int length) |
| Create a new double column. More... | |
| cpl_column * | cpl_column_new_string (int length) |
| Create a new string column. More... | |
| cpl_column * | cpl_column_new_from_data_int (int *data, int length) |
| Create a new integer column from existing data. More... | |
| cpl_column * | cpl_column_new_from_data_float (float *data, int length) |
| Create a new float column from existing data. More... | |
| cpl_column * | cpl_column_new_from_data_double (double *data, int length) |
| Create a new double column from existing data. More... | |
| cpl_column * | cpl_column_new_from_data_string (char **data, int length) |
| Create a new character string column from existing data. More... | |
| cpl_error_code | cpl_column_copy_data (cpl_column *column, double *data) |
| Copy array of numerical data to a numerical column. More... | |
| cpl_error_code | cpl_column_copy_data_int (cpl_column *column, int *data) |
| Copy existing data to an integer column. More... | |
| cpl_error_code | cpl_column_copy_data_float (cpl_column *column, float *data) |
| Copy existing data to a float column. More... | |
| cpl_error_code | cpl_column_copy_data_double (cpl_column *column, double *data) |
| Copy existing data to a double column. More... | |
| cpl_error_code | cpl_column_copy_data_string (cpl_column *column, char **data) |
| Copy existing data to a string column. More... | |
| void | cpl_column_delete (cpl_column *column) |
| Delete a column. More... | |
| void | cpl_column_delete_but_data (cpl_column *column) |
| Delete a column, without losing the data. More... | |
| void | cpl_column_delete_but_strings (cpl_column *column) |
| Delete a string column, without losing the single strings. More... | |
| cpl_error_code | cpl_column_set_name (cpl_column *column, const char *name) |
| Give a new name to a column. More... | |
| const char * | cpl_column_get_name (cpl_column *column) |
| Get the name of a column. More... | |
| cpl_error_code | cpl_column_set_unit (cpl_column *column, const char *unit) |
| Give a new unit to a column. More... | |
| const char * | cpl_column_get_unit (cpl_column *column) |
| Get the unit of a column. More... | |
| cpl_error_code | cpl_column_set_format (cpl_column *column, const char *format) |
| Give a new format to a column. More... | |
| const char * | cpl_column_get_format (cpl_column *column) |
| Get the format of a column. More... | |
| int | cpl_column_get_size (cpl_column *column) |
| Get the length of a column. More... | |
| cpl_type | cpl_column_get_type (cpl_column *column) |
| Get the type of a column. More... | |
| int | cpl_column_is_null (cpl_column *column, int row) |
| Check if a column element is NULL. More... | |
| int | cpl_column_any_null (cpl_column *column) |
| Check if a column contains at least one NULL value. More... | |
| int | cpl_column_any_valid (cpl_column *column) |
| Check if a column contains at least one valid (i.e., not NULL) value. More... | |
| int | cpl_column_count_nulls (cpl_column *column) |
| Count number of NULLs in a column. More... | |
| int * | cpl_column_get_data_int (cpl_column *column) |
| Get a pointer to integer column data. More... | |
| float * | cpl_column_get_data_float (cpl_column *column) |
| Get a pointer to float column data. More... | |
| double * | cpl_column_get_data_double (cpl_column *column) |
| Get a pointer to double column data. More... | |
| char ** | cpl_column_get_data_string (cpl_column *column) |
| Get a pointer to string column data. More... | |
| cpl_column_flag * | cpl_column_get_data_null (cpl_column *column) |
| Get a pointer to a column null flags buffer. More... | |
| cpl_error_code | cpl_column_set_data_null (cpl_column *column, cpl_column_flag *nulls, int nullcount) |
| Plug a new null buffer into a numerical column. More... | |
| cpl_error_code | cpl_column_resize (cpl_column *column, int new_length) |
| Reallocate a column to a new number of elements. More... | |
| double | cpl_column_get (cpl_column *column, int row, int *null) |
| Read a value from a numerical column. More... | |
| int | cpl_column_get_int (cpl_column *column, int row, int *null) |
| Read a value from an integer column. More... | |
| float | cpl_column_get_float (cpl_column *column, int row, int *null) |
| Read a value from a float column. More... | |
| double | cpl_column_get_double (cpl_column *column, int row, int *null) |
| Read a value from a double column. More... | |
| const char * | cpl_column_get_string (cpl_column *column, int row) |
| Read a value from a string column. More... | |
| cpl_error_code | cpl_column_set (cpl_column *column, int row, double value) |
| Write a value to a numerical column element. More... | |
| cpl_error_code | cpl_column_set_int (cpl_column *column, int row, int value) |
| Write a value to an integer column element. More... | |
| cpl_error_code | cpl_column_set_float (cpl_column *column, int row, float value) |
| Write a value to a float column element. More... | |
| cpl_error_code | cpl_column_set_double (cpl_column *column, int row, double value) |
| Write a value to a double column element. More... | |
| cpl_error_code | cpl_column_set_string (cpl_column *column, int row, const char *string) |
| Write a character string to a string column element. More... | |
| cpl_error_code | cpl_column_set_null (cpl_column *column, int row) |
| Set a column element to NULL;. More... | |
| cpl_error_code | cpl_column_fill (cpl_column *column, int start, int count, double value) |
| Write a value to a numerical column segment. More... | |
| cpl_error_code | cpl_column_fill_int (cpl_column *column, int start, int count, int value) |
| Write a value to an integer column segment. More... | |
| cpl_error_code | cpl_column_fill_float (cpl_column *column, int start, int count, float value) |
| Write a value to a float column segment. More... | |
| cpl_error_code | cpl_column_fill_double (cpl_column *column, int start, int count, double value) |
| Write a value to a double column segment. More... | |
| cpl_error_code | cpl_column_fill_string (cpl_column *column, int start, int count, const char *value) |
| Write a string to a string column segment. More... | |
| cpl_error_code | cpl_column_fill_null (cpl_column *column, int start, int count) |
| Set a column segment to NULL. More... | |
| cpl_error_code | cpl_column_copy_segment (cpl_column *column, int start, int count, double *values) |
| Copy an array of values to a numerical column segment. More... | |
| cpl_error_code | cpl_column_copy_segment_int (cpl_column *column, int start, int count, int *values) |
| Copy a list of integer values to an integer column segment. More... | |
| cpl_error_code | cpl_column_copy_segment_float (cpl_column *column, int start, int count, float *values) |
| Copy a list of float values to a float column segment. More... | |
| cpl_error_code | cpl_column_copy_segment_double (cpl_column *column, int start, int count, double *values) |
| Copy a list of double values to a double column segment. More... | |
| cpl_error_code | cpl_column_copy_segment_string (cpl_column *column, int start, int count, char **strings) |
| Copy a list of strings to a string column segment. More... | |
| cpl_error_code | cpl_column_erase_segment (cpl_column *column, int start, int count) |
| Delete a column segment. More... | |
| cpl_error_code | cpl_column_insert_segment (cpl_column *column, int start, int count) |
| Insert a segment of NULLs into column data. More... | |
| cpl_column * | cpl_column_duplicate (cpl_column *column) |
| Make a copy of a column. More... | |
| cpl_column * | cpl_column_convert_to_int (cpl_column *column) |
| Cast a numerical column to a new integer column. More... | |
| cpl_column * | cpl_column_convert_to_float (cpl_column *column) |
| Cast a numeric column to a new float column. More... | |
| cpl_column * | cpl_column_convert_to_double (cpl_column *column) |
| Cast a numeric column to a new double column. More... | |
| cpl_column * | cpl_column_extract (cpl_column *column, int start, int count) |
| Create a column from an interval of another column. More... | |
| cpl_error_code | cpl_column_merge (cpl_column *target_column, cpl_column *insert_column, int position) |
| Insert a column into another column of the same type. More... | |
| cpl_error_code | cpl_column_add (cpl_column *to_column, cpl_column *from_column) |
| Add two numerical columns. More... | |
| cpl_error_code | cpl_column_subtract (cpl_column *to_column, cpl_column *from_column) |
| Subtract two numeric columns. More... | |
| cpl_error_code | cpl_column_multiply (cpl_column *to_column, cpl_column *from_column) |
| Multiply two numeric columns. More... | |
| cpl_error_code | cpl_column_divide (cpl_column *to_column, cpl_column *from_column) |
| Divide two numeric columns. More... | |
| cpl_error_code | cpl_column_const_op (cpl_column *column, double value, int operation) |
| Arithmetic between a numerical column and a constant. More... | |
| cpl_error_code | cpl_column_logarithm (cpl_column *column, double base) |
| Compute the logarithm of column values. More... | |
| cpl_error_code | cpl_column_exponential (cpl_column *column, double base) |
| Compute the exponential of column values. More... | |
| cpl_error_code | cpl_column_power (cpl_column *column, double exponent) |
| Compute a power of column values. More... | |
| cpl_error_code | cpl_column_add_constant (cpl_column *column, double value) |
| Add a constant value to a numerical column. More... | |
| cpl_error_code | cpl_column_subtract_constant (cpl_column *column, double value) |
| Subtract a constant value from a numerical column. More... | |
| cpl_error_code | cpl_column_multiply_constant (cpl_column *column, double value) |
| Multiply by a constant a numerical column. More... | |
| cpl_error_code | cpl_column_divide_constant (cpl_column *column, double value) |
| Divide by a constant a numerical column. More... | |
| double | cpl_column_mean (cpl_column *column) |
| Compute the mean value of a numeric column. More... | |
| double | cpl_column_max (cpl_column *column) |
| Get maximum value in a numerical column. More... | |
| double | cpl_column_min (cpl_column *column) |
| Get minimum value in a numerical column. More... | |
| cpl_error_code | cpl_column_maxpos (cpl_column *column, int *row) |
| Get position of maximum in a numerical column. More... | |
| cpl_error_code | cpl_column_minpos (cpl_column *column, int *row) |
| Get position of minimum in a numerical column. More... | |
| double | cpl_column_median (cpl_column *column) |
| Find the median of a numerical column. More... | |
| cpl_error_code | cpl_column_shift (cpl_column *column, int shift) |
| Shift numeric column elements. More... | |
| cpl_error_code | cpl_column_code_null_int (cpl_column *column, int code) |
| Write to NULL flagged integer column elements a numeric code. More... | |
| cpl_error_code | cpl_column_code_null_float (cpl_column *column, float code) |
| Write to NULL flagged float column elements a numeric code. More... | |
| cpl_error_code | cpl_column_code_null_double (cpl_column *column, double code) |
| Write to NULL flagged double column elements a numeric code. More... | |
#include <cpl_column.h>
|
||||||||||||
|
Add two numerical columns.
|
|
||||||||||||
|
Add a constant value to a numerical column.
|
|
|
Check if a column contains at least one NULL value.
|
|
|
Check if a column contains at least one valid (i.e., not NULL) value.
|
|
||||||||||||
|
Write to NULL flagged double column elements a numeric code.
|
|
||||||||||||
|
Write to NULL flagged float column elements a numeric code.
|
|
||||||||||||
|
Write to NULL flagged integer column elements a numeric code.
|
|
||||||||||||||||
|
Arithmetic between a numerical column and a constant.
'+' Addition '-' Subtraction '*' Multiplication '/' Division 'l' Logarithm '^' Power 'e' Exponentiation When logarithm or exponentiation are computed, the passed constant represents the base of the logarithm or of the exponentiation operation. |
|
|
Cast a numeric column to a new double column.
|
|
|
Cast a numeric column to a new float column.
|
|
|
Cast a numerical column to a new integer column.
|
|
||||||||||||
|
Copy array of numerical data to a numerical column.
|
|
||||||||||||
|
Copy existing data to a double column.
|
|
||||||||||||
|
Copy existing data to a float column.
|
|
||||||||||||
|
Copy existing data to an integer column.
|
|
||||||||||||
|
Copy existing data to a string column.
|
|
||||||||||||||||||||
|
Copy an array of values to a numerical column segment.
|
|
||||||||||||||||||||
|
Copy a list of double values to a double column segment.
|
|
||||||||||||||||||||
|
Copy a list of float values to a float column segment.
|
|
||||||||||||||||||||
|
Copy a list of integer values to an integer column segment.
|
|
||||||||||||||||||||
|
Copy a list of strings to a string column segment.
|
|
|
Count number of NULLs in a column.
|
|
|
Delete a column.
|
|
|
Delete a column, without losing the data.
|
|
|
Delete a string column, without losing the single strings.
|
|
||||||||||||
|
Divide two numeric columns.
|
|
||||||||||||
|
Divide by a constant a numerical column.
|
|
|
Make a copy of a column.
|
|
||||||||||||||||
|
Delete a column segment.
|
|
||||||||||||
|
Compute the exponential of column values.
|
|
||||||||||||||||
|
Create a column from an interval of another column.
|
|
||||||||||||||||||||
|
Write a value to a numerical column segment.
|
|
||||||||||||||||||||
|
Write a value to a double column segment.
|
|
||||||||||||||||||||
|
Write a value to a float column segment.
|
|
||||||||||||||||||||
|
Write a value to an integer column segment.
|
|
||||||||||||||||
|
Set a column segment to NULL.
|
|
||||||||||||||||||||
|
Write a string to a string column segment.
|
|
||||||||||||||||
|
Read a value from a numerical column.
|
|
|
Get a pointer to double column data.
|
|
|
Get a pointer to float column data.
|
|
|
Get a pointer to integer column data.
|
|
|
Get a pointer to a column null flags buffer.
|
|
|
Get a pointer to string column data.
|
|
||||||||||||||||
|
Read a value from a double column.
|
|
||||||||||||||||
|
Read a value from a float column.
|
|
|
Get the format of a column.
|
|
||||||||||||||||
|
Read a value from an integer column.
|
|
|
Get the name of a column.
|
|
|
Get the length of a column.
|
|
||||||||||||
|
Read a value from a string column.
|
|
|
Get the type of a column.
|
|
|
Get the unit of a column.
|
|
||||||||||||||||
|
Insert a segment of NULLs into column data.
|
|
||||||||||||
|
Check if a column element is NULL.
|
|
||||||||||||
|
Compute the logarithm of column values.
|
|
|
Get maximum value in a numerical column.
|
|
||||||||||||
|
Get position of maximum in a numerical column.
|
|
|
Compute the mean value of a numeric column.
|
|
|
Find the median of a numerical column.
|
|
||||||||||||||||
|
Insert a column into another column of the same type.
|
|
|
Get minimum value in a numerical column.
|
|
||||||||||||
|
Get position of minimum in a numerical column.
|
|
||||||||||||
|
Multiply two numeric columns.
|
|
||||||||||||
|
Multiply by a constant a numerical column.
|
|
|
Create a new double column.
|
|
|
Create a new float column.
|
|
||||||||||||
|
Create a new double column from existing data.
|
|
||||||||||||
|
Create a new float column from existing data.
|
|
||||||||||||
|
Create a new integer column from existing data.
|
|
||||||||||||
|
Create a new character string column from existing data.
|
|
|
Create a new integer column.
|
|
|
Create a new string column.
|
|
||||||||||||
|
Compute a power of column values.
|
|
||||||||||||
|
Reallocate a column to a new number of elements.
|
|
||||||||||||||||
|
Write a value to a numerical column element.
|
|
||||||||||||||||
|
Plug a new null buffer into a numerical column.
|
|
||||||||||||||||
|
Write a value to a double column element.
|
|
||||||||||||||||
|
Write a value to a float column element.
|
|
||||||||||||
|
Give a new format to a column.
|
|
||||||||||||||||
|
Write a value to an integer column element.
|
|
||||||||||||
|
Give a new name to a column.
|
|
||||||||||||
|
Set a column element to NULL;.
|
|
||||||||||||||||
|
Write a character string to a string column element.
|
|
||||||||||||
|
Give a new unit to a column.
|
|
||||||||||||
|
Shift numeric column elements.
|
|
||||||||||||
|
Subtract two numeric columns.
|
|
||||||||||||
|
Subtract a constant value from a numerical column.
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002