YAC 3.18.0
Yet Another Coupler
Loading...
Searching...
No Matches
param_struct.h File Reference
#include "parameter/param.h"
Include dependency graph for param_struct.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct yac_paramyac_param_struct_new (const char *name, struct yac_param **subparams, size_t subparam_count)
 Create a new struct parameter with a given name and subparameters.
 

Function Documentation

◆ yac_param_struct_new()

struct yac_param * yac_param_struct_new ( const char * name,
struct yac_param ** subparams,
size_t subparam_count )

Create a new struct parameter with a given name and subparameters.

Allocates and returns a new struct parameter object. The struct parameter will have the specified name and contain the given subparameters as its children.

The subparams array must contain pointers to already-allocated parameter objects (e.g., created with yac_param_int_new, etc). Ownership of the subparams is transferred to the struct parameter: they will be deleted when the struct parameter is deleted.

Parameters
nameName of the struct parameter (must not be NULL or empty)
subparamsArray of pointers to subparameter objects
subparam_countNumber of subparameters in the array
Returns
Pointer to new struct parameter object

Definition at line 128 of file param_struct.c.

Here is the caller graph for this function: