| Flutter Impeller |

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 12 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 | ) |
| inline static

Definition at line 14 of file backend_cast.h.

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

## ◆ Cast() [2/4]

template<class Sub , class Base >

static Sub* impeller::BackendCast< Sub, Base >::Cast | ( | Base * | base | ) |
| inline static

Definition at line 20 of file backend_cast.h.

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

## ◆ Cast() [3/4]

template<class Sub , class Base >

static const Sub& impeller::BackendCast< Sub, Base >::Cast | ( | const Base & | base | ) |
| inline static

Definition at line 16 of file backend_cast.h.

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

## ◆ Cast() [4/4]

template<class Sub , class Base >

static const Sub* impeller::BackendCast< Sub, Base >::Cast | ( | const Base * | base | ) |
| inline static

Definition at line 22 of file backend_cast.h.

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

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

- impeller/base/backend_cast.h