RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
VdwIntraSF.h
1/***********************************************************************
2 * The rDock program was developed from 1998 - 2006 by the software team
3 * at RiboTargets (subsequently Vernalis (R&D) Ltd).
4 * In 2006, the software was licensed to the University of York for
5 * maintenance and distribution.
6 * In 2012, Vernalis and the University of York agreed to release the
7 * program as Open Source software.
8 * This version is licensed under GNU-LGPL version 3.0 with support from
9 * the University of Barcelona.
10 * http://rdock.sourceforge.net/
11 ***********************************************************************/
12
13// Ligand intramolecular scoring function for vdw potential
14
15#ifndef _RBTVDWINTRASF_H_
16#define _RBTVDWINTRASF_H_
17
18#include "rxdock/BaseIntraSF.h"
19#include "rxdock/VdwSF.h"
20
21#include <nlohmann/json.hpp>
22
23using json = nlohmann::json;
24
25namespace rxdock {
26
27class VdwIntraSF : public BaseIntraSF, public VdwSF {
28public:
29 // Class type string
30 static const std::string _CT;
31
32 RBTDLL_EXPORT VdwIntraSF(const std::string &strName = "vdw");
33 virtual ~VdwIntraSF();
34
35 friend void to_json(json &j, const VdwIntraSF &vdwIntraSF);
36 friend void from_json(const json &j, VdwIntraSF &vdwIntraSF);
37
38 // Request Handling method
39 // Handles the Partition request
40 virtual void HandleRequest(RequestPtr spRequest);
41
42protected:
43 virtual void SetupScore();
44 virtual double RawScore() const;
45
46 // DM 25 Oct 2000 - track changes to parameter values in local data members
47 // ParameterUpdated is invoked by ParamHandler::SetParameter
48 void ParameterUpdated(const std::string &strName);
49
50private:
51 AtomRListList m_vdwIntns; // The full list of vdW interactions
52 AtomRListList
53 m_prtIntns; // The partitioned interactions (within partition distance)
54 AtomRList m_ligAtomList;
55};
56
57void to_json(json &j, const VdwIntraSF &vdwIntraSF);
58void from_json(const json &j, VdwIntraSF &vdwIntraSF);
59
60} // namespace rxdock
61
62#endif //_RBTVDWINTRASF_H_
Definition BaseIntraSF.h:27
Definition VdwIntraSF.h:27
Definition VdwSF.h:30