The XLFormulaProxy serves as a placeholder for XLFormula objects. This enable getting and setting formulas through the same interface.
More...
#include <XLFormula.hpp>
|
| | ~XLFormulaProxy () |
| | Destructor.
|
| |
| XLFormulaProxy & | operator= (const XLFormulaProxy &other) |
| | Copy assignment operator.
|
| |
| template<typename T , typename = std::enable_if_t<std::is_same_v<std::decay_t<T>, XLFormula> or std::is_same_v<std::decay_t<T>, std::string> || std::is_same_v<std::decay_t<T>, std::string_view> || std::is_same_v<std::decay_t<T>, const char*> or std::is_same_v<std::decay_t<T>, char*>>> |
| XLFormulaProxy & | operator= (T formula) |
| | Templated assignment operator, taking a string-type argument.
|
| |
| template<typename T , typename = std::enable_if_t<std::is_same_v<std::decay_t<T>, std::string> or std::is_same_v<std::decay_t<T>, std::string_view> || std::is_same_v<std::decay_t<T>, const char*> or std::is_same_v<std::decay_t<T>, char*>>> |
| void | set (T formula) |
| | Templated setter, taking a string-type argument.
|
| |
| std::string | get () const |
| | Get the formula as a std::string.
|
| |
| XLFormulaProxy & | clear () |
| | Clear the formula.
|
| |
| | operator std::string () const |
| | Conversion operator, for converting the object to a std::string.
|
| |
| | operator XLFormula () const |
| | Implicit conversion to XLFormula object.
|
| |
The XLFormulaProxy serves as a placeholder for XLFormula objects. This enable getting and setting formulas through the same interface.
◆ ~XLFormulaProxy()
| XLFormulaProxy::~XLFormulaProxy |
( |
| ) |
|
|
default |
Destructor.
Destructor. Default implementation.
◆ clear()
Clear the formula.
- Returns
- Return a reference to the cleared object.
If a formula node exists, it will be erased.
◆ get()
| std::string XLFormulaProxy::get |
( |
| ) |
const |
Get the formula as a std::string.
- Returns
- A std::string with the formula.
Call the .get() function in the underlying XLFormula object.
◆ operator std::string()
| XLFormulaProxy::operator std::string |
( |
| ) |
const |
Conversion operator, for converting the object to a std::string.
- Returns
- The formula as a std::string.
◆ operator XLFormula()
Implicit conversion to XLFormula object.
- Returns
- Returns the corresponding XLFormula object.
Returns the underlying XLFormula object, by calling getFormula().
◆ operator=() [1/2]
Copy assignment operator.
- Parameters
-
| other | Object to be copied. |
- Returns
- A reference to the copied-to object.
Calls the templated string assignment operator.
◆ operator=() [2/2]
template<typename T , typename = std::enable_if_t<std::is_same_v<std::decay_t<T>, XLFormula> or std::is_same_v<std::decay_t<T>, std::string> || std::is_same_v<std::decay_t<T>, std::string_view> || std::is_same_v<std::decay_t<T>, const char*> or std::is_same_v<std::decay_t<T>, char*>>>
Templated assignment operator, taking a string-type argument.
- Template Parameters
-
- Parameters
-
| formula | The formula string to be assigned. |
- Returns
- A reference to the copied-to object.
◆ set()
template<typename T , typename = std::enable_if_t<std::is_same_v<std::decay_t<T>, std::string> or std::is_same_v<std::decay_t<T>, std::string_view> || std::is_same_v<std::decay_t<T>, const char*> or std::is_same_v<std::decay_t<T>, char*>>>
| void OpenXLSX::XLFormulaProxy::set |
( |
T |
formula | ) |
|
|
inline |
Templated setter, taking a string-type argument.
- Template Parameters
-
- Parameters
-
| formula | The formula string to be assigned. |
◆ XLCell
◆ XLFormula
The documentation for this class was generated from the following files:
- /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/headers/XLFormula.hpp
- /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/sources/XLFormula.cpp