MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
shcore::polyglot::Polyglot_function Class Reference

Utility class to allow wrapping a Polyglot function to be used from C++. More...

#include <types_polyglot.h>

Public Member Functions

 Polyglot_function ()=delete
 
 Polyglot_function (std::weak_ptr< Polyglot_language > language, poly_value function)
 
 Polyglot_function (const Polyglot_function &)=delete
 
Polyglot_function operator= (const Polyglot_function &)=delete
 
 Polyglot_function (Polyglot_function &&)=delete
 
Polyglot_function operator= (Polyglot_function &&)=delete
 
 ~Polyglot_function ()
 
const std::string & name () const
 
Value invoke (const std::vector< Value > &args)
 

Private Attributes

std::weak_ptr< Polyglot_languagem_language
 
poly_reference m_function
 
std::string m_name
 

Detailed Description

Utility class to allow wrapping a Polyglot function to be used from C++.

Constructor & Destructor Documentation

◆ Polyglot_function() [1/4]

shcore::polyglot::Polyglot_function::Polyglot_function ( )
delete

◆ Polyglot_function() [2/4]

shcore::polyglot::Polyglot_function::Polyglot_function ( std::weak_ptr< Polyglot_language language,
poly_value  function 
)

◆ Polyglot_function() [3/4]

shcore::polyglot::Polyglot_function::Polyglot_function ( const Polyglot_function )
delete

◆ Polyglot_function() [4/4]

shcore::polyglot::Polyglot_function::Polyglot_function ( Polyglot_function &&  )
delete

◆ ~Polyglot_function()

shcore::polyglot::Polyglot_function::~Polyglot_function ( )

Member Function Documentation

◆ invoke()

Value shcore::polyglot::Polyglot_function::invoke ( const std::vector< Value > &  args)

◆ name()

const std::string & shcore::polyglot::Polyglot_function::name ( ) const
inline

◆ operator=() [1/2]

Polyglot_function shcore::polyglot::Polyglot_function::operator= ( const Polyglot_function )
delete

◆ operator=() [2/2]

Polyglot_function shcore::polyglot::Polyglot_function::operator= ( Polyglot_function &&  )
delete

Member Data Documentation

◆ m_function

poly_reference shcore::polyglot::Polyglot_function::m_function
private

◆ m_language

std::weak_ptr<Polyglot_language> shcore::polyglot::Polyglot_function::m_language
private

◆ m_name

std::string shcore::polyglot::Polyglot_function::m_name
private

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