#include <Prg_SFunction.h>


Public Member Functions | |
| Prg_SFunction () | |
| constructor | |
| ~Prg_SFunction () | |
| destructor | |
Member access methods (no If prefix) | |
| const char * | mdl_name () const |
| S-function name. | |
| void | set_mdl_name (const char *str) |
| set S-function name | |
| const char * | mdl_path () const |
| S-function path, including name, used for dynamic loading. | |
| void | set_mdl_path (const char *str) |
| set S-function path | |
| const char * | mdl_args () const |
| String representation of S-function arguments. | |
| void | set_mdl_args (const char *str) |
| set S-function arguments | |
| const VECP | mdl_p () const |
| parameters | |
| void | set_mdl_p (const VECP value) |
| set parameters | |
| const VECP | mdl_x0 () const |
| initial states | |
| void | set_mdl_x0 (const VECP value) |
| set initial states | |
Protected Member Functions | |
| virtual void | setup_model () |
| load S-function | |
Helper methods for reading and writing S-function arguments. | |
| void | read_mx_args (VECP p) |
| read _mx_args into vector p | |
| void | write_mx_args (VECP p) |
| write vector p to _mx_args | |
Protected Attributes | |
| char * | _mdl_name |
| S-function name. | |
| char * | _mdl_path |
| full S-function path | |
| char * | _mdl_args |
| S-function parameters. | |
| SimStruct * | _SS |
| pointer to SimStruct | |
| mxArray ** | _mx_args |
| S-function parameters after parsing. | |
| int | _mdl_nargs |
| number of S-function arguments | |
| double | _t0_setup_model |
| time used for initialization of model | |
| int | _mdl_np |
| number of model parameters | |
| int | _mdl_nx |
| number of model states | |
| int | _mdl_nu |
| number of model inputs | |
| int | _mdl_ny |
| number of model outputs | |
| VECP | _mdl_p |
| parameters | |
| VECP | _mdl_x0 |
| initial states | |
| bool | _mdl_needs_setup |
| indicate that setup_model needs to be called as _mdl_name, _mdl_path, or _mdl_args changed | |
| const char* Prg_SFunction::mdl_path | ( | ) | const [inline] |
.