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

convert to handle class #67

Open
2 tasks
erik-roberts opened this issue May 23, 2017 · 2 comments
Open
2 tasks

convert to handle class #67

erik-roberts opened this issue May 23, 2017 · 2 comments
Assignees

Comments

@erik-roberts
Copy link
Collaborator

erik-roberts commented May 23, 2017

this enables mdd objects to be passed by reference instead of passed by value, thus saving a lot of memory for large objects. this also allows objects to be modified without having to return the object. finally, it allows listeners/events/callbacks in subclasses, which would be useful for gimbl-vis. if it’s not a handle class, no subclasses can be handle classes.

TODO:

  • look for places in need of copy method usage to make separate object.
  • fix methods with own file
@erik-roberts
Copy link
Collaborator Author

started in branch iss67_handle_class

@erik-roberts
Copy link
Collaborator Author

erik-roberts commented May 23, 2017

an alternative that i just thought of, that I'm trying to implement in GV, is to use a wrapper handle class with dependent properties that access mdd. we could make this part of the MDD library, so that people have the object of a normal or handle object, for pass by reference vs. pass by value.

finished this idea in #69
you can check it out by using MDDRef class

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

No branches or pull requests

1 participant