Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::FunctionRegistry::Base Class Referenceabstract

Base class for type-erased function storage. More...

#include <FunctionRegistry.h>

Inheritance diagram for sf::FunctionRegistry::Base:

Public Member Functions

virtual ~Base ()=default
 
virtual std::type_index returnType () const =0
 Get the return type of the stored function.
 
virtual std::vector< std::type_index > argTypes () const =0
 Get the argument types of the stored function.
 

Detailed Description

Base class for type-erased function storage.

Constructor & Destructor Documentation

◆ ~Base()

virtual sf::FunctionRegistry::Base::~Base ( )
virtualdefault

Member Function Documentation

◆ argTypes()

virtual std::vector< std::type_index > sf::FunctionRegistry::Base::argTypes ( ) const
pure virtual

Get the argument types of the stored function.

Returns
Vector of std::type_index representing each argument type

Implemented in sf::FunctionRegistry::Registration< R, Args >::Holder.

◆ returnType()

virtual std::type_index sf::FunctionRegistry::Base::returnType ( ) const
pure virtual

Get the return type of the stored function.

Returns
std::type_index representing the return type

Implemented in sf::FunctionRegistry::Registration< R, Args >::Holder.


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