#include "param_list.h"
#include "param_internal.h"
#include "utils_common.h"
#include <string.h>
Go to the source code of this file.
◆ yac_param_list_append()
| static int yac_param_list_append |
( |
struct yac_param * | param, |
|
|
struct yac_param ** | sub_param ) |
|
static |
◆ yac_param_list_delete()
| static void yac_param_list_delete |
( |
struct yac_param * | param | ) |
|
|
static |
◆ yac_param_list_get_name()
| static const char * yac_param_list_get_name |
( |
const struct yac_param * | param | ) |
|
|
static |
◆ yac_param_list_get_sub_by_index()
| static int yac_param_list_get_sub_by_index |
( |
struct yac_param * | param, |
|
|
size_t | idx, |
|
|
struct yac_param ** | sub_param ) |
|
static |
◆ yac_param_list_get_sub_count()
| static int yac_param_list_get_sub_count |
( |
const struct yac_param * | param, |
|
|
size_t * | count ) |
|
static |
◆ yac_param_list_get_type()
◆ yac_param_list_is_default()
| static int yac_param_list_is_default |
( |
const struct yac_param * | param | ) |
|
|
static |
◆ yac_param_list_new()
Create a new list parameter.
Ownership of the backing list and list elements always stays with the caller. The constructor only wraps configuration params around the elements.
If element_get_param is NULL, *list must be NULL (no pre-existing elements).
- Parameters
-
| name | Name of the list parameter |
| list | Pointer to the backing NULL-terminated array |
| default_factory | Factory for new (appended) elements and params |
| element_get_param | Factory to get the param for an already-existing element; may be NULL only when *list is NULL |
- Returns
- Pointer to new list parameter object
Definition at line 134 of file param_list.c.
◆ yac_param_list_vtable
Initial value:= {
.get_sub_by_name = NULL,
.set_scalar = NULL,
.get_scalar = NULL,
.get_scalar_kind = NULL,
.set_scalar_int = NULL,
.set_scalar_dble = NULL,
.get_scalar_int = NULL,
.get_scalar_dble = NULL
}
static int yac_param_list_get_sub_count(const struct yac_param *param, size_t *count)
static const char * yac_param_list_get_name(const struct yac_param *param)
static void yac_param_list_delete(struct yac_param *param)
static enum yac_param_type yac_param_list_get_type(const struct yac_param *param)
static int yac_param_list_append(struct yac_param *param, struct yac_param **sub_param)
static int yac_param_list_is_default(const struct yac_param *param)
static int yac_param_list_get_sub_by_index(struct yac_param *param, size_t idx, struct yac_param **sub_param)
Definition at line 112 of file param_list.c.