Skip to content

[GL] Impl. of copy constructor of Surface and minor improvements#1237

Merged
TomFischer merged 14 commits intoufz:masterfrom
TomFischer:GeoLibImprovements
Jun 7, 2016
Merged

[GL] Impl. of copy constructor of Surface and minor improvements#1237
TomFischer merged 14 commits intoufz:masterfrom
TomFischer:GeoLibImprovements

Conversation

@TomFischer
Copy link
Copy Markdown
Member

  • Impl. of Surface copy construtor
  • Cleanup unused code
  • Clang format
  • Make classes Triangle and Surface final
  • Readability improvements

Comment thread GeoLib/Surface.h
/// return a geometry type
virtual GEOTYPE getGeoType() const {return GEOTYPE::SURFACE;}
Surface(Surface && src) = delete;
Surface& operator=(Surface const& src) = delete;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there reasons not to implement the copy assignment? If not I'd suggest to implement it too along with the copy ctor.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I implemented the copy constructor since @rinkk needs it. The only reason the move constructor and the assignment and assignment move operators are not implemented is that they are not needed until now.

@endJunction
Copy link
Copy Markdown
Member

Comment thread GeoLib/Surface.h Outdated
Surface(const std::vector<Point*> &pnt_vec);
virtual ~Surface ();
explicit Surface(const std::vector<Point*>& pnt_vec);
explicit Surface(Surface const& src);
Copy link
Copy Markdown
Collaborator

@norihiro-w norihiro-w Jun 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to set explicit for a copy constructor ✅

@norihiro-w
Copy link
Copy Markdown
Collaborator

👍

@endJunction
Copy link
Copy Markdown
Member

endJunction commented Jun 7, 2016

@TomFischer The explicit ctor could be fixed... ✅

@TomFischer TomFischer force-pushed the GeoLibImprovements branch from 4637749 to df4def9 Compare June 7, 2016 07:39
@TomFischer TomFischer merged commit 5446332 into ufz:master Jun 7, 2016
@TomFischer TomFischer deleted the GeoLibImprovements branch June 7, 2016 07:56
@ogsbot
Copy link
Copy Markdown
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants