welder 0.1.0
Bindings for annotated C++ types, from C++26 reflection
Loading...
Searching...
No Matches
welder::rods::luabridge::rod::enum_handle Struct Reference

The enum handle threaded from make_enum to add_enumerator: the enclosing module, the enum's Lua name (a nested namespace of values) and whether it is scoped (an unscoped enum also mirrors its names onto the module). More...

#include <welder/rods/lua/luabridge/rod.hpp>

Public Attributes

module_scope mod
std::string name
bool scoped
std::string outer_key {}

Detailed Description

The enum handle threaded from make_enum to add_enumerator: the enclosing module, the enum's Lua name (a nested namespace of values) and whether it is scoped (an unscoped enum also mirrors its names onto the module).

For a class-nested enum, outer_key names the enclosing class's table on the module (make_nested_enum places the value table inside it), and the unscoped mirror lands there instead of on the module. Empty for the ordinary module-scope enum.

Definition at line 179 of file rod.hpp.

Member Data Documentation

◆ mod

module_scope welder::rods::luabridge::rod::enum_handle::mod

Definition at line 180 of file rod.hpp.

Referenced by welder::rods::luabridge::rod::add_enumerator().

◆ name

std::string welder::rods::luabridge::rod::enum_handle::name

Definition at line 181 of file rod.hpp.

Referenced by welder::rods::luabridge::rod::add_enumerator().

◆ outer_key

std::string welder::rods::luabridge::rod::enum_handle::outer_key {}

Definition at line 183 of file rod.hpp.

Referenced by welder::rods::luabridge::rod::add_enumerator().

◆ scoped

bool welder::rods::luabridge::rod::enum_handle::scoped

Definition at line 182 of file rod.hpp.

Referenced by welder::rods::luabridge::rod::add_enumerator().


The documentation for this struct was generated from the following file:
  • src/welder/rods/lua/luabridge/rod.hpp