diff options
author | Josh Blum | 2013-06-01 16:43:10 -0400 |
---|---|---|
committer | Josh Blum | 2013-06-01 16:43:10 -0400 |
commit | f1b9b9a44b9f50d6cca8234998d7e0adf64e46af (patch) | |
tree | 5f7faed39ad80c0febf26716b874787af294e087 /lib/gras_impl/block_actor.hpp | |
parent | 41c180eece1af536874c8591539aeb0a23f6e134 (diff) | |
download | sandhi-f1b9b9a44b9f50d6cca8234998d7e0adf64e46af.tar.gz sandhi-f1b9b9a44b9f50d6cca8234998d7e0adf64e46af.tar.bz2 sandhi-f1b9b9a44b9f50d6cca8234998d7e0adf64e46af.zip |
props: added query functionality to enumerate properties
Diffstat (limited to 'lib/gras_impl/block_actor.hpp')
-rw-r--r-- | lib/gras_impl/block_actor.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gras_impl/block_actor.hpp b/lib/gras_impl/block_actor.hpp index bc4ecdd..269674c 100644 --- a/lib/gras_impl/block_actor.hpp +++ b/lib/gras_impl/block_actor.hpp @@ -24,6 +24,11 @@ namespace gras { typedef boost::shared_ptr<PropertyRegistry> PropertyRegistrySptr; +struct PropertyRegistryPair +{ + PropertyRegistrySptr setter; + PropertyRegistrySptr getter; +}; struct BlockActor : Apology::Worker { @@ -163,8 +168,7 @@ struct BlockActor : Apology::Worker std::vector<std::vector<OutputHintMessage> > output_allocation_hints; //property stuff - std::map<std::string, PropertyRegistrySptr> getter_registry; - std::map<std::string, PropertyRegistrySptr> setter_registry; + std::map<std::string, PropertyRegistryPair> property_registry; BlockStats stats; }; |