OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
OpenXLSX::XLWorksheetEvaluationContext Class Referencefinal

Evaluation context backed by a live worksheet (and its workbook for sheet-qualified refs). More...

#include <XLEvaluationContext.hpp>

Inheritance diagram for OpenXLSX::XLWorksheetEvaluationContext:
OpenXLSX::XLEvaluationContext

Public Member Functions

 XLWorksheetEvaluationContext (const XLWorksheet &wks) noexcept
XLCellValue cellValue (std::string_view ref) const override
 Resolve a single-cell reference to its live (or mapped) value.
Public Member Functions inherited from OpenXLSX::XLEvaluationContext
virtual ~XLEvaluationContext ()=default

Detailed Description

Evaluation context backed by a live worksheet (and its workbook for sheet-qualified refs).

Note
Valid only while the referenced worksheet remains alive.

Constructor & Destructor Documentation

◆ XLWorksheetEvaluationContext()

OpenXLSX::XLWorksheetEvaluationContext::XLWorksheetEvaluationContext ( const XLWorksheet & wks)
explicitnoexcept

Member Function Documentation

◆ cellValue()

XLCellValue OpenXLSX::XLWorksheetEvaluationContext::cellValue ( std::string_view ref) const
nodiscardoverridevirtual

Resolve a single-cell reference to its live (or mapped) value.

Parameters
refRaw reference text as seen by the formula engine.

Implements OpenXLSX::XLEvaluationContext.


The documentation for this class was generated from the following files: