|
|
| colvarscript (colvarproxy *p, colvarmodule *m) |
| |
|
int | run (int objc, unsigned char *const objv[]) |
| | Run a script command with space-separated positional arguments (objects)
|
| |
|
std::string const & | str_result () const |
| | Get the string result of the current scripting call.
|
| |
|
std::string & | modify_str_result () |
| | Modify the string result of the current scripting call.
|
| |
|
int | set_result_str (std::string const &s) |
| | Set the return value to the given string.
|
| |
|
int | clear_str_result () |
| | Clear the string result.
|
| |
|
void | add_error_msg (std::string const &s) |
| | Add the given string to the error message of the script interface.
|
| |
|
std::string | get_cmd_prefix (Object_type t) |
| | Return the prefix of the individual command for each object function.
|
| |
|
template<Object_type T> |
| unsigned char * | get_cmd_arg (int iarg, int objc, unsigned char *const objv[]) |
| | Get a pointer to the i-th argument of the command (NULL if not given)
|
| |
|
unsigned char * | get_module_cmd_arg (int iarg, int objc, unsigned char *const objv[]) |
| | Instantiation of get_cmd_arg<> for module-level commands.
|
| |
|
unsigned char * | get_colvar_cmd_arg (int iarg, int objc, unsigned char *const objv[]) |
| | Instantiation of get_cmd_arg<> for colvar-level commands.
|
| |
|
unsigned char * | get_bias_cmd_arg (int iarg, int objc, unsigned char *const objv[]) |
| | Instantiation of get_cmd_arg<> for bias-level commands.
|
| |
|
template<Object_type T> |
| int | check_cmd_nargs (char const *cmd, int objc, int n_args_min, int n_args_max) |
| | Check the argument count of the command.
|
| |
|
int | check_module_cmd_nargs (char const *cmd, int objc, int n_args_min, int n_args_max) |
| | Instantiation of check_cmd_nargs<> for module-level commands.
|
| |
|
int | check_colvar_cmd_nargs (char const *cmd, int objc, int n_args_min, int n_args_max) |
| | Instantiation of check_cmd_nargs<> for colvar-level commands.
|
| |
|
int | check_bias_cmd_nargs (char const *cmd, int objc, int n_args_min, int n_args_max) |
| | Instantiation of get_cmd_arg<> for bias-level commands.
|
| |
|
template<colvarscript::Object_type T> |
| int | cmd_arg_shift () |
| | Number of positional arguments to shift for each object type.
|
| |
|
char const ** | get_command_names () const |
| | Get names of all commands.
|
| |
| char const * | get_command_help (char const *cmd) |
| |
| char const * | get_command_rethelp (char const *cmd) |
| |
| char const * | get_command_arghelp (char const *cmd, int i) |
| |
| int | get_command_n_args_min (char const *cmd) |
| |
| int | get_command_n_args_max (char const *cmd) |
| |
|
void | set_cmdline_main_cmd (std::string const &cmd) |
| | Set the main command for the CLI, when it is not "cv" (e.g. LAMMPS)
|
| |
| char const * | get_command_full_help (char const *cmd) |
| |
| std::string | get_cmdline_help_summary (Object_type t) |
| |
| std::string | get_command_cmdline_syntax (Object_type t, command c) |
| |
| std::string | get_command_cmdline_help (Object_type t, std::string const &cmd) |
| |
|
int | unsupported_op () |
| | Set error code for unsupported script operation.
|
| |
|
colvarmodule * | module () |
| | Pointer to the Colvars main object.
|
| |
|
colvarproxy * | proxy () |
| | Pointer to the colvarproxy object (interface with host engine)
|
| |
|
char * | obj_to_str (unsigned char *obj) |
| | Get the string representation of an object (by default, a simple cast)
|
| |
|
std::vector< std::string > | obj_to_str_vector (unsigned char *obj) |
| | Get a list of strings from an object (does not work with a simple cast)
|
| |
|
int | set_result_int (int const &x, unsigned char *obj=NULL) |
| | Copy x into obj if not NULL, or into the script object's result otherwise.
|
| |
|
int | set_result_int_vec (std::vector< int > const &x, unsigned char *obj=NULL) |
| | Copy x into obj if not NULL, or into the script object's result otherwise.
|
| |
|
int | set_result_long_int (long int const &x, unsigned char *obj=NULL) |
| | Copy x into obj if not NULL, or into the script object's result otherwise.
|
| |
|
int | set_result_long_int_vec (std::vector< long int > const &x, unsigned char *obj=NULL) |
| | Copy x into obj if not NULL, or into the script object's result otherwise.
|
| |
|
int | set_result_real (cvm::real const &x, unsigned char *obj=NULL) |
| | Copy x into obj if not NULL, or into the script object's result otherwise.
|
| |
|
template<typename T > |
| int | set_result_real_vec (T const &x, unsigned char *obj=NULL) |
| | Copy x into obj if not NULL, or into the script object's result otherwise.
|
| |
|
int | set_result_rvector (cvm::rvector const &x, unsigned char *obj=NULL) |
| | Copy x into obj if not NULL, or into the script object's result otherwise.
|
| |
|
template<typename T > |
| int | set_result_rvector_vec (T const &x, unsigned char *obj=NULL) |
| | Copy x into obj if not NULL, or into the script object's result otherwise.
|
| |
|
int | set_result_colvarvalue (colvarvalue const &x, unsigned char *obj=NULL) |
| | Copy x into obj if not NULL, or into the script object's result otherwise.
|
| |
|
int | set_result_colvarvalue_vec (std::vector< colvarvalue > const &x, unsigned char *obj=NULL) |
| | Copy x into obj if not NULL, or into the script object's result otherwise.
|
| |
|
int | proc_features (colvardeps *obj, int argc, unsigned char *const argv[]) |
| | Run subcommands on base colvardeps object (colvar, bias, ...)
|
| |
|
template<> |
| int | set_result_text (int const &x, unsigned char *obj) |
| |
|
template<> |
| int | set_result_text (std::vector< int > const &x, unsigned char *obj) |
| |
|
template<> |
| int | set_result_text (long int const &x, unsigned char *obj) |
| |
|
template<> |
| int | set_result_text (std::vector< long int > const &x, unsigned char *obj) |
| |
|
template<> |
| int | set_result_text (cvm::real const &x, unsigned char *obj) |
| |
|
template<> |
| int | set_result_text (std::vector< cvm::real > const &x, unsigned char *obj) |
| |
|
template<> |
| int | set_result_text (std::vector< cvm::rvector > const &x, unsigned char *obj) |
| |
|
template<> |
| int | set_result_text (std::vector< colvarvalue > const &x, unsigned char *obj) |
| |
|
template<> |
| int | set_result_real_vec (std::vector< cvm::real > const &x, unsigned char *obj) |
| |
|
template<> |
| int | set_result_rvector_vec (std::vector< cvm::rvector > const &x, unsigned char *obj) |
| |