|
Last change
on this file since 424d1ce was ef36b84, checked in by Frederik Heber <heber@…>, 16 years ago |
|
ActOnAll is a test (not in the molecuilder source tree, but as a singular UnitTest) to get a template function for Vector member function calls.
The idea is to have a call such as:
ActOnAll( AddVector (1.,0.,0.) );
which performs the AddVector on all Vectors (inside the atoms) in e.g. the molecule class.
This would save a lot of unnecessary lines and would make the code in general easier to read.
|
-
Property mode
set to
100644
|
|
File size:
669 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * ActOnAllUnitTest.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: 04.10.2009
|
|---|
| 5 | * Author: FrederikHeber
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef ACTONALLUNITTEST_HPP_
|
|---|
| 9 | #define ACTONALLUNITTEST_HPP_
|
|---|
| 10 |
|
|---|
| 11 | #include <cppunit/extensions/HelperMacros.h>
|
|---|
| 12 |
|
|---|
| 13 | #include "ActOnAlltest.hpp"
|
|---|
| 14 |
|
|---|
| 15 | /********************************************** Test classes **************************************/
|
|---|
| 16 |
|
|---|
| 17 | class ActOnAllTest : public CppUnit::TestFixture
|
|---|
| 18 | {
|
|---|
| 19 | CPPUNIT_TEST_SUITE( ActOnAllTest) ;
|
|---|
| 20 | CPPUNIT_TEST ( ListTest );
|
|---|
| 21 | CPPUNIT_TEST_SUITE_END();
|
|---|
| 22 |
|
|---|
| 23 | public:
|
|---|
| 24 | void setUp();
|
|---|
| 25 | void tearDown();
|
|---|
| 26 | void ListTest();
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 | private:
|
|---|
| 30 | class VectorList VL;
|
|---|
| 31 | };
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | #endif /* ACTONALLUNITTEST_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.