diff options
Diffstat (limited to 'include/llmr/style/class_properties.hpp')
-rw-r--r-- | include/llmr/style/class_properties.hpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/include/llmr/style/class_properties.hpp b/include/llmr/style/class_properties.hpp deleted file mode 100644 index 55d6aa2cc6..0000000000 --- a/include/llmr/style/class_properties.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef LLMR_STYLE_CLASS_PROPERTIES -#define LLMR_STYLE_CLASS_PROPERTIES - -#include <llmr/style/property_key.hpp> -#include <llmr/style/property_value.hpp> -#include <llmr/style/property_transition.hpp> - -#include <map> - -namespace llmr { - -class ClassProperties { -public: - inline ClassProperties() {} - inline ClassProperties(ClassProperties &&properties) - : properties(std::move(properties.properties)) {} - - inline void set(PropertyKey key, const PropertyValue &value) { - properties.emplace(key, value); - } - - inline void set(PropertyKey key, const PropertyTransition &transition) { - transitions.emplace(key, transition); - } - - const PropertyTransition &getTransition(PropertyKey key, const PropertyTransition &defaultTransition) const; - - // Route-through iterable interface so that you can iterate on the object as is. - inline std::map<PropertyKey, PropertyValue>::const_iterator begin() const { - return properties.begin(); - } - inline std::map<PropertyKey, PropertyValue>::const_iterator end() const { - return properties.end(); - } - -public: - std::map<PropertyKey, PropertyValue> properties; - std::map<PropertyKey, PropertyTransition> transitions; -}; - -} - -#endif |