All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CoordinationBase.h
Go to the documentation of this file.
1 /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2  Copyright (c) 2013 The plumed team
3  (see the PEOPLE file at the root of the distribution for a list of names)
4 
5  See http://www.plumed-code.org for more information.
6 
7  This file is part of plumed, version 2.0.
8 
9  plumed is free software: you can redistribute it and/or modify
10  it under the terms of the GNU Lesser General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  plumed is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public License
20  along with plumed. If not, see <http://www.gnu.org/licenses/>.
21 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
22 #ifndef __PLUMED_colvar_CoordinationBase_h
23 #define __PLUMED_colvar_CoordinationBase_h
24 #include "Colvar.h"
25 
26 namespace PLMD{
27 
28 class NeighborList;
29 
30 namespace colvar{
31 
32 class CoordinationBase : public Colvar {
33  bool pbc;
34  bool serial;
37  bool firsttime;
38 
39 public:
42 // active methods:
43  virtual void calculate();
44  virtual void prepare();
45  virtual double pairing(double distance,double&dfunc,unsigned i,unsigned j)const=0;
46  static void registerKeywords( Keywords& keys );
47 };
48 
49 }
50 }
51 #endif
virtual void prepare()
Prepare an Action for calculation This can be used by Action if they need some special preparation be...
CoordinationBase(const ActionOptions &)
This class holds the keywords and their documentation.
Definition: Keywords.h:36
A class that implements neighbor lists from two lists or a single list of atoms.
Definition: NeighborList.h:36
This class is used to bring the relevant information to the Action constructor.
Definition: Action.h:41
This is the abstract base class to use for implementing new collective variables, within it there is ...
Definition: Colvar.h:39
virtual void calculate()
Calculate an Action.
virtual double pairing(double distance, double &dfunc, unsigned i, unsigned j) const =0
static void registerKeywords(Keywords &keys)