Enable C++ use in selection methods.
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 24 Aug 2012 09:56:42 +0000 (12:56 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Tue, 28 Aug 2012 03:45:13 +0000 (06:45 +0300)
commit28c1cfd735f33d5020874b9f9b5a1dc0761bae00
tree057cbdff0b8b410bbaf6bbf3d882d5e5c7485759
parenta9beaee98013c7800ae62637fc081cbce86a71d3
Enable C++ use in selection methods.

The method that frees the internal data structure for a selection method
now also has the responsibility of freeing the data structure itself.
This makes it possible to allocate the data structure using operator new
in the initialization function, and then correctly free it.

Prerequisite for using C++ types in selection methods before #652 is
implemented.

Change-Id: I99e5a907cbdc4975d20becb0fb1d33e0026c135c
src/gromacs/selection/selelem.cpp
src/gromacs/selection/selmethod.h
src/gromacs/selection/sm_compare.cpp
src/gromacs/selection/sm_distance.cpp
src/gromacs/selection/sm_insolidangle.cpp
src/gromacs/selection/sm_keywords.cpp
src/gromacs/selection/sm_merge.cpp
src/gromacs/selection/sm_permute.cpp
src/gromacs/selection/sm_position.cpp
src/gromacs/selection/sm_same.cpp