Proxy template for type parameter T 더 자세히 ...
#include <tmock.hpp>
Public 멤버 함수 | |
| tmock (const T &org) | |
| tmock (const T *org) | |
| const ntype & | getType () const override |
| scope & | subs () override |
| priorType | prioritize (const args &a) const override |
| str | eval (const args &a) override |
| clonable * | clone () const override |
| const src & | getSrc () const override |
| void * | cast (const type &to) override |
| clonable * | cloneDeep () const override |
| void | onCloneDeep (const clonable &from) override |
Protected 멤버 함수 | |
| void | _setSrc (const src &s) override |
Proxy template for type parameter T
A kind of proxy class for given type parameter T. If you don't provide an instance to serve as the original via T* at creation, it operates as a dummy object that performs no actions.
Originally designed to optimize verification time. For example, for verifier to verify whether a specific symbol exists in scope or not, it could create a tmock that redirects just type information instead of actually making that object. Currently that functionality is unused and it's used as a dummy object instead.