NewLang Project
Yet another programm language
Loading...
Searching...
No Matches
newlang::VirtualFuncImpl< R, Args > Class Template Reference

#include <variable.h>

Inheritance diagram for newlang::VirtualFuncImpl< R, Args >:

Public Types

typedef R VirtualFuncType(Args... args)
 

Public Member Functions

 VirtualFuncImpl (VirtualFuncType *func)
 
 VirtualFuncImpl (std::initializer_list< VirtualFuncType * > list)
 
operator() (Args... args)
 
VirtualFuncTypeoverride (VirtualFuncType *func)
 
VirtualFuncTypeparent (VirtualFuncType *current)
 

Detailed Description

template<typename R, typename... Args>
class newlang::VirtualFuncImpl< R, Args >

Шаблон для реализации произвольной функции, которую можно переопределять с сохранением предыдущей реализации в стеке.

Definition at line 291 of file variable.h.

Member Typedef Documentation

◆ VirtualFuncType

template<typename R , typename... Args>
typedef R newlang::VirtualFuncImpl< R, Args >::VirtualFuncType(Args... args)

Definition at line 294 of file variable.h.

Constructor & Destructor Documentation

◆ VirtualFuncImpl() [1/2]

template<typename R , typename... Args>
newlang::VirtualFuncImpl< R, Args >::VirtualFuncImpl ( VirtualFuncType * func)
inlineexplicit

Definition at line 296 of file variable.h.

◆ VirtualFuncImpl() [2/2]

template<typename R , typename... Args>
newlang::VirtualFuncImpl< R, Args >::VirtualFuncImpl ( std::initializer_list< VirtualFuncType * > list)
inline

Definition at line 300 of file variable.h.

Member Function Documentation

◆ operator()()

template<typename R , typename... Args>
R newlang::VirtualFuncImpl< R, Args >::operator() ( Args... args)
inline

Definition at line 306 of file variable.h.

References ASSERT.

◆ override()

template<typename R , typename... Args>
VirtualFuncType * newlang::VirtualFuncImpl< R, Args >::override ( VirtualFuncType * func)
inline

Definition at line 311 of file variable.h.

References result.

◆ parent()

template<typename R , typename... Args>
VirtualFuncType * newlang::VirtualFuncImpl< R, Args >::parent ( VirtualFuncType * current)
inline

Definition at line 317 of file variable.h.


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