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

Methods for scripting language interface (Tcl or Python). More...

#include <colvarproxy.h>

Inheritance diagram for colvarproxy_script:
Collaboration diagram for colvarproxy_script:

Public Member Functions

 colvarproxy_script ()
 Constructor.
virtual ~colvarproxy_script ()
 Destructor.
virtual int run_force_callback ()
 Run a user-defined colvar forces script.
virtual int run_colvar_callback (std::string const &name, std::vector< const colvarvalue * > const &cvcs, colvarvalue &value)
virtual int run_colvar_gradient_callback (std::string const &name, std::vector< const colvarvalue * > const &cvcs, std::vector< cvm::matrix2d< cvm::real > > &gradient)

Public Attributes

colvarscript * script = nullptr

Detailed Description

Methods for scripting language interface (Tcl or Python).

Member Function Documentation

◆ run_force_callback()

int colvarproxy_script::run_force_callback ( )
virtual

Run a user-defined colvar forces script.

Reimplemented in colvarproxy_namd, and colvarproxy_vmd.

Member Data Documentation

◆ script

colvarscript* colvarproxy_script::script = nullptr

Pointer to the scripting interface object (does not need to be allocated in a new interface)


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