File prod_weighted.h
FileList > prod_weighted > src > prod_weighted.h
Go to the source code of this file
Defines the functionality of a weighted production. More...
#include <stddef.h>#include <stdint.h>
Classes
| Type | Name |
|---|---|
| struct | prod_weighted_config_t Configuration type for a weighted production. |
| struct | prod_weighted_pair_t Configuration type for a weighted production. |
Public Functions
| Type | Name |
|---|---|
| const char * | prod_weighted_resolve (const void * config) The resolve function for the weighted production type. |
| const char * | prod_weighted_terminate (const void * config) The resolve function for the weighted production type. |
Macros
| Type | Name |
|---|---|
| define | PROD_WEIGHTED_NAME ("weighted")The type identifier for the weighted production type. |
Detailed Description
Author:
Joe Starr
Public Functions Documentation
function prod_weighted_resolve
The resolve function for the weighted production type.
Resolve at random a replacement string.
Parameters:
configA configuration of a production.
Returns:
A pointer to the output of the resolution.
function prod_weighted_terminate
The resolve function for the weighted production type.
Terminate at random with a terminal string.
Parameters:
configA configuration of a production.
Returns:
A pointer to the output of the resolution.
Macro Definition Documentation
define PROD_WEIGHTED_NAME
The type identifier for the weighted production type.
The documentation for this class was generated from the following file source/prod_weighted/src/prod_weighted.h