EnTT 3.14.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
entt::poly_base< Poly > Struct Template Reference

Poly base class used to inject functionalities into concepts. More...

#include <poly.hpp>

Public Member Functions

template<std::size_t Member, typename... Args>
decltype(autoinvoke (const poly_base &self, Args &&...args) const
 Invokes a function from the static virtual table.
 
template<std::size_t Member, typename... Args>
decltype(autoinvoke (poly_base &self, Args &&...args)
 Invokes a function from the static virtual table.
 

Detailed Description

template<typename Poly>
struct entt::poly_base< Poly >

Poly base class used to inject functionalities into concepts.

Template Parameters
PolyThe outermost poly class.

Definition at line 129 of file poly.hpp.

Member Function Documentation

◆ invoke() [1/2]

template<typename Poly >
template<std::size_t Member, typename... Args>
decltype(auto) entt::poly_base< Poly >::invoke ( const poly_base< Poly > & self,
Args &&... args ) const
inline

Invokes a function from the static virtual table.

Template Parameters
MemberIndex of the function to invoke.
ArgsTypes of arguments to pass to the function.
Parameters
selfA reference to the poly object that made the call.
argsThe arguments to pass to the function.
Returns
The return value of the invoked function, if any.

Definition at line 139 of file poly.hpp.

◆ invoke() [2/2]

template<typename Poly >
template<std::size_t Member, typename... Args>
decltype(auto) entt::poly_base< Poly >::invoke ( poly_base< Poly > & self,
Args &&... args )
inline

Invokes a function from the static virtual table.

Template Parameters
MemberIndex of the function to invoke.
ArgsTypes of arguments to pass to the function.
Parameters
selfA reference to the poly object that made the call.
argsThe arguments to pass to the function.
Returns
The return value of the invoked function, if any.

Definition at line 151 of file poly.hpp.


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