Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
ReadAs< U > Struct Template Reference

#include <RecordTestUtils.h>

Public Member Functions

 ReadAs ()
 
void operator() (const U &r)
 
template<typename T >
void operator() (const T &)
 

Public Attributes

const U * ptr
 
SkRecords::Type type
 

Detailed Description

template<typename U>
struct ReadAs< U >

Definition at line 17 of file RecordTestUtils.h.

Constructor & Destructor Documentation

◆ ReadAs()

template<typename U >
ReadAs< U >::ReadAs ( )
inline

Definition at line 18 of file RecordTestUtils.h.

18: ptr(nullptr), type(SkRecords::Type(~0)) {}
const U * ptr
SkRecords::Type type

Member Function Documentation

◆ operator()() [1/2]

template<typename U >
template<typename T >
void ReadAs< U >::operator() ( const T )
inline

Definition at line 26 of file RecordTestUtils.h.

26{ type = U::kType; }

◆ operator()() [2/2]

template<typename U >
void ReadAs< U >::operator() ( const U &  r)
inline

Definition at line 23 of file RecordTestUtils.h.

23{ ptr = &r; type = U::kType; }

Member Data Documentation

◆ ptr

template<typename U >
const U* ReadAs< U >::ptr

Definition at line 20 of file RecordTestUtils.h.

◆ type

template<typename U >
SkRecords::Type ReadAs< U >::type

Definition at line 21 of file RecordTestUtils.h.


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