| 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 13 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 15 of file backend_cast.h.

15 { 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 21 of file backend_cast.h.

21 { 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 17 of file backend_cast.h.

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

## ◆ Cast() [4/4]

template<class Sub , class Base >

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

Definition at line 23 of file backend_cast.h.

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

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

- impeller/base/backend_cast.h