source: src/Atom/unittests/CopyAtomsInterfaceUnitTest.hpp@ 7516f6

Action_Thermostats Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChemicalSpaceEvaluator Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Exclude_Hydrogens_annealWithBondGraph Fix_Verbose_Codepatterns ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion Gui_displays_atomic_force_velocity JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters Recreated_GuiChecks StoppableMakroAction TremoloParser_IncreasedPrecision
Last change on this file since 7516f6 was 9e1d01, checked in by Frederik Heber <heber@…>, 13 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
22enum { ATOM_COUNT = 2 };
23
24class atom;
25
26class 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
34public:
35 void setUp();
36 void tearDown();
37
38 void CopyAtomsInterfaceOperatorTest();
39 void CopyAtoms_SimpleOperatorTest();
40 void CopyAtoms_withBondsOperatorTest();
41
42private:
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.