24#include <unordered_map>
60 static const std::unordered_map< core_t *, CoreCodeMetadata >
coreCodeTable_;
Central registry for all core code entries.
Definition registry.h:36
static const std::unordered_map< core_t *, CoreCodeMetadata > coreCodeTable_
Table of all core code entries.
Definition registry.h:69
static std::vector< std::pair< std::string_view, core_t * > > getPopulate(CCIntention p_int)
Assembles a vector with all core code entries of a specific intention.
Definition registry.cpp:34
static std::string_view lookUpName(core_t *p_core)
Finds the name of a core code.
Definition registry.cpp:46
CCIntention
Intention of a core code entry.
Definition registry.h:41
@ LeoDict
Registered in leodict.
@ Loop
Unregistered auxiliary loop operators (e.g., __for_up_continue).
@ Odo
Unregistered optimization operators (for bind).
@ SystemDict
Registered in systemdict.
@ Compatibility
Unregistered operators for PostScript/Forth compatibility.
static core_t * lookUpCoreCode(std::string_view p_name)
Finds the core code for a name.
Definition registry.cpp:61
static size_t lookUpStackusage(core_t *p_core)
Finds the stackusage of a core code.
Definition registry.cpp:53
static bool lookUp(core_t *p_core)
Checks if core code is in the static table.
Definition registry.h:69
Helpers for design by contract idioms.
Miscellaneous definitions and functions.
void(Context &) core_t
A shortcut for the core code function type.
Definition helper.h:82