|
Last change
on this file since 9bb477 was 06f141, checked in by Frederik Heber <heber@…>, 16 years ago |
|
"-e <db path>" not necessary anymore.
Removed necessity of specifying path to databases (this was one check of molecuilder/test/testsuite.at which cannot be fulfilled anymore with boost::program_options)
For this to work a great number of small changes have been necessary:
class periodentafel:
- all .db files merged into const char * arrays in elements_db.cpp
- periodentafel rewritten:
- FindElement(), AskElement() and EnterElement return element * const instead of const element * (i.e. the contents of the pointer is const (the element) not the pointer itself which is very vexatious (i.e. FindElement() yields const element * which can subsequently not be used for RemoveElement(), ...)
- parsedElems is not needed anymore. Instead we operate on map elements directly
- new unittest periodentafelTest which is made friend of periodentafel to be able to access private loading functions directly
A number of unit tests had to be changed (all that create elements during setUp() which is now unnecessary)
Some of the analysis_bonds function's signatures were changed in the process:
Finally, the respective tests are removed from molecuilder/tests/testsuite.at.
|
-
Property mode
set to
100644
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * analysis_bonds.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Nov 7, 2009
|
|---|
| 5 | * Author: heber
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef ANALYSIS_BONDS_HPP_
|
|---|
| 9 | #define ANALYSIS_BONDS_HPP_
|
|---|
| 10 |
|
|---|
| 11 | using namespace std;
|
|---|
| 12 |
|
|---|
| 13 | /*********************************************** includes ***********************************/
|
|---|
| 14 |
|
|---|
| 15 | // include config.h
|
|---|
| 16 | #ifdef HAVE_CONFIG_H
|
|---|
| 17 | #include <config.h>
|
|---|
| 18 | #endif
|
|---|
| 19 |
|
|---|
| 20 | /*********************************************** defines ***********************************/
|
|---|
| 21 |
|
|---|
| 22 | #define HBRIDGEDISTANCE 3.5 //!< HBridge distance from PCCP Vol 10. 4802-4813
|
|---|
| 23 |
|
|---|
| 24 | /****************************************** forward declarations *****************************/
|
|---|
| 25 |
|
|---|
| 26 | class element;
|
|---|
| 27 | class MoleculeListClass;
|
|---|
| 28 | class molecule;
|
|---|
| 29 |
|
|---|
| 30 | /********************************************** declarations *******************************/
|
|---|
| 31 |
|
|---|
| 32 | void GetMaxMinMeanBondCount(const molecule * const mol, double &Min, double &Mean, double &Max);
|
|---|
| 33 | void MinMeanMaxBondDistanceBetweenElements(const molecule *mol, const element *type1, const element *type2, double &Min, double &Mean, double &Max);
|
|---|
| 34 |
|
|---|
| 35 | int CountHydrogenBridgeBonds(MoleculeListClass * const molecules, const element * InterfaceElement);
|
|---|
| 36 | int CountBondsOfTwo(MoleculeListClass * const molecules, const element * const first, const element * const second);
|
|---|
| 37 | int CountBondsOfThree(MoleculeListClass * const molecules, const element * const first, const element * const second, const element * const third);
|
|---|
| 38 |
|
|---|
| 39 | #endif /* ANALYSIS_BONDS_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.