SDDSlib
|
Implements Reverse Polish Notation (RPN) operations for SDDS datasets. More...
#include "mdb.h"
#include "match_string.h"
#include "SDDS.h"
#include "SDDS_internal.h"
#include "rpn.h"
Go to the source code of this file.
Functions | |
double | SDDS_ConvertLongDoubleToDouble (void *data, int64_t index) |
Converts a long double value to double. | |
double | SDDS_ConvertDoubleToDouble (void *data, int64_t index) |
Converts a double value to double (identity function). | |
double | SDDS_ConvertFloatToDouble (void *data, int64_t index) |
Converts a float value to double. | |
double | SDDS_ConvertLong64ToDouble (void *data, int64_t index) |
Converts a 64-bit integer to double. | |
double | SDDS_ConvertULong64ToDouble (void *data, int64_t index) |
Converts an unsigned 64-bit integer to double. | |
double | SDDS_ConvertLongToDouble (void *data, int64_t index) |
Converts a 32-bit integer to double. | |
double | SDDS_ConvertULongToDouble (void *data, int64_t index) |
Converts an unsigned 32-bit integer to double. | |
double | SDDS_ConvertShortToDouble (void *data, int64_t index) |
Converts a short integer to double. | |
double | SDDS_ConvertUShortToDouble (void *data, int64_t index) |
Converts an unsigned short integer to double. | |
double | SDDS_ConvertStringToDouble (void *data, int64_t index) |
Converts a string to double using atof. | |
double | SDDS_ConvertCharToDouble (void *data, int64_t index) |
Converts a character to double. | |
long double | SDDS_ConvertToLongDouble (int32_t type, void *data, int64_t index) |
Converts a value to long double based on its type. | |
double | SDDS_ConvertToDouble (int32_t type, void *data, int64_t index) |
Converts a value to double based on its type. | |
int64_t | SDDS_ConvertToLong64 (int32_t type, void *data, int64_t index) |
Converts a value to a 64-bit integer based on its type. | |
int32_t | SDDS_ConvertToLong (int32_t type, void *data, int64_t index) |
Converts a value to a 32-bit integer based on its type. | |
int64_t | SDDS_CreateRpnMemory (const char *name, short is_string) |
Stub function for creating RPN memory when RPN_SUPPORT is not enabled. | |
int64_t | SDDS_CreateRpnArray (char *name) |
Stub function for creating RPN arrays when RPN_SUPPORT is not enabled. | |
Implements Reverse Polish Notation (RPN) operations for SDDS datasets.
This file provides functions to convert various data types to double and long double, as well as functions to compute parameters and columns using RPN expressions within SDDS datasets. It also includes functionality to filter rows based on RPN tests.
Definition in file SDDS_rpn.c.
double SDDS_ConvertCharToDouble | ( | void * | data, |
int64_t | index ) |
Converts a character to double.
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 147 of file SDDS_rpn.c.
double SDDS_ConvertDoubleToDouble | ( | void * | data, |
int64_t | index ) |
Converts a double value to double (identity function).
data | Pointer to the data array. |
index | Index of the element. |
Definition at line 48 of file SDDS_rpn.c.
double SDDS_ConvertFloatToDouble | ( | void * | data, |
int64_t | index ) |
Converts a float value to double.
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 59 of file SDDS_rpn.c.
double SDDS_ConvertLong64ToDouble | ( | void * | data, |
int64_t | index ) |
Converts a 64-bit integer to double.
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 70 of file SDDS_rpn.c.
double SDDS_ConvertLongDoubleToDouble | ( | void * | data, |
int64_t | index ) |
Converts a long double value to double.
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 37 of file SDDS_rpn.c.
double SDDS_ConvertLongToDouble | ( | void * | data, |
int64_t | index ) |
Converts a 32-bit integer to double.
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 92 of file SDDS_rpn.c.
double SDDS_ConvertShortToDouble | ( | void * | data, |
int64_t | index ) |
Converts a short integer to double.
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 114 of file SDDS_rpn.c.
double SDDS_ConvertStringToDouble | ( | void * | data, |
int64_t | index ) |
Converts a string to double using atof.
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 136 of file SDDS_rpn.c.
double SDDS_ConvertToDouble | ( | int32_t | type, |
void * | data, | ||
int64_t | index ) |
Converts a value to double based on its type.
type | The SDDS data type of the value. |
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 199 of file SDDS_rpn.c.
int32_t SDDS_ConvertToLong | ( | int32_t | type, |
void * | data, | ||
int64_t | index ) |
Converts a value to a 32-bit integer based on its type.
type | The SDDS data type of the value. |
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 279 of file SDDS_rpn.c.
int64_t SDDS_ConvertToLong64 | ( | int32_t | type, |
void * | data, | ||
int64_t | index ) |
Converts a value to a 64-bit integer based on its type.
type | The SDDS data type of the value. |
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 239 of file SDDS_rpn.c.
long double SDDS_ConvertToLongDouble | ( | int32_t | type, |
void * | data, | ||
int64_t | index ) |
Converts a value to long double based on its type.
type | The SDDS data type of the value. |
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 159 of file SDDS_rpn.c.
double SDDS_ConvertULong64ToDouble | ( | void * | data, |
int64_t | index ) |
Converts an unsigned 64-bit integer to double.
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 81 of file SDDS_rpn.c.
double SDDS_ConvertULongToDouble | ( | void * | data, |
int64_t | index ) |
Converts an unsigned 32-bit integer to double.
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 103 of file SDDS_rpn.c.
double SDDS_ConvertUShortToDouble | ( | void * | data, |
int64_t | index ) |
Converts an unsigned short integer to double.
data | Pointer to the data array. |
index | Index of the element to convert. |
Definition at line 125 of file SDDS_rpn.c.
int64_t SDDS_CreateRpnArray | ( | char * | name | ) |
Stub function for creating RPN arrays when RPN_SUPPORT is not enabled.
name | Name of the RPN array. |
Definition at line 795 of file SDDS_rpn.c.
int64_t SDDS_CreateRpnMemory | ( | const char * | name, |
short | is_string ) |
Stub function for creating RPN memory when RPN_SUPPORT is not enabled.
name | Name of the RPN memory. |
is_string | Flag indicating if the memory is for string data. |
Definition at line 785 of file SDDS_rpn.c.