ecoli_node_many - Man Page
Name
ecoli_node_many — Many node
— A node that matches its child multiple times.
Synopsis
Functions
struct ec_node * ec_node_many (const char *id, struct ec_node *child, unsigned int min, unsigned int max)
int ec_node_many_set_params (struct ec_node *gen_node, struct ec_node *child, unsigned int min, unsigned int max)
Detailed Description
A node that matches its child multiple times.
Configuration Schema
schema many {
node child {
description "The child node.";
}
uint64 min {
description "The minimum number of matches (default = 0).";
}
uint64 max {
description "The maximum number of matches. If 0, there is no maximum (default = 0).";
}
}Function Documentation
struct ec_node * ec_node_many (const char * id, struct ec_node * child, unsigned int min, unsigned int max)
Create a many node that matches its child multiple times.
- Parameters
id The node identifier.
child The child node. It is consumed and will be freed when the parent is freed, or immediately on error.
min Minimum number of repetitions. Use 0 for no minimum.
max Maximum number of repetitions. Use 0 for no maximum.- Returns
The node, or NULL on error (errno is set).
int ec_node_many_set_params (struct ec_node * gen_node, struct ec_node * child, unsigned int min, unsigned int max)
Set the parameters of a many node.
- Parameters
gen_node The many node.
child The child node. It is consumed and will be freed when the parent is freed, or immediately on error.
min Minimum number of repetitions. Use 0 for no minimum.
max Maximum number of repetitions. Use 0 for no maximum.
Returns
0 on success, -1 on error (errno is set).
Author
Generated automatically by Doxygen for Libecoli from the source code.
Referenced By
The man pages ec_node_many(3) and ec_node_many_set_params(3) are aliases of ecoli_node_many(3).