13 template <
typename T>
class _nout
tmock:
public T {
20 tmock(
const T& org): super(), _org(org) {}
22 tmock(
const T* org): super(), _org(org) {}
25 const ntype& getType()
const override {
26 if(_org)
return _org->getType();
32 scope& subs()
override {
33 if(_org)
return _org->subs();
34 return dumScope::singleton();
37 using super::prioritize;
40 if(_org)
return _org->prioritize(a);
46 str run(
const args& a)
override {
47 if(_org)
return _org->run(a);
52 if(_org)
return _org->clone();
56 const src& getSrc()
const override {
57 if(_org)
return _org->getSrc();
58 return super::getSrc();
63 void* cast(
const type& to)
override {
65 if(_org)
return _org->cast(to);
69 clonable* cloneDeep()
const override {
return clone(); }
71 void onCloneDeep(
const clonable& from)
override {}
76 void _setSrc(
const src& s)
override {
Function call arguments container.
Definition: args.hpp:13
Interface for objects that can be cloned.
Definition: clonable.hpp:12
Factory for creating expressions with source location information.
Definition: exprMaker.hpp:17
Native type system for byeol language.
Definition: ntype.hpp:19
Source location information.
Definition: src.hpp:11
Mock object template for testing and verification.
Definition: tmock.hpp:13
Template type wrapper for type metadata management.
Definition: ttype.hpp:16
Base class for runtime type information in byeol language.
Definition: type.hpp:12
priorType
the lower value, the higher priority.
Definition: tpriorities.hpp:8
@ NO_MATCH
Definition: tpriorities.hpp:16