HomePhabricator
Diffusion MITK 52bd6cfaf288

Fixed property assignment issues.

Description

Fixed property assignment issues.

mitk::BaseProperty now uses the non-virtual interface (NVI) idiom
for polymorphic assignment. The assignment operator and copy
constructor of subclasses of mitk::BaseProperty should be disabled
and bool Assign(const BaseProperty&) should be implemented instead
(either private or protected).

Assignable(const BaseProperty&) has been removed and
mitk::PropertyList::SetProperty(...) has been simplified.

New unit tests for polymorphic comparison and assignment of properties.

Details

Provenance
zelzerAuthored on Oct 18 2011, 3:08 PM
Parents
rMITK39f6d74f35bc: Use the NVI idiom for comparing property objects.
Branches
Unknown
Tags
Unknown