RxDock
0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
include
rxdock
BaseInterSF.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
// Virtual base class for intermolecular scoring functions. Overrides Update()
14
15
#ifndef _RBTBASEINTERSF_H_
16
#define _RBTBASEINTERSF_H_
17
18
#include "rxdock/BaseSF.h"
19
#include "rxdock/Model.h"
20
21
#include <nlohmann/json.hpp>
22
23
using
json = nlohmann::json;
24
25
namespace
rxdock {
26
27
class
BaseInterSF
:
public
virtual
BaseSF
{
28
public
:
29
// Class type string
30
static
const
std::string _CT;
31
33
// Constructors/destructors
34
virtual
~BaseInterSF
();
35
36
friend
void
to_json(json &j,
const
BaseInterSF
&baseInterSF);
37
friend
void
from_json(
const
json &j,
BaseInterSF
&baseInterSF);
38
40
// Public methods
42
43
ModelPtr
GetReceptor()
const
;
44
ModelPtr
GetLigand()
const
;
45
ModelList GetSolvent()
const
;
46
47
// Override Observer pure virtual
48
// Notify observer that subject has changed
49
virtual
void
Update(
Subject
*theChangedSubject);
50
51
protected
:
53
// Protected methods
55
BaseInterSF
();
56
57
// PURE VIRTUAL - Derived classes must override
58
virtual
void
SetupReceptor() = 0;
// Called by Update when receptor is changed
59
virtual
void
SetupLigand() = 0;
// Called by Update when ligand is changed
60
virtual
void
SetupSolvent() {}
// Called by Update when solvent is changed
61
virtual
void
62
SetupScore() = 0;
// Called by Update when either model has changed
63
64
private
:
66
// Private methods
68
69
protected
:
71
// Protected data
73
74
private
:
76
// Private data
78
ModelPtr
m_spReceptor;
79
ModelPtr
m_spLigand;
80
ModelList m_solventList;
81
};
82
83
void
to_json(json &j,
const
BaseInterSF
&baseInterSF);
84
void
from_json(
const
json &j,
BaseInterSF
&baseInterSF);
85
86
}
// namespace rxdock
87
88
#endif
//_RBTBASEINTERSF_H_
rxdock::BaseInterSF
Definition
BaseInterSF.h:27
rxdock::BaseSF
Definition
BaseSF.h:28
rxdock::SmartPtr< Model >
rxdock::Subject
Definition
Subject.h:35
Generated by
1.9.7