Collective Variables Module - Developer Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
colvarproxy_script Class Reference

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

#include <colvarproxy.h>

Inheritance diagram for colvarproxy_script:
Inheritance graph
[legend]
Collaboration diagram for colvarproxy_script:
Collaboration graph
[legend]

Public Member Functions

 colvarproxy_script ()
 Constructor.
 
virtual ~colvarproxy_script ()
 Destructor.
 
virtual int run_force_callback ()
 Run a user-defined colvar forces script. More...
 
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

colvarscriptscript
 
bool have_scripts
 Do we have a scripting interface?
 

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_vmd, and colvarproxy_namd.

Member Data Documentation

◆ script

colvarscript* colvarproxy_script::script

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: