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

#include <dynamic_object_detail.hpp>

Inheritance diagram for chaiscript::dispatch::detail::Dynamic_Object_Function:
Collaboration diagram for chaiscript::dispatch::detail::Dynamic_Object_Function:

Public Member Functions

 Dynamic_Object_Function (std::string t_type_name, const Proxy_Function &t_func, bool t_is_attribute=false)
 Dynamic_Object_Function (std::string t_type_name, const Proxy_Function &t_func, const Type_Info &t_ti, bool t_is_attribute=false)
Dynamic_Object_Function & operator= (const Dynamic_Object_Function)=delete
 Dynamic_Object_Function (Dynamic_Object_Function &)=delete
bool operator== (const Proxy_Function_Base &f) const override
bool is_attribute_function () const override
bool call_match (const std::vector< Boxed_Value > &vals, const Type_Conversions_State &t_conversions) const override
std::vector< Const_Proxy_Function > get_contained_functions () 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
bool has_arithmetic_param () const
bool filter (const std::vector< Boxed_Value > &vals, const Type_Conversions_State &t_conversions) const
int get_arity () const

Protected Member Functions

Boxed_Value do_call (const std::vector< Boxed_Value > &params, const Type_Conversions_State &t_conversions) const override
bool compare_first_type (const Boxed_Value &bv, 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 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)
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 designed for calling a function that is automatically guarded based on the first param based on the param's type name

Constructor & Destructor Documentation

◆ Dynamic_Object_Function() [1/3]

chaiscript::dispatch::detail::Dynamic_Object_Function::Dynamic_Object_Function ( std::string t_type_name,
const Proxy_Function & t_func,
bool t_is_attribute = false )
inline
Here is the caller graph for this function:

◆ Dynamic_Object_Function() [2/3]

chaiscript::dispatch::detail::Dynamic_Object_Function::Dynamic_Object_Function ( std::string t_type_name,
const Proxy_Function & t_func,
const Type_Info & t_ti,
bool t_is_attribute = false )
inline

◆ Dynamic_Object_Function() [3/3]

chaiscript::dispatch::detail::Dynamic_Object_Function::Dynamic_Object_Function ( Dynamic_Object_Function & )
delete

Member Function Documentation

◆ call_match()

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

◆ compare_first_type()

bool chaiscript::dispatch::detail::Dynamic_Object_Function::compare_first_type ( const Boxed_Value & bv,
const Type_Conversions_State & t_conversions ) const
inlineoverrideprotectedvirtual

◆ do_call()

Boxed_Value chaiscript::dispatch::detail::Dynamic_Object_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::dispatch::detail::Dynamic_Object_Function::get_contained_functions ( ) const
inlineoverridevirtual

◆ is_attribute_function()

bool chaiscript::dispatch::detail::Dynamic_Object_Function::is_attribute_function ( ) const
inlineoverridevirtual

◆ operator=()

Dynamic_Object_Function & chaiscript::dispatch::detail::Dynamic_Object_Function::operator= ( const Dynamic_Object_Function )
delete

◆ operator==()

bool chaiscript::dispatch::detail::Dynamic_Object_Function::operator== ( const Proxy_Function_Base & f) const
inlineoverridevirtual

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