10#ifndef COLVARPROXY_TCL_H
11#define COLVARPROXY_TCL_H
13#if defined(NAMD_TCL) || defined(VMDTCL)
21typedef void Tcl_Interp;
40#if defined(COLVARS_TCL)
50 int tcl_run_script(std::string
const &script);
52 int tcl_run_file(std::string
const &fileName);
59 std::string
const &name,
60 std::vector<const colvarvalue *>
const &cvcs,
65 std::string
const &name,
66 std::vector<const colvarvalue *>
const &cvcs,
Arbitrary size array (two dimensions) suitable for linear algebra operations (i.e....
Definition: colvartypes.h:376
Methods for using Tcl within Colvars.
Definition: colvarproxy_tcl.h:28
int tcl_run_colvar_gradient_callback(std::string const &name, std::vector< const colvarvalue * > const &cvcs, std::vector< cvm::matrix2d< cvm::real > > &gradient)
Tcl implementation of run_colvar_gradient_callback()
Definition: colvarproxy_tcl.cpp:168
colvarproxy_tcl()
Constructor.
Definition: colvarproxy_tcl.cpp:24
int tcl_run_colvar_callback(std::string const &name, std::vector< const colvarvalue * > const &cvcs, colvarvalue &value)
Tcl implementation of run_colvar_callback()
Definition: colvarproxy_tcl.cpp:121
virtual ~colvarproxy_tcl()
Destructor.
Definition: colvarproxy_tcl.cpp:30
Tcl_Interp * get_tcl_interp()
Get a pointer to the Tcl interpreter.
Definition: colvarproxy_tcl.h:70
char const * tcl_get_str(void *obj)
Get a string representation of the Tcl object pointed to by obj.
Definition: colvarproxy_tcl.cpp:52
Tcl_Interp * tcl_interp_
Pointer to Tcl interpreter object.
Definition: colvarproxy_tcl.h:86
int tcl_run_force_callback()
Tcl implementation of run_force_callback()
Definition: colvarproxy_tcl.cpp:97
bool tcl_available()
Is Tcl available? (trigger initialization if needed)
Definition: colvarproxy_tcl.h:39
void set_tcl_interp(Tcl_Interp *interp)
Set the pointer to the Tcl interpreter.
Definition: colvarproxy_tcl.h:76
virtual void init_tcl_pointers()
Set Tcl pointers.
Definition: colvarproxy_tcl.cpp:35
Value of a collective variable: this is a metatype which can be set at runtime. By default it is set ...
Definition: colvarvalue.h:43