|
Boost : |
Subject: Re: [boost] [mixin] New library reminder
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2013-07-12 14:03:15
Also, to complete the entity-component part of the idea of mixin:
3. is there a way to go through all the instances of the same type? for
example:
mutate(o)
.add<xml_serializer>()
.add<book_data>();
Assuming there is more than one instance composed of book_data, is there a
way to list
or just apply a function to all currently instanciated book_data?
If not, I think a way to do it would be useful in high performance cases
(to update all the components of the
same type in one pass, avoiding cache misses and enabling some possible
concurrent update setup).
But as it's not the core feature I think it would be a nice update.
Joel Lamotte
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk