Changeset ef36b84


Ignore:
Timestamp:
Oct 5, 2009, 2:31:35 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
424d1ce
Parents:
e1f6d7
Message:

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.

Location:
molecuilder/src
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Makefile.am

    re1f6d7 ref36b84  
    22HEADER = atom.hpp bond.hpp boundary.hpp config.hpp defs.hpp element.hpp ellipsoid.hpp helpers.hpp leastsquaremin.hpp linkedcell.hpp molecules.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp verbose.hpp
    33
    4 noinst_PROGRAMS =  VectorUnitTest TesselationUnitTest
     4noinst_PROGRAMS =  ActOnAllTest VectorUnitTest TesselationUnitTest
    55
    66bin_PROGRAMS = molecuilder joiner analyzer
     
    1919TesselationUnitTest_CXXFLAGS = $(CPPUNIT_CFLAGS)
    2020TesselationUnitTest_LDFLAGS = $(CPPUNIT_LIBS) -ldl
     21ActOnAllTest_SOURCES = ActOnAllTest.hp ActOnAllUnitTest.cpp ActOnAllUnitTest.hpp vector.cpp vector.hpp
     22ActOnAllTest_CXXFLAGS = $(CPPUNIT_CFLAGS)
     23ActOnAllTest_LDFLAGS = $(CPPUNIT_LIBS) -ldl
     24
    2125
    2226EXTRA_DIST = ${molecuilder_DATA}
Note: See TracChangeset for help on using the changeset viewer.