Loading...
Searching...
No Matches
by::tmock< T > Class Template Reference

Proxy template for type parameter T. More...

#include <tmock.hpp>

Inheritance diagram for by::tmock< T >:

Public Member Functions

 tmock (const T &org)
 
 tmock (const T *org)
 
const ntypegetType () const override
 
scopesubs () override
 
priorType prioritize (const args &a) const override
 
str eval (const args &a) override
 
clonable * clone () const override
 
const srcgetSrc () const override
 
void * cast (const type &to) override
 
clonable * cloneDeep () const override
 
void onCloneDeep (const clonable &from) override
 

Protected Member Functions

void _setSrc (const src &s) override
 

Detailed Description

template<typename T>
class by::tmock< T >

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.


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