Ignore:
Timestamp:
Oct 5, 2009, 8:51:24 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
d40b96
Parents:
424d1ce
Message:

Member functions of Vector class may be called while going over an iteration of a list containing Vectors, thanks to member function pointers.

  • Unit test ActOnAllTest is the basic class for showing, how we can use any member function of Vector:: and make it act globally over a list of vectors.
  • this is incorporated into the definition of class molecule for the vectors contained in the atoms chained list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Makefile.am

    r424d1ce r4bc937  
    1616TESTS = VectorUnitTest MemoryAllocatorUnitTest MemoryUsageObserverUnitTest TesselationUnitTest
    1717check_PROGRAMS = $(TESTS)
     18
    1819VectorUnitTest_SOURCES = defs.hpp helpers.cpp helpers.hpp leastsquaremin.cpp leastsquaremin.hpp memoryallocator.hpp memoryusageobserver.cpp memoryusageobserver.hpp vectorunittest.cpp vectorunittest.hpp vector.cpp vector.hpp verbose.cpp verbose.hpp
    1920VectorUnitTest_CXXFLAGS = $(CPPUNIT_CFLAGS)
    2021VectorUnitTest_LDFLAGS = $(CPPUNIT_LIBS) -ldl
     22
    2123TesselationUnitTest_SOURCES = defs.hpp helpers.cpp helpers.hpp leastsquaremin.cpp leastsquaremin.hpp linkedcell.cpp linkedcell.hpp memoryallocator.hpp memoryusageobserver.cpp memoryusageobserver.hpp tesselation.cpp tesselation.hpp tesselationhelpers.cpp tesselationhelpers.hpp tesselationunittest.cpp tesselationunittest.hpp vector.cpp vector.hpp verbose.cpp verbose.hpp
    2224TesselationUnitTest_CXXFLAGS = $(CPPUNIT_CFLAGS)
    2325TesselationUnitTest_LDFLAGS = $(CPPUNIT_LIBS) -ldl
    24 ActOnAllTest_SOURCES = ActOnAllTest.hp ActOnAllUnitTest.cpp ActOnAllUnitTest.hpp vector.cpp vector.hpp
     26
     27ActOnAllTest_SOURCES = ActOnAllTest.hp ActOnAllUnitTest.cpp ActOnAllUnitTest.hpp defs.hpp helpers.cpp helpers.hpp memoryallocator.hpp memoryusageobserver.cpp memoryusageobserver.hpp vector.cpp vector.hpp verbose.cpp verbose.hpp leastsquaremin.cpp leastsquaremin.hpp
    2528ActOnAllTest_CXXFLAGS = $(CPPUNIT_CFLAGS)
    2629ActOnAllTest_LDFLAGS = $(CPPUNIT_LIBS) -ldl
Note: See TracChangeset for help on using the changeset viewer.