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

#include <dynamic_object_detail.hpp>

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

Public Member Functions

 Dynamic_Object_Constructor (std::string t_type_name, const Proxy_Function &t_func)
bool operator== (const Proxy_Function_Base &f) 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
virtual std::vector< std::shared_ptr< const Proxy_Function_Base > > get_contained_functions () 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 std::vector< Type_Info > build_type_list (const std::vector< Type_Info > &tl)
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 designed for creating a new Dynamic_Object that is automatically guarded based on the first param based on the param's type name

Constructor & Destructor Documentation

◆ Dynamic_Object_Constructor()

chaiscript::dispatch::detail::Dynamic_Object_Constructor::Dynamic_Object_Constructor ( std::string t_type_name,
const Proxy_Function & t_func )
inline
Here is the caller graph for this function:

Member Function Documentation

◆ build_type_list()

std::vector< Type_Info > chaiscript::dispatch::detail::Dynamic_Object_Constructor::build_type_list ( const std::vector< Type_Info > & tl)
inlinestatic
Here is the caller graph for this function:

◆ call_match()

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

◆ do_call()

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

◆ operator==()

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

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