Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
impeller::BackendCast< Sub, Base > Class Template Reference

#include <backend_cast.h>

Static Public Member Functions

static Sub & Cast (Base &base)
 
static const Sub & Cast (const Base &base)
 
static Sub * Cast (Base *base)
 
static const Sub * Cast (const Base *base)
 

Detailed Description

template<class Sub, class Base>
class impeller::BackendCast< Sub, Base >

Definition at line 11 of file backend_cast.h.

Member Function Documentation

◆ Cast() [1/4]

template<class Sub , class Base >
static Sub & impeller::BackendCast< Sub, Base >::Cast ( Base &  base)
inlinestatic

Definition at line 13 of file backend_cast.h.

13{ return reinterpret_cast<Sub&>(base); }

◆ Cast() [2/4]

template<class Sub , class Base >
static Sub * impeller::BackendCast< Sub, Base >::Cast ( Base *  base)
inlinestatic

Definition at line 19 of file backend_cast.h.

19{ return reinterpret_cast<Sub*>(base); }

◆ Cast() [3/4]

template<class Sub , class Base >
static const Sub & impeller::BackendCast< Sub, Base >::Cast ( const Base &  base)
inlinestatic

Definition at line 15 of file backend_cast.h.

15 {
16 return reinterpret_cast<const Sub&>(base);
17 }

◆ Cast() [4/4]

template<class Sub , class Base >
static const Sub * impeller::BackendCast< Sub, Base >::Cast ( const Base *  base)
inlinestatic

Definition at line 21 of file backend_cast.h.

21 {
22 return reinterpret_cast<const Sub*>(base);
23 }

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