Skip to content
Authors

Class PDGL_wasm

ClassList > PDGL_wasm

Wrapper class for the PDGL core library functionality.

Public Functions

Type Name
PDGL_wasm (std::string input, size_t stack_size, uint64_t seed)
Constructor with all possible configurable items.
PDGL_wasm (std::string input, size_t stack_size)
Constructor with stack size and input configurable items.
PDGL_wasm (std::string input)
constructor with minimal configurable items.
bool run ()
Run the generation of a word in the configured language.
~PDGL_wasm ()
deconstructor for the WASM wrapper class.

Public Functions Documentation

function PDGL_wasm [1/3]

Constructor with all possible configurable items.

PDGL_wasm::PDGL_wasm (
    std::string input,
    size_t stack_size,
    uint64_t seed
) 

Parameters:

  • input A language string as TOML data.
  • stack_size The size of the stack to configure.
  • seed The seed to use to seed random.

function PDGL_wasm [2/3]

Constructor with stack size and input configurable items.

PDGL_wasm::PDGL_wasm (
    std::string input,
    size_t stack_size
) 

Parameters:

  • input A language string as TOML data.
  • stack_size The size of the stack to configure.

function PDGL_wasm [3/3]

constructor with minimal configurable items.

explicit PDGL_wasm::PDGL_wasm (
    std::string input
) 

Parameters:

  • input a language string as TOML data.

function run

Run the generation of a word in the configured language.

bool PDGL_wasm::run () 

Returns:

True when successful, false when failure.


function ~PDGL_wasm

deconstructor for the WASM wrapper class.

PDGL_wasm::~PDGL_wasm () 



The documentation for this class was generated from the following file wrappers/wasm/src/main.cpp