Inja 3.5.0
A Template Engine for Modern C++
Loading...
Searching...
No Matches
inja::FunctionStorage Class Reference

Class for builtin functions and user-defined callbacks. More...

#include <function_storage.hpp>

Classes

struct  FunctionData

Public Types

enum class  Operation {
  Not , And , Or , In ,
  Equal , NotEqual , Greater , GreaterEqual ,
  Less , LessEqual , Add , Subtract ,
  Multiplication , Division , Power , Modulo ,
  AtId , At , Capitalize , Default ,
  DivisibleBy , Even , Exists , ExistsInObject ,
  First , Float , Int , IsArray ,
  IsBoolean , IsFloat , IsInteger , IsNumber ,
  IsObject , IsString , Last , Length ,
  Lower , Max , Min , Odd ,
  Range , Replace , Round , Sort ,
  Upper , Super , Join , Callback ,
  None
}

Public Member Functions

void add_builtin (std::string_view name, int num_args, Operation op)
void add_callback (std::string_view name, int num_args, const CallbackFunction &callback)
FunctionData find_function (std::string_view name, int num_args) const

Detailed Description

Class for builtin functions and user-defined callbacks.


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