Eötvös Quantum Utilities
v4.9.146
Providing the Horsepowers in the Quantum Realm
|
Helper functions for interlanguage conversions. More...
Go to the source code of this file.
Functions | |
void | convert2FortranString (char *cstring, int strlength) |
Converts a C string into fortran compatible character array. More... | |
char ** | getFieldnames (EQstruct *eq_struct) |
Get all the element names stored in the eq_struct structure prototype. More... | |
void | regularizeEQstruct (EQstruct *eq_struct) |
Sort out invalid EQelements from an EQstruct structure prototype. More... | |
void | setField (EQelement *eq_element, mxArray *Mstruct) |
Set a field in a MATLAB structure. More... | |
void | setField (mxArray *field, const char *fieldname, mxArray *Mstruct) |
Set a field in a MATLAB structure. More... | |
Helper functions for interlanguage conversions.
Definition in file EQuUs_MATLAB.cpp.
void convert2FortranString | ( | char * | cstring, |
int | strlength | ||
) |
Converts a C string into fortran compatible character array.
cstring | The C string to be converted into fortran compatible character array. |
strlength | The length of the string. |
Definition at line 13 of file EQuUs_MATLAB.cpp.
char** getFieldnames | ( | EQstruct * | eq_struct | ) |
Get all the element names stored in the eq_struct structure prototype.
eq_struct | a pointer to an EQstruct structure prototype. |
Definition at line 30 of file EQuUs_MATLAB.cpp.
void regularizeEQstruct | ( | EQstruct * | eq_struct | ) |
Sort out invalid EQelements from an EQstruct structure prototype.
eq_struct | a pointer to an EQstruct structure prototype. |
Definition at line 58 of file EQuUs_MATLAB.cpp.
void setField | ( | EQelement * | eq_element, |
mxArray * | Mstruct | ||
) |
Set a field in a MATLAB structure.
eq_element | a pointer to an EQelement element prototype. |
Mstruct | pointer to the MATLAB structure object. |
Definition at line 109 of file EQuUs_MATLAB.cpp.
void setField | ( | mxArray * | field, |
const char * | fieldname, | ||
mxArray * | Mstruct | ||
) |
Set a field in a MATLAB structure.
If the given field already exists, then converts the given field into a cell format.
field | a pointer to an mxArray containing the data. |
Mstruct | pointer to the MATLAB structure object. |
Definition at line 197 of file EQuUs_MATLAB.cpp.