-
Notifications
You must be signed in to change notification settings - Fork 402
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
Use cxx::function
were it is appropriate
#831
Comments
@mossmaurice do you think the |
@elBoberido That's a good idea. I would defintely do it in separate PRs. However, I think this will be quite some effort. But removing |
@mossmaurice shall I extend the issue name ("Use cxx::function were it is appropriate") and add two tasks, one for |
cxx::function
were it is appropriate
@MatthiasKillat @mossmaurice @elBoberido I added a subtask to also remove the |
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
… value Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
… value Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…val and clang-format Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…val and clang-format Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
iox-#831 Replace `std::function` with `cxx::function`
…with cxx::function Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
cxx::function and remove unused Trigger::updateOrigin Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…oval Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
cxx::function and remove unused Trigger::updateOrigin Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…oval Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…mer tests Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…mer tests Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…mer tests Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…mer tests Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
cxx::function and remove unused Trigger::updateOrigin Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…oval Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…mer tests Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…on of 'cxx::function::operator!' Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
…with-cxx-function iox-#831 Replace `MethodCallback` with `cxx::function`
Brief feature description
We have some
std::function
usages left in iceoryx hoofs. They should be replaced withcxx::function
.This affects constructs needing callbacks, like
GenericRAII
(a better name would beRAIIGuard
or similar) and others.Furthermore constructs that are not used like
ActiveObject
are also affected.Note that there are no direct occurrences in posh (but indirectly, via hoofs).
Detailed information
We can replace them with
cxx::function
but need to choose its capacity carefully, likely on a case by case basis. We may have something global likecxx::function<Signature, 100>
as well, in memory of its deceased cousinstring<100>
.It could make sense to have some default (not 100 though, we should use powers of 2). Still a specific case can be used on a case by case basis also (we will learn what works best by trying it for some cases). For internal use, i.e. no user defined callbacks, this makes sense sinc ewe can just increase the capacity if needed later (it will not compile in this case).
User defined callbacks are a a different matter, but we need a bound here as well.
This issue may be broken down further to handle specific occurrences of
std::function
should it prove more complex.Tasks
std::function
iniceoryx_hoofs
MethodCallback
withcxx::function
MethodCallback
fromiceoryx_hoofs
The text was updated successfully, but these errors were encountered: