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

#include <SkRecords.h>

Public Member Functions

 Optional ()
 
 Optional (T *ptr)
 
 Optional (Optional &&o)
 
 ~Optional ()
 

Detailed Description

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

Definition at line 112 of file SkRecords.h.

Constructor & Destructor Documentation

◆ Optional() [1/3]

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

Definition at line 114 of file SkRecords.h.

114: fPtr(nullptr) {}

◆ Optional() [2/3]

template<typename T >
SkRecords::Optional< T >::Optional ( T ptr)
inline

Definition at line 115 of file SkRecords.h.

115: fPtr(ptr) {}

◆ Optional() [3/3]

template<typename T >
SkRecords::Optional< T >::Optional ( Optional< T > &&  o)
inline

Definition at line 116 of file SkRecords.h.

116 : fPtr(o.fPtr) {
117 o.fPtr = nullptr;
118 }

◆ ~Optional()

template<typename T >
SkRecords::Optional< T >::~Optional ( )
inline

Definition at line 119 of file SkRecords.h.

119{ if (fPtr) fPtr->~T(); }

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