2 #include <score/plugins/StringFactoryKey.hpp>
3 #include <score/tools/Debug.hpp>
4 #include <score/tools/std/HashMap.hpp>
9 #include <score_lib_process_export.h>
29 std::vector<ContextMenuFun> functions;
42 SCORE_ASSERT(m_container.find(val.key()) == m_container.end());
43 m_container.insert(std::make_pair(val.key(), std::move(val)));
50 SCORE_ASSERT(m_container.find(meta_t::static_key()) != m_container.end());
51 return m_container.find(meta_t::static_key())->second;
58 SCORE_ASSERT(m_container.find(meta_t::static_key()) != m_container.end());
59 return m_container.find(meta_t::static_key())->second;
62 auto& get() {
return m_container; }
63 auto& get()
const {
return m_container; }
70 #define SCORE_PROCESS_DECLARE_CONTEXT_MENU(Export, Type) \
71 namespace ContextMenus \
78 class Export MetaContextMenu<ContextMenus::Type> \
81 static LayerContextMenu make() \
83 return LayerContextMenu{static_key()}; \
86 static StringKey<Process::LayerContextMenu> static_key() \
88 return StringKey<Process::LayerContextMenu>{#Type}; \
Definition: StringFactoryKey.hpp:8
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Definition: ProcessContext.hpp:21