ztsdb
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
VBuiltinG Struct Reference

#include <valuevar_ic.hpp>

Classes

struct  ArgInfo
 

Public Types

typedef std::tuple< std::string, Value, yy::locationarg_t
 

Public Member Functions

 VBuiltinG (interp::BaseFrame *r, string name, string signature_s, function< Value(vector< arg_t > &, zcore::InterpCtx &)> f_p, bool evalEllipsis_p=true, map< string, ArgInfo > argInfo_p={})
 
Value operator() (interp::BuiltinFrame &a, zcore::InterpCtx &ic) const
 
void checkArgs (const interp::BuiltinFrame &r) const
 Check that the arguments are of the correct type.
 

Public Attributes

function< Value(vector< arg_t > &, zcore::InterpCtx &ic)> f
 
shared_ptr< Invokeinvoke
 
shared_ptr< Functionsignature
 
bool evalEllipsis
 
map< string, int > argMap
 
map< string, ArgInfoargInfo
 
int ellipsisPos
 

Static Public Attributes

static const unsigned MAXNAME = 128
 

Detailed Description

Builtin function value. This type contains the necessary information to make a C++ call. A flag controls if the parameters are executed or if a VCode is returned instead for each parameter.

Constructor & Destructor Documentation

◆ VBuiltinG()

VBuiltinG::VBuiltinG ( interp::BaseFrame r,
string  name,
string  signature_s,
function< Value(vector< arg_t > &, zcore::InterpCtx &)>  f_p,
bool  evalEllipsis_p = true,
map< string, ArgInfo argInfo_p = {} 
)
Parameters
nameenvironment in which this builtin is added

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