Ignore:
Timestamp:
Jan 10, 2011, 8:06:49 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
192c04
Parents:
9f39db
git-author:
Frederik Heber <heber@…> (01/06/11 23:48:30)
git-committer:
Frederik Heber <heber@…> (01/10/11 20:06:49)
Message:

New patterns ManipulableClone and ManipulablePrototypeFactory, changed PrototypeFactory.

  • ManipulableClone is a Clone that can spawn a manipulated copy varied by given parameters.
  • prototypes in PrototypeFactory cannot be manipulated anymore.
  • PrototypeFactory::getPrototypeManipulator() -> getPrototype() and returned reference is const (and a ref, no pointer. Preventing its accidental deletion).
  • ManipulablePrototypeFactory then has non-const references returned by getProduct().
  • ManipulablePrototypeFactory::manipulatePrototype() allows direct manipulation of the prototype by a given parameter set.
  • Added unit tests for the new patterns.
  • Changed unit tests for PrototypeFactory.
  • Library version is now 4:0:0, API version is 1.0.7.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Patterns/unittests/PrototypeFactoryUnitTest.hpp

    r9f39db r8dd38e  
    2626  CPPUNIT_TEST ( getProductTypeTest );
    2727  CPPUNIT_TEST ( Individualitytest );
    28   CPPUNIT_TEST ( PrototypeManipulatortest );
    29   CPPUNIT_TEST ( installPrototypetest );
     28  CPPUNIT_TEST ( getPrototypetest );
    3029  CPPUNIT_TEST_SUITE_END();
    3130
     
    3938  void getProductTypeTest();
    4039  void Individualitytest();
    41   void PrototypeManipulatortest();
    42   void installPrototypetest();
     40  void getPrototypetest();
    4341
    4442private:
Note: See TracChangeset for help on using the changeset viewer.