How ligverd/sqbinding works
SQBinding is a C++11 adapter between C++ applications and the Squirrel scripting VM. The principal workflow is to create or wrap a VM, register C++ functions/classes and values, execute a script, and optionally retrieve and call script functions from C++. Tables and arrays provide script-container access; shared object handling and type conversion support these bindings. The graph covers the core runtime modules and documented capabilities. Some headers are only partially excerpted, so edges are limited to visible calls, indexed references, or README statements.
Main entry points: sqbinding.cpp Binding API · sqbtable.h Table binding · sqbobject.cpp VM object handles · sqbfunction.h Function binding
Components 13
VM lifecycle
- Binding API
src/sqbinding.cpp - Binding interface
src/sqbinding.h
C++ bindings
- Table binding
src/sqbtable.h - Function binding
src/sqbfunction.h - Class binding
src/sqbclass.h - Call dispatch
src/sqbdetail.h
Objects and values
- Type conversion
src/sqbtypes.h - VM object handles
src/sqbobject.cpp - Array binding
src/sqbarray.h - Table access
src/sqbtable.h - Object interface
src/sqbobject.h
Other components
- C++ application
- Squirrel VM
Connections 20
- C++ application → Binding API: configures and executes
README.md - Binding API → Squirrel VM: creates or wraps
src/sqbinding.cpp - Binding API → Squirrel VM: executes scripts
src/sqbinding.cpp - Binding API → Table binding: inherits
- Table binding → Class binding: binds classes
src/sqbtable.h - Table binding → Function binding: retrieves functions
src/sqbtable.h - Table binding → Array binding: creates arrays
src/sqbtable.h - Class binding → Call dispatch: registers methods
src/sqbclass.h - Function binding → Call dispatch: dispatches calls
src/sqbfunction.h - Call dispatch → Type conversion: converts arguments
src/sqbdetail.h - Array binding → Type conversion: converts elements
src/sqbarray.h - Table access → Type conversion: converts values
src/sqbtable.h - Array binding → VM object handles: uses handles
src/sqbarray.h - Class binding → VM object handles: uses handles
src/sqbclass.h - Function binding → VM object handles: uses handles
src/sqbfunction.h - Table access → VM object handles: uses handles
src/sqbtable.h - VM object handles → Object interface: implements
src/sqbobject.cpp - Table binding → Table access: provides access
src/sqbtable.h - Function binding → Squirrel VM: calls script function
src/sqbfunction.h - Binding API → Squirrel VM: registers standard libraries
src/sqbinding.cpp