wrenbind17::ForeignMethod

wrenbind17::ForeignMethod #

Module: Wrenbind17

Holds information about a foreign function of a foreign class. #include <foreign.hpp>

Inherited by wrenbind17::ForeignMethodImpl< Args >

Public Functions #

Name
ForeignMethod(std::string name, WrenForeignMethodFn method, const bool isStatic)
virtual ~ForeignMethod() =default
ForeignMethod(const ForeignMethod & other)
virtual void generate(std::ostream & os) const =0
const std::string & getName() constReturns the name of the method.
WrenForeignMethodFn getMethod() constReturns the raw pointer of this method.
bool getStatic() constReturns true if this method is marked as static.

Protected Attributes #

Name
std::string name
WrenForeignMethodFn method
bool isStatic

Public Functions Documentation #

function ForeignMethod #

inline ForeignMethod(
    std::string name,
    WrenForeignMethodFn method,
    const bool isStatic
)

function ~ForeignMethod #

virtual ~ForeignMethod() =default

function ForeignMethod #

ForeignMethod(
    const ForeignMethod & other
)

function generate #

virtual void generate(
    std::ostream & os
) const =0

Reimplemented by: wrenbind17::ForeignMethodImpl::generate

function getName #

inline const std::string & getName() const

Returns the name of the method.

function getMethod #

inline WrenForeignMethodFn getMethod() const

Returns the raw pointer of this method.

function getStatic #

inline bool getStatic() const

Returns true if this method is marked as static.

Protected Attributes Documentation #

variable name #

std::string name;

variable method #

WrenForeignMethodFn method;

variable isStatic #

bool isStatic;

Updated on 17 October 2023 at 12:26:25 UTC