21 #ifndef mia_core_datapool_hh
22 #define mia_core_datapool_hh
25 #include <boost/any.hpp>
57 void add(
const std::string& key, boost::any value);
62 boost::any get(
const std::string& key)
const;
69 boost::any get_and_remove(
const std::string& key);
75 void remove(
const std::string& key);
82 bool has_key(
const std::string& key)
const;
92 bool has_unused_data()
const;
102 typedef std::map<std::string, boost::any> Anymap;
103 typedef Anymap::const_iterator const_iterator;
104 const_iterator get_iterator(
const std::string& key)
const;
106 typedef std::map<std::string, bool> Usagemap;
107 mutable Usagemap m_usage;