Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | List of all members
SkRecords::Is< T > Class Template Reference

#include <SkRecordPattern.h>

Public Types

typedef T type
 

Public Member Functions

 Is ()
 
typeget ()
 
bool operator() (T *ptr)
 
template<typename U >
bool operator() (U *)
 

Detailed Description

template<typename T>
class SkRecords::Is< T >

Definition at line 21 of file SkRecordPattern.h.

Member Typedef Documentation

◆ type

template<typename T >
typedef T SkRecords::Is< T >::type

Definition at line 25 of file SkRecordPattern.h.

Constructor & Destructor Documentation

◆ Is()

template<typename T >
SkRecords::Is< T >::Is ( )
inline

Definition at line 23 of file SkRecordPattern.h.

23: fPtr(nullptr) {}

Member Function Documentation

◆ get()

template<typename T >
type * SkRecords::Is< T >::get ( )
inline

Definition at line 26 of file SkRecordPattern.h.

26{ return fPtr; }

◆ operator()() [1/2]

template<typename T >
bool SkRecords::Is< T >::operator() ( T ptr)
inline

Definition at line 28 of file SkRecordPattern.h.

28 {
29 fPtr = ptr;
30 return true;
31 }

◆ operator()() [2/2]

template<typename T >
template<typename U >
bool SkRecords::Is< T >::operator() ( U *  )
inline

Definition at line 34 of file SkRecordPattern.h.

34 {
35 fPtr = nullptr;
36 return false;
37 }

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