|
OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
|
Per-evaluation session shared by the engine and session-aware functions. More...
#include <XLFormulaEngine.hpp>
Data Structures | |
| struct | PackedCellKey |
| 64-bit coordinate encoding for fast, normalized circular dependency checking. More... | |
Public Member Functions | |
| XLEvalSession ()=default | |
| XLEvalSession (const XLCellResolver &resolver) | |
| XLEvalSession & | setResolver (const XLCellResolver &resolver) |
| XLEvalSession & | setNameResolver (XLNameResolver nameResolver) |
| XLEvalSession & | setCurrentCell (uint32_t row, uint16_t col) |
| Bind the cell that owns the formula (1-based Excel coordinates). | |
| XLEvalSession & | setCurrentSheet (std::string sheetName) |
| bool | hasResolver () const |
| const XLCellResolver * | resolverPtr () const |
| XLCellValue | cellValue (std::string_view ref) const |
| std::optional< std::string > | resolveName (std::string_view name) const |
| bool | hasCurrentCell () const noexcept |
| uint32_t | currentRow () const noexcept |
| uint16_t | currentCol () const noexcept |
| const std::string & | currentSheet () const noexcept |
| bool | enterCall () |
| Enter a nested function/ref resolution (INDIRECT, etc.). | |
| void | leaveCall () noexcept |
| int | callDepth () const noexcept |
| bool | enterNodeEval () |
| Enter AST node evaluation recursion. | |
| void | leaveNodeEval () noexcept |
| int | nodeEvalDepth () const noexcept |
| bool | pushEvaluatingCell (std::string_view ref) |
| Check and track cell references to detect circular dependency during evaluation. | |
| void | popEvaluatingCell () noexcept |
| PackedCellKey | parsePackedKey (std::string_view ref) const |
| XLFormulaArg | expandRange (std::string_view rangeRef) const |
| Expand an A1-style cell/range text into a LazyRange (or scalar error). | |
Static Public Attributes | |
| static constexpr int | kMaxCallDepth = 128 |
| static constexpr int | kMaxNodeEvalDepth = 256 |
| static constexpr size_t | kInlineCellStackCapacity = 32 |
Per-evaluation session shared by the engine and session-aware functions.
Phase A extension point for deep formula features:
Lifetime: valid only for the duration of a single XLFormulaEngine::evaluate call (or an explicitly scoped session created by the caller).
|
default |
|
inlineexplicit |
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inline |
Enter a nested function/ref resolution (INDIRECT, etc.).
|
inline |
Enter AST node evaluation recursion.
|
nodiscard |
Expand an A1-style cell/range text into a LazyRange (or scalar error).
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenodiscardnoexcept |
|
nodiscard |
|
noexcept |
| bool XLEvalSession::pushEvaluatingCell | ( | std::string_view | ref | ) |
Check and track cell references to detect circular dependency during evaluation.
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
Bind the cell that owns the formula (1-based Excel coordinates).
Enables parameterless ROW()/COLUMN() and future relative-ref features.
|
inline |
|
inline |
|
inline |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |