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/ActOnAllUnitTest.hpp

    r424d1ce r4bc937  
    1818{
    1919    CPPUNIT_TEST_SUITE( ActOnAllTest) ;
    20     CPPUNIT_TEST ( ListTest );
     20    CPPUNIT_TEST ( AddSubtractTest );
     21    CPPUNIT_TEST ( ScaleTest );
     22    CPPUNIT_TEST ( NormalizeTest );
    2123    CPPUNIT_TEST_SUITE_END();
    2224
     
    2426      void setUp();
    2527      void tearDown();
    26       void ListTest();
    27 
     28      void AddSubtractTest();
     29      void ScaleTest();
     30      void NormalizeTest();
    2831
    2932private:
    3033      class VectorList VL;
     34      class VectorList Ref;
    3135};
    3236
Note: See TracChangeset for help on using the changeset viewer.