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

Specialized for integral states and/or action. #20

Open
JoeyAndres opened this issue Nov 19, 2016 · 0 comments
Open

Specialized for integral states and/or action. #20

JoeyAndres opened this issue Nov 19, 2016 · 0 comments
Milestone

Comments

@JoeyAndres
Copy link
Owner

In light of RL-#19, states and action are wrapped in shared_ptr. Specialized for integtral states and/or integral action. E.g. for StateAction<S, A>, we can have

template<>
class StateAction<rl::INT, rl::INT>;
using StateActionII = StateAction<rl::INT, rl::INT>;

template<class A>
class State<rl::INT, A>;
template<class A>
using StateActionIX = StateAction<rl::INT, A>;

template<class S>
class State<S, rl::INT>;
template<class S>
using StateActionXI = StateAction<S, rl::INT>;

As well as for rl::UINT.

This way, we can specialized and remove shared_ptr overhead for integral types.

@JoeyAndres JoeyAndres added this to the v2.0.2 milestone Nov 19, 2016
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