CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::impl::PolyImplementation< T > Struct Template Reference

A struct that contains the implementation for each concrete type get, copy, move and destroy functions. More...

#include <CeresEngine/Foundation/Poly.hpp>

Public Attributes

T *(* get )(void *raw)
 Extracts a function pointer from the raw data.
 
void(* copy )(void *lhs, const void *rhs)
 Copies the object at rhs to lhs.
 
void(* move )(void *lhs, void *rhs)
 Moves the object at rhs to lhs.
 
void(* destroy )(void *raw)
 Destroys the object stored at the given raw location.
 

Detailed Description

template<typename T>
struct CeresEngine::impl::PolyImplementation< T >

A struct that contains the implementation for each concrete type get, copy, move and destroy functions.

Member Data Documentation

◆ copy

template<typename T >
void(* CeresEngine::impl::PolyImplementation< T >::copy) (void *lhs, const void *rhs)

Copies the object at rhs to lhs.

◆ destroy

template<typename T >
void(* CeresEngine::impl::PolyImplementation< T >::destroy) (void *raw)

Destroys the object stored at the given raw location.

◆ get

template<typename T >
T *(* CeresEngine::impl::PolyImplementation< T >::get) (void *raw)

Extracts a function pointer from the raw data.

◆ move

template<typename T >
void(* CeresEngine::impl::PolyImplementation< T >::move) (void *lhs, void *rhs)

Moves the object at rhs to lhs.


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