hummingbird
Solving the self-adjoint angular flux transport equation using spectral elements on Cartesian geometry
Loading...
Searching...
No Matches
te_variable Class Reference

Custom variable or function that can be added to a te_parser. More...

#include <tinyexpr.h>

Collaboration diagram for te_variable:
[legend]

Public Attributes

name_type m_name
 The name as it would appear in a formula.
te_variant_type m_value
 The te_type constant, te_type pointer, or function to bind the name to.
te_variable_flags m_type {TE_DEFAULT}
 The type that m_value represents.
te_expr * m_context {nullptr}

Private Types

using name_type = std::string

Private Member Functions

bool operator< (const te_variable &that) const

Detailed Description

Custom variable or function that can be added to a te_parser.

Definition at line 357 of file tinyexpr.h.

Member Typedef Documentation

◆ name_type

using te_variable::name_type = std::string
private

Definition at line 360 of file tinyexpr.h.

Member Function Documentation

◆ operator<()

bool te_variable::operator< ( const te_variable & that) const
inlinenodiscardprivate

Definition at line 364 of file tinyexpr.h.

Member Data Documentation

◆ m_context

te_expr* te_variable::m_context {nullptr}

If m_value is a function pointer of type te_confun0-te_confun24, then this is passed to that function when called. This is useful for passing an object which manages additional data to your functions.

Definition at line 378 of file tinyexpr.h.

◆ m_name

name_type te_variable::m_name

The name as it would appear in a formula.

Definition at line 369 of file tinyexpr.h.

◆ m_type

te_variable_flags te_variable::m_type {TE_DEFAULT}

The type that m_value represents.

Definition at line 374 of file tinyexpr.h.

◆ m_value

te_variant_type te_variable::m_value

The te_type constant, te_type pointer, or function to bind the name to.

Definition at line 372 of file tinyexpr.h.


The documentation for this class was generated from the following file:
  • /home/runner/work/hummingbird/hummingbird/include/utils/tinyexpr.h