Inja  3.4.0
A Template Engine for Modern C++
Classes | Public Types | Public Member Functions | List of all members
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 , Default , DivisibleBy ,
  Even , Exists , ExistsInObject , First ,
  Float , Int , IsArray , IsBoolean ,
  IsFloat , IsInteger , IsNumber , IsObject ,
  IsString , Last , Length , Lower ,
  Max , Min , Odd , Range ,
  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: