Skip to content

[FIX-#184] remove public vector/map inheritance - #1029

Merged
hroest merged 15 commits into
OpenMS:developfrom
aiche:feature/remove-public-vector-inheritance
Oct 5, 2014
Merged

hroest merged 15 commits into
OpenMS:developfrom
aiche:feature/remove-public-vector-inheritance

Conversation

@aiche

@aiche aiche commented Sep 30, 2014

Copy link
Copy Markdown
Contributor

This pull request removes the public inheritance from

  • MSSpectrum
  • MSChromatogram
  • AcquisitionInfo
  • SimTypes
  • TextFile
  • Map

and fixes an issue with the initialisation order leading to crashes in ProgressLogger.

See also #184

@aiche aiche added this to the Release 1.12 milestone Sep 30, 2014
@hroest

hroest commented Sep 30, 2014

Copy link
Copy Markdown
Contributor

can you fix

otherwise looks good

@aiche

aiche commented Sep 30, 2014

Copy link
Copy Markdown
Contributor Author

coding style issues http://cdash.openms.de/viewTest.php?onlyfailed&buildid=104800

done. automated uncrustify run on all changed files

pyOpenMS: at least in InspectInfile.h you change the return type and you would need to change src/pyOpenMS/pxds/InspectInfile.pxd as well
same goes for src/pyOpenMS/pxds/ConsensusMap.pxd

done. I will compile pyOpenMS separately and check if my fixes worked

why did you remove the default instantiations of MSChromatogram, for example in src/openms/source/KERNEL/MSChromatogram.cpp ? I thought we needed them for Windows?

AFAIK the default instances are mostly due to the public inheritance from stl containers, which is removed with this pull request. I will test this on a windows machine and then report back.

@aiche

aiche commented Sep 30, 2014

Copy link
Copy Markdown
Contributor Author

I checked on windows and there seem to be some problems. I will investigate them and update the pull request as soon as I found a solution.

@aiche

aiche commented Oct 1, 2014

Copy link
Copy Markdown
Contributor Author

windows compiles without the default instances, @cbielow should we remove the /wd4251 and /wd4275 or is std::string also a problem?

@aiche

aiche commented Oct 1, 2014

Copy link
Copy Markdown
Contributor Author

Ok, windows compiles, tests should pass (lets wait for travis) and pyOpenMS wrapping is fixed by replacing std::pair<FASTAEntry, MetaInfoInterface> with a simple struct in SimTypes.h

@hroest

hroest commented Oct 2, 2014

Copy link
Copy Markdown
Contributor

if pyOpenMS runs through and the test work, this is great

👍

@timosachsenberg

Copy link
Copy Markdown
Contributor

great +1

@aiche

aiche commented Oct 2, 2014

Copy link
Copy Markdown
Contributor Author

I restarted gcc but there are again some errors, let's wait for the results

@aiche

aiche commented Oct 2, 2014

Copy link
Copy Markdown
Contributor Author

fixed warning/error in BinnedSpectrum.cpp, let's wait for travis

@aiche

aiche commented Oct 2, 2014

Copy link
Copy Markdown
Contributor Author

ok, gcc crashed again when compiling FeatureFinder, the rest passed

@hroest

hroest commented Oct 2, 2014

Copy link
Copy Markdown
Contributor

can we do something about these gcc crashes and the FeatureFinder? maybe we should open an issue about it

it probably uses too much memory there? maybe we could reduce the amount of templates ?

@hroest

hroest commented Oct 2, 2014

Copy link
Copy Markdown
Contributor

looks good to me, 👍

@aiche

aiche commented Oct 5, 2014

Copy link
Copy Markdown
Contributor Author

how do want to proceed here?

@hroest

hroest commented Oct 5, 2014

Copy link
Copy Markdown
Contributor

we have 3 ppl with a +1, so lets merge

hroest added a commit that referenced this pull request Oct 5, 2014
…ritance

[FIX-#184] remove public vector/map inheritance
@hroest
hroest merged commit 4d2ae8e into OpenMS:develop Oct 5, 2014
@aiche
aiche deleted the feature/remove-public-vector-inheritance branch October 5, 2014 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants