GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
chaiscript::detail::Dispatch_Function Class Referencefinal

#include <dispatchkit.hpp>

Inheritance diagram for chaiscript::detail::Dispatch_Function:
Collaboration diagram for chaiscript::detail::Dispatch_Function:

Public Member Functions

 Dispatch_Function (std::vector< Proxy_Function > t_funcs)
bool operator== (const dispatch::Proxy_Function_Base &rhs) const override
std::vector< Const_Proxy_Function > get_contained_functions () const override
bool call_match (const std::vector< Boxed_Value > &vals, const Type_Conversions_State &t_conversions) const override
Public Member Functions inherited from chaiscript::dispatch::Proxy_Function_Base
virtual ~Proxy_Function_Base ()=default
Boxed_Value operator() (const std::vector< Boxed_Value > &params, const chaiscript::Type_Conversions_State &t_conversions) const
const std::vector< Type_Info > & get_param_types () const
virtual bool is_attribute_function () const
bool has_arithmetic_param () const
bool filter (const std::vector< Boxed_Value > &vals, const Type_Conversions_State &t_conversions) const
int get_arity () const
virtual bool compare_first_type (const Boxed_Value &bv, const Type_Conversions_State &t_conversions) const

Static Public Member Functions

static int calculate_arity (const std::vector< Proxy_Function > &t_funcs)
Static Public Member Functions inherited from chaiscript::dispatch::Proxy_Function_Base
static bool compare_type_to_param (const Type_Info &ti, const Boxed_Value &bv, const Type_Conversions_State &t_conversions)

Protected Member Functions

Boxed_Value do_call (const std::vector< Boxed_Value > &params, const Type_Conversions_State &t_conversions) const override
Protected Member Functions inherited from chaiscript::dispatch::Proxy_Function_Base
 Proxy_Function_Base (std::vector< Type_Info > t_types, int t_arity)

Additional Inherited Members

Static Protected Member Functions inherited from chaiscript::dispatch::Proxy_Function_Base
static bool compare_types (const std::vector< Type_Info > &tis, const std::vector< Boxed_Value > &bvs, const Type_Conversions_State &t_conversions)
Protected Attributes inherited from chaiscript::dispatch::Proxy_Function_Base
std::vector< Type_Info > m_types
int m_arity
bool m_has_arithmetic_param

Detailed Description

A Proxy_Function implementation that is able to take a vector of Proxy_Functions and perform a dispatch on them. It is used specifically in the case of dealing with Function object variables

Constructor & Destructor Documentation

◆ Dispatch_Function()

chaiscript::detail::Dispatch_Function::Dispatch_Function ( std::vector< Proxy_Function > t_funcs)
inlineexplicit
Here is the caller graph for this function:

Member Function Documentation

◆ calculate_arity()

int chaiscript::detail::Dispatch_Function::calculate_arity ( const std::vector< Proxy_Function > & t_funcs)
inlinestatic
Here is the caller graph for this function:

◆ call_match()

bool chaiscript::detail::Dispatch_Function::call_match ( const std::vector< Boxed_Value > & vals,
const Type_Conversions_State & t_conversions ) const
inlineoverridevirtual

◆ do_call()

Boxed_Value chaiscript::detail::Dispatch_Function::do_call ( const std::vector< Boxed_Value > & params,
const Type_Conversions_State & t_conversions ) const
inlineoverrideprotectedvirtual

◆ get_contained_functions()

std::vector< Const_Proxy_Function > chaiscript::detail::Dispatch_Function::get_contained_functions ( ) const
inlineoverridevirtual

◆ operator==()

bool chaiscript::detail::Dispatch_Function::operator== ( const dispatch::Proxy_Function_Base & rhs) const
inlineoverridevirtual

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