FMI Library: part of JModelica.org
|
Go to the source code of this file.
Data Structures | |
struct | jm_named_ptr |
Name and object pointer pair. More... | |
Macros | |
#define | jm_diff_named(a, b) strcmp(a.name,b.name) |
Typedefs | |
typedef struct jm_named_ptr | jm_named_ptr |
Name and object pointer pair. More... | |
Functions | |
jm_named_ptr | jm_named_alloc (jm_string name, size_t size, size_t nameoffset, jm_callbacks *c) |
Allocate memory for the object and the name string and sets pointer to it packed together with the name pointer. More... | |
jm_named_ptr | jm_named_alloc_v (jm_vector(char)*name, size_t size, size_t nameoffset, jm_callbacks *c) |
Same as jm_named_alloc() but name is given as a jm_vector(char) pointer. More... | |
static void | jm_named_free (jm_named_ptr np, jm_callbacks *c) |
Free the memory allocated for the object pointed by jm_named_ptr. More... | |
jm_vector_declare_template (jm_named_ptr) jm_define_comp_f(jm_compare_named | |
Helper to construct comparison operation. More... | |
static jm_diff_named void | jm_named_vector_free_data (jm_vector(jm_named_ptr)*v) |
Release the data allocated by the items in a vector and then clears the memory used by the vector as well. More... | |
static void | jm_named_vector_free (jm_vector(jm_named_ptr)*v) |
Release the data allocated by the items in a vector and then clears the memory used by the vector as well. More... | |
Definition of jm_named_ptr and supporting functions
Definition in file jm_named_ptr.h.
#define jm_diff_named | ( | a, | |
b | |||
) | strcmp(a.name,b.name) |