Loading...
Searching...
No Matches
by::funcType Class Reference

script type for function objects in byeol language. More...

#include <funcType.hpp>

Inheritance diagram for by::funcType:
by::mgdType by::ntype

Public Member Functions

nbool operator== (const type &rhs) const override
 
- Public Member Functions inherited from by::mgdType
nbool isTemplate () const override
 
nbool isAbstract () const override
 
const type & getSuper () const override
 
const nboolisInit () const override
 
const std::string & getName () const override
 
ncnt size () const override
 
void onCloneDeep (const clonable &from) override
 Performs a deep clone operation for this script type instance.
 
paramsgetParams () override
 
const nodegetRet () const override
 
void setRet (const node &new1) override
 
void * make () const override
 
- Public Member Functions inherited from by::ntype
nbool operator== (const type &rhs) const override
 check whether two ntype are same in both of native and byeol runtime environments
 
template<typename T >
nbool isImpli () const
 whether variable 'it' can be a subtype of T in runtime
 
virtual nbool isImpli (const type &to) const
 
nbool isImpli (const type *it) const BY_SIDE_FUNC(isImpli)
 
nbool isImpli (const typeProvidable &to) const
 
nbool isImpli (const typeProvidable *it) const BY_SIDE_FUNC(isImpli)
 
template<typename T >
tstr< T > asImpli (const node &it) const
 
template<typename T >
tstr< T > asImpli (const node *it) const BY_SIDE_FUNC(asImpli< T >)
 
virtual str asImpli (const node &from, const type &to) const
 
str asImpli (const node &from, const type *to) const BY_SIDE_FUNC(to
 
str asImpli (from, *to)
 
str str ())
 
str asImpli (const node *from, const type &to) const BY_SIDE_FUNC(from
 
str asImpli str ())
 
str asImpli (const node *from, const type *to) const BY_SIDE_FUNC(from &&to
 
str asImpli str ())
 
virtual nbool isCustom () const
 
template<typename T >
nbool is () const
 
nbool is (const type &to) const
 
nbool is (const type *it) const BY_SIDE_FUNC(is)
 
template<typename T >
tstr< T > as (const node &it) const
 
template<typename T >
tstr< T > as (const node *it) const BY_SIDE_FUNC(as< T >)
 
str as (const node &from, const type &to) const
 
str as (const node &from, const type *to) const BY_SIDE_FUNC(to
 
str as (from, *to)
 
str str ())
 
str as (const node *from, const type &to) const BY_SIDE_FUNC(from
 
str as str ())
 
virtual str as (const node *from, const type *to) const BY_SIDE_FUNC(from &&to
 
virtual str as str ())
 
virtual nbool isImmutable () const
 Checks if this type is immutable.
 
nbool isSameSign (const type &rhs) const
 
const ntypepromote (const ntype &r) const
 
const ntypepromote (const ntype *it) const BY_SIDE_FUNC(promote)
 
const ntypepromote (const typeProvidable &r) const
 
const ntypepromote (const typeProvidable *it) const BY_SIDE_FUNC(promote)
 
template<typename T >
const ntypepromote () const
 
static const ntype promote (l, *r)
 
const paramsgetParams () const BY_CONST_FUNC(getParams()) virtual params &getParams()
 Retrieves a non-const reference to the parameters associated with this type.
 
void setRet (const node *it) BY_SIDE_FUNC(setRet)
 
std::string createNameWithParams () const
 
const nchargetMetaTypeName () const override
 

Protected Member Functions

const impliAses_getImpliAses () const override
 
const ases_getAses () const override
 
- Protected Member Functions inherited from by::mgdType
types_getSupers () override
 
types_getSubs () override
 
type & _getStatic () const override
 
types ** _onGetLeafs () const override
 

Additional Inherited Members

- Static Public Member Functions inherited from by::ntype
static const ntypepromote (const ntype &l, const ntype &r)
 
static const ntypepromote (const ntype &l, const ntype *r) BY_SIDE_FUNC(r
 
static const ntypepromote (const ntype *l, const ntype &r) BY_SIDE_FUNC(l
 
static const ntypepromote (const ntype *l, const ntype *r) BY_SIDE_FUNC(l &&r
 
- Public Attributes inherited from by::ntype
str asImpli from
 
str as from
 
virtual str as from
 
static const ntype nullptr
 
static const ntype promote l
 
static const ntype promote nullptr
 
- Static Public Attributes inherited from by::ntype
static const std::string META_TYPENAME = "ntype"
 

Detailed Description

script type for function objects in byeol language.

Specialized type information for function objects with implicit conversion support.

Member Function Documentation

◆ _getAses()

const ases & by::funcType::_getAses ( ) const
overrideprotectedvirtual

Reimplemented from by::ntype.

◆ _getImpliAses()

const impliAses & by::funcType::_getImpliAses ( ) const
overrideprotectedvirtual

Reimplemented from by::ntype.

◆ operator==()

nbool by::funcType::operator== ( const type & rhs) const
override
Returns
true if rhs has same params and return type in byeol runtime code

operator==() only compares parameter and return type equality, but not the name. because it's for 1st citizen feature of function type in byeol runtime code.


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