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

In-memory evaluation context for unit tests and offline formula checks. More...

#include <XLEvaluationContext.hpp>

Inheritance diagram for OpenXLSX::XLMapEvaluationContext:
OpenXLSX::XLEvaluationContext

Public Member Functions

 XLMapEvaluationContext ()=default
 XLMapEvaluationContext (std::unordered_map< std::string, XLCellValue > cells)
void set (std::string_view ref, XLCellValue value)
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

In-memory evaluation context for unit tests and offline formula checks.

Constructor & Destructor Documentation

◆ XLMapEvaluationContext() [1/2]

OpenXLSX::XLMapEvaluationContext::XLMapEvaluationContext ( )
default

◆ XLMapEvaluationContext() [2/2]

OpenXLSX::XLMapEvaluationContext::XLMapEvaluationContext ( std::unordered_map< std::string, XLCellValue > cells)
explicit

Member Function Documentation

◆ cellValue()

XLCellValue OpenXLSX::XLMapEvaluationContext::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.

◆ set()

void OpenXLSX::XLMapEvaluationContext::set ( std::string_view ref,
XLCellValue value )

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