Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 14 commits into from
Jun 7, 2016

Conversation

TomFischer
Copy link
Member

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

/// return a geometry type
virtual GEOTYPE getGeoType() const {return GEOTYPE::SURFACE;}
Surface(Surface && src) = delete;
Surface& operator=(Surface const& src) = delete;
Copy link
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
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
Member

Surface(const std::vector<Point*> &pnt_vec);
virtual ~Surface ();
explicit Surface(const std::vector<Point*>& pnt_vec);
explicit Surface(Surface const& src);
Copy link
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
Collaborator

👍

@endJunction
Copy link
Member

endJunction commented Jun 7, 2016

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

@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
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