by::origin Class Referencefinal

User-defined class origin in byeol language. More...

#include <origin.hpp>

Inheritance diagram for by::origin:
by::obj by::baseObj by::node by::statable by::instance by::frameInteractable by::typeProvidable by::clonable

Public Member Functions

 origin (const mgdType &newType)
 
 origin (const mgdType &newType, const node &subpack)
 
 origin (const me &rhs)
 
me & operator= (const me &rhs)
 
scopesubs () override
 
state getState () const override
 
void setState (state new1) override
 
const ntypegetType () const override
 
const nodegetSubPack () const override
 
const srcgetSrc () const override
 
void onCloneDeep (const clonable &from) override
 
baseObjmake () const override
 
nodegetCallComplete () override
 
void setCallComplete (const node &new1)
 
void setCallComplete (const node *it) BY_SIDE_FUNC(setCallComplete)
 
nbool isComplete () const override
 
clonableclone () const override
 
clonablecloneDeep () const override
 
- Public Member Functions inherited from by::obj
 obj (const scope &subs)
 
 obj (const me &rhs)
 
me & operator= (const me &rhs)
 
tstr< nbicontainermySubs () const override
 
scopegetShares ()
 
const scope &getShares() const BY_CONST_FUNC(getShares()) scope const scope::super & getOwns () const BY_CONST_FUNC(getOwns()) const ntype &getType() const override
 
void onCloneDeep (const clonable &from) override
 
const node *getCallComplete() const BY_CONST_FUNC(getCallComplete()) protected str _onBeforeCtor () override
 
- Public Member Functions inherited from by::baseObj
str run (const args &a) override
 
priorType prioritize (const args &a) const override
 
virtual const baseObjgetOrigin () const
 
void inFrame (const bicontainable *args) const override
 
void outFrame () const override
 
const modifiergetModifier () const override
 
- Public Member Functions inherited from by::node
me & operator[] (const std::string &name)
 
const me & operator[] (const std::string &name) const BY_CONST_FUNC(operator[](name))
 
me & operator[] (const std::string *it)
 
const me & operator[] (const std::string *it) const BY_CONST_FUNC(operator[](it))
 
me & operator[] (const nchar *name)
 
const me & operator[] (const nchar *name) const BY_CONST_FUNC(operator[](name))
 
nbool in (const node &elem) const
 
nbool in (const node *elem) const
 
const scopesubs () const BY_CONST_FUNC(subs()) virtual tstr< nbicontainer > mySubs() const
 
const nodededuce (const node &it) const
 
const nodededuce (const node *it) const BY_SIDE_FUNC(deduce)
 
template<typename T >
T * sub (std::function< nbool(const std::string &, const T &)> l)
 
template<typename T >
const T * sub (std::function< nbool(const std::string &, const T &)> l) const BY_CONST_FUNC(sub< T >(l)) template< typename T
 
template<typename T = me>
const T * sub () const BY_CONST_FUNC(sub< T >()) template< typename T
 
template<typename T = me>
T * sub (const std::string *it) BY_SIDE_FUNC(sub)
 
template<typename T = me>
const T * sub (const std::string &name) const BY_CONST_FUNC(sub< T >(name)) template< typename T
 
template<typename T = me>
T * sub (const std::string *name, const args &a) BY_SIDE_FUNC(name
 
template<typename T = me>
const T * sub (const std::string &name, const args &a) const BY_CONST_FUNC(sub< T >(name
 
template<typename T = me>
const T a const T * sub (const std::string *name, const args &a) const BY_CONST_FUNC(sub< T >(name
 
template<typename T >
const T a const T a tnarr< T, strTacticsubAll (std::function< nbool(const std::string &, const T &)> l) const
 
template<typename T = me>
tnarr< T, strTacticsubAll () const
 
template<typename T = me>
tpriorities< T > subAll (const std::string &name) const
 
template<typename T = me>
tpriorities< T > subAll (const std::string *it) const BY_SIDE_FUNC(subAll< T >) template< typename T
 
template<typename T = me>
tpriorities< T > subAll (const std::string &name, const args &a) const
 
template<typename T = me>
tpriorities< T > subAll (const std::string *name, const args *a) const BY_SIDE_FUNC(name
 
tpriorities< T > subAll< T > tpriorities ())
 
template<typename T = me>
tpriorities< T > subAll (const std::string *name, const args &a) const BY_SIDE_FUNC(name
 
tpriorities< T > subAll< T > tpriorities ())
 
bool canRun (const args &a) const
 
priorType prioritize (const args *it) const BY_SIDE_FUNC(it
 
str run (const args *it) BY_SIDE_FUNC(run)
 
str run (const std::string &name, const args &a)
 
str run (const std::string &name, const args *a) BY_SIDE_FUNC(a
 
str run (name, a)
 
str str ())
 
str run (const std::string *name, const args &a) BY_SIDE_FUNC(name
 
str run str ())
 
str run (const std::string *name, const args *a) BY_SIDE_FUNC(name &&a
 
str run str ())
 
str run (const std::string &name)
 
str run (const std::string *it) BY_SIDE_FUNC(run)
 
str run ()
 
virtual void rel ()
 
template<typename T >
nbool is () const
 
nbool is (const typeProvidable &to) const
 
nbool is (const typeProvidable *it) const BY_SIDE_FUNC(is)
 
nbool is (const type &to) const
 
nbool is (const type *it) const BY_SIDE_FUNC(is)
 
template<typename T >
tstr< T > as () const
 
str as (const typeProvidable &to) const
 
str as (const typeProvidable *it) const BY_SIDE_FUNC(as)
 
str as (const type &to) const
 
str as (const type *it) const BY_SIDE_FUNC(as)
 
template<typename T >
nbool isImpli () const
 
virtual nbool isImpli (const type &to) const
 
nbool isImpli (const typeProvidable &to) const
 
nbool isImpli (const typeProvidable *it) const BY_SIDE_FUNC(isImpli)
 
template<typename T >
tstr< T > asImpli () const
 
virtual str asImpli (const type &to) const
 
str asImpli (const typeProvidable &to) const
 
str asImpli (const typeProvidable *it) const BY_SIDE_FUNC(asImpli)
 
virtual str getEval () const
 
virtual void accept (const visitInfo &i, visitor &v)
 
void inFrame (const bicontainable *args) const override
 
void outFrame () const override
 
virtual void inFrame (const bicontainable *args) const=0
 
void inFrame () const
 
virtual void outFrame () const=0
 
- Public Member Functions inherited from by::instance
 instance (id newId)
 
 instance (const me &rhs)
 
me & operator= (const me &rhs)=default
 
void * operator new (size_t sz) noexcept
 
void operator delete (void *pt, size_t sz) noexcept
 
virtual id getId () const
 
virtual nbool isHeap () const
 
const bindTaggetBindTag () const
 
- Public Member Functions inherited from by::typeProvidable
nbool operator== (const me &rhs) const
 
nbool operator!= (const me &rhs) const
 
nbool isSub (const type &it) const
 
nbool isSub (const type *it) const BY_SIDE_FUNC(isSub)
 
nbool isSub (const me &it) const
 
nbool isSub (const me *it) const BY_SIDE_FUNC(isSub)
 
nbool isSuper (const type &it) const
 
nbool isSuper (const type *it) const BY_SIDE_FUNC(isSuper)
 
nbool isSuper (const me &it) const
 
nbool isSuper (const me *it) const BY_SIDE_FUNC(isSuper)
 
template<typename T >
nint isSub () const
 
template<typename T >
nint isSuper () const
 
template<typename T >
T * cast ()
 
template<typename T >
const T * cast () const BY_CONST_FUNC(cast< T >()) virtual void *cast(const type &to)
 
const void * cast (const type &to) const BY_CONST_FUNC(cast(to)) void *cast(const type *it) BY_SIDE_FUNC(cast)
 
- Public Member Functions inherited from by::clonable
virtual void onCloneDeep (const me &from)
 
- Public Member Functions inherited from by::frameInteractable
void inFrame () const
 

Friends

class(ME(origin, obj), INIT_META(origin)) public slot
 
class expander
 
class exprMaker
 
class parser
 

Additional Inherited Members

- Public Attributes inherited from by::node
T sub name
 
T sub nullptr
 
tpriorities< T > subAll< T > name
 
priorType prioritize it
 
priorType prioritize NO_MATCH
 
str run name
 
- Static Public Attributes inherited from by::baseObj
static const std::string CTOR_NAME = "@ctor"
 
static const std::string COMMON_NAME = "@common"
 
static const std::string EXPAND_NAME = "@expand"
 
- Protected Member Functions inherited from by::obj
 obj (const scope &shares, scope &owns)
 
- Protected Member Functions inherited from by::baseObj
 baseObj ()=default
 
 baseObj (const baseObj *org, nbool)
 
str _onRunSub (node &sub, const args &a) override
 
virtual void _inFrame (frame &fr, const bicontainable *args) const
 
void _setOrigin (const baseObj &newOrg)
 
- Protected Member Functions inherited from by::node
void _setSrc (const src *it) BY_SIDE_FUNC(_setSrc)
 
- Protected Member Functions inherited from by::instance
nbool _setId (id new1)
 
- Static Protected Member Functions inherited from by::instance
static instancer_getMgr ()
 

Detailed Description

User-defined class origin in byeol language.

Represents user defined classes in managed codes. Origin should be shadowed to 'obj' type. Every interaction with origin should be handled through obj class. Direct inheritance is not allowed.

Note
Use tstr<obj> instead of tstr<origin> for binders to avoid unexpected behavior.

Member Function Documentation

◆ clone()

clonable * by::origin::clone ( ) const
overridevirtual

Implements by::clonable.

◆ cloneDeep()

clonable * by::origin::cloneDeep ( ) const
overridevirtual

Reimplemented from by::clonable.

◆ getCallComplete()

node * by::origin::getCallComplete ( )
overridevirtual

Reimplemented from by::obj.

◆ getSrc()

const src & by::origin::getSrc ( ) const
overridevirtual

Reimplemented from by::baseObj.

◆ getState()

state by::origin::getState ( ) const
overridevirtual

Reimplemented from by::obj.

◆ getSubPack()

const node & by::origin::getSubPack ( ) const
overridevirtual

Reimplemented from by::baseObj.

◆ getType()

const ntype & by::origin::getType ( ) const
overridevirtual

Implements by::typeProvidable.

◆ isComplete()

nbool by::origin::isComplete ( ) const
overridevirtual

returns whether this instance is complete or not. if some instance is incomplete, it means that it's not accessible on byeolang source codes.

Reimplemented from by::node.

◆ make()

baseObj * by::origin::make ( ) const
overridevirtual

Reimplemented from by::baseObj.

◆ setState()

void by::origin::setState ( state  new1)
overridevirtual

Reimplemented from by::obj.

◆ subs()

scope & by::origin::subs ( )
overridevirtual

Reimplemented from by::obj.


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