|
@@ -1,5 +1,5 @@
|
|
|
/**
|
|
|
- * @file artis/kernel/Values.hpp
|
|
|
+ * @file artis/context/Values.hpp
|
|
|
* @author See the AUTHORS file
|
|
|
*/
|
|
|
|
|
@@ -30,7 +30,7 @@
|
|
|
#include <boost/serialization/serialization.hpp>
|
|
|
#include <boost/serialization/map.hpp>
|
|
|
|
|
|
-namespace artis { namespace kernel {
|
|
|
+namespace artis { namespace context {
|
|
|
|
|
|
class Values
|
|
|
{
|
|
@@ -43,16 +43,16 @@ public:
|
|
|
|
|
|
template < typename T >
|
|
|
void add_internal(unsigned int key, T value)
|
|
|
- { _internals[key] = Value(value); }
|
|
|
+ { _internals[key] = kernel::Value(value); }
|
|
|
|
|
|
template < typename T >
|
|
|
void add_state(unsigned int key, T value)
|
|
|
- { _states[key] = Value(value); }
|
|
|
+ { _states[key] = kernel::Value(value); }
|
|
|
|
|
|
template < typename T >
|
|
|
void get_internal(unsigned int key, T& value) const
|
|
|
{
|
|
|
- std::map < unsigned int, Value >::const_iterator it =
|
|
|
+ std::map < unsigned int, kernel::Value >::const_iterator it =
|
|
|
_internals.find(key);
|
|
|
|
|
|
if (it != _internals.end()) {
|
|
@@ -65,7 +65,7 @@ public:
|
|
|
template < typename T >
|
|
|
void get_state(unsigned int key, T& value) const
|
|
|
{
|
|
|
- std::map < unsigned int, Value >::const_iterator it =
|
|
|
+ std::map < unsigned int, kernel::Value >::const_iterator it =
|
|
|
_states.find(key);
|
|
|
|
|
|
if (it != _states.end()) {
|
|
@@ -87,8 +87,8 @@ private:
|
|
|
ar & _states;
|
|
|
}
|
|
|
|
|
|
- std::map < unsigned int, Value > _internals;
|
|
|
- std::map < unsigned int, Value > _states;
|
|
|
+ std::map < unsigned int, kernel::Value > _internals;
|
|
|
+ std::map < unsigned int, kernel::Value > _states;
|
|
|
};
|
|
|
|
|
|
} }
|