Collective Variables Module - Developer Documentation
Loading...
Searching...
No Matches
colvarproxy_tcl Class Reference

Methods for using Tcl within Colvars. More...

#include <colvarproxy_tcl.h>

Inheritance diagram for colvarproxy_tcl:

Public Member Functions

 colvarproxy_tcl ()
 Constructor.
virtual ~colvarproxy_tcl ()
 Destructor.
bool tcl_available ()
 Is Tcl available? (trigger initialization if needed).
char const * tcl_get_str (void *obj)
 Get a string representation of the Tcl object pointed to by obj.
int tcl_run_script (std::string const &script)
int tcl_run_file (std::string const &fileName)
int tcl_run_force_callback ()
 Tcl implementation of run_force_callback().
int tcl_run_colvar_callback (std::string const &name, std::vector< const colvarvalue * > const &cvcs, colvarvalue &value)
 Tcl implementation of run_colvar_callback().
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().
Tcl_Interp * get_tcl_interp ()
 Get a pointer to the Tcl interpreter.
void set_tcl_interp (Tcl_Interp *interp)
 Set the pointer to the Tcl interpreter.
virtual void init_tcl_pointers ()
 Set Tcl pointers.

Protected Attributes

Tcl_Interp * tcl_interp_
 Pointer to Tcl interpreter object.

Detailed Description

Methods for using Tcl within Colvars.

Member Function Documentation

◆ init_tcl_pointers()

void colvarproxy_tcl::init_tcl_pointers ( )
virtual

Set Tcl pointers.

Reimplemented in colvarproxy_namd, and colvarproxy_vmd.


The documentation for this class was generated from the following files: