-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
add readme for tag parameter framework #3414
Conversation
|
||
While defining a new Shogun class, `register_param()` or `register_member()` should be used in the constructor to register parameters and member variables of the class. This would allow the parameters or class member variables values to be queried or modified using `gets()` / `sets()`. These functions are required to prevent Shogun users to modify and query arbitrary parameters in an object but only those set of parameters which have been registered by using these two functions. The new Shogun class should also inherit `CSGObject` as these two functions are `protected` in `CSGObject`. Let's look at an example to make this more concrete. | ||
|
||
```cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
### What are Tags? | ||
|
||
`Tag` is a Shogun class which stores name and type information of a parameter. This allows a `Tag` object to be used as an identifier for a parameter in this new framework. Eg: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E.g.
Cool! I think it's very clear and only minor stuff needs to be fixed! |
This should be a wiki, no? |
Yes, I recently added a new repo for the wiki which can be cloned in a Wanna try? On Monday, 31 October 2016, Soumyajit De notifications@github.com wrote:
Sent from my phone |
Ill do it |
I have randomly placed it in
doc
for now. I think this will go to the wiki. Sending a PR for feedback.@lisitsyn @vigsterkr