Fix_FitPartialCharges
      
      
        
          | Last change
 on this file since eaf08f was             9e1d01, checked in by Frederik Heber <heber@…>, 14 years ago | 
        
          | 
Added CopyAtoms structure.
 this creates a copy of a vector of atoms with as much depth as desired by
the user.
this is a hierarchy of functors that each add additional functionality such
as also re-creating the bonds, ...
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            960 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * CopyAtomsInterfaceUnitTest.hpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Mar 17, 2012 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef COPYATOMSINTERFACEUNITTEST_HPP_ | 
|---|
| 9 | #define COPYATOMSINTERFACEUNITTEST_HPP_ | 
|---|
| 10 |  | 
|---|
| 11 | // include config.h | 
|---|
| 12 | #ifdef HAVE_CONFIG_H | 
|---|
| 13 | #include <config.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 |  | 
|---|
| 17 | #include <cppunit/extensions/HelperMacros.h> | 
|---|
| 18 |  | 
|---|
| 19 | #include "types.hpp" | 
|---|
| 20 |  | 
|---|
| 21 | // we prefer enum over define | 
|---|
| 22 | enum { ATOM_COUNT = 2 }; | 
|---|
| 23 |  | 
|---|
| 24 | class atom; | 
|---|
| 25 |  | 
|---|
| 26 | class CopyAtomsInterfaceTest : public CppUnit::TestFixture | 
|---|
| 27 | { | 
|---|
| 28 | CPPUNIT_TEST_SUITE( CopyAtomsInterfaceTest ); | 
|---|
| 29 | CPPUNIT_TEST ( CopyAtomsInterfaceOperatorTest ); | 
|---|
| 30 | CPPUNIT_TEST ( CopyAtoms_SimpleOperatorTest ); | 
|---|
| 31 | CPPUNIT_TEST ( CopyAtoms_withBondsOperatorTest ); | 
|---|
| 32 | CPPUNIT_TEST_SUITE_END(); | 
|---|
| 33 |  | 
|---|
| 34 | public: | 
|---|
| 35 | void setUp(); | 
|---|
| 36 | void tearDown(); | 
|---|
| 37 |  | 
|---|
| 38 | void CopyAtomsInterfaceOperatorTest(); | 
|---|
| 39 | void CopyAtoms_SimpleOperatorTest(); | 
|---|
| 40 | void CopyAtoms_withBondsOperatorTest(); | 
|---|
| 41 |  | 
|---|
| 42 | private: | 
|---|
| 43 | atom *atoms [ATOM_COUNT]; | 
|---|
| 44 | atomId_t atomIds [ATOM_COUNT]; | 
|---|
| 45 | }; | 
|---|
| 46 |  | 
|---|
| 47 | #endif /* COPYATOMSINTERFACEUNITTEST_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.