#include <unique_object.h>
Public Types | |
| using | element_type = T |
| using | traits_type = Traits |
Public Member Functions | |
| UniqueObject () | |
| UniqueObject (const T &value) | |
| UniqueObject (const T &value, const Traits &traits) | |
| UniqueObject (UniqueObject &&other) | |
| ~UniqueObject () | |
| UniqueObject & | operator= (UniqueObject &&other) |
| void | reset (const T &value=Traits::InvalidValue()) |
| void | swap (UniqueObject &other) |
| T | release () |
| const T & | get () const |
| bool | is_valid () const |
| bool | operator== (const T &value) const |
| Traits & | get_traits () |
| const Traits & | get_traits () const |
Definition at line 30 of file unique_object.h.
| using fml::UniqueObject< T, Traits >::element_type = T |
Definition at line 46 of file unique_object.h.
| using fml::UniqueObject< T, Traits >::traits_type = Traits |
Definition at line 47 of file unique_object.h.
|
inline |
Definition at line 49 of file unique_object.h.
|
inlineexplicit |
|
inline |
|
inline |
Definition at line 54 of file unique_object.h.
|
inline |
Definition at line 57 of file unique_object.h.
|
inline |
Definition at line 92 of file unique_object.h.
Referenced by fml::FileExists(), fml::FileMapping::FileMapping(), fml::GetFullHandlePath(), impeller::android::HardwareBuffer::GetHandle(), impeller::android::NativeWindow::GetHandle(), impeller::android::SurfaceControl::GetHandle(), impeller::android::NativeWindow::GetSize(), fml::IsDirectory(), impeller::android::HardwareBuffer::Lock(), impeller::android::NativeWindow::NativeWindow(), fml::OpenDirectory(), fml::OpenFile(), flutter::testing::DartFixture::SetSnapshotsAndAssets(), fml::TruncateFile(), fml::UnlinkDirectory(), fml::UnlinkFile(), impeller::android::HardwareBuffer::Unlock(), fml::VisitFiles(), zircon::dart::System::VmoFromFile(), and fml::WriteAtomically().
|
inline |
Definition at line 98 of file unique_object.h.
|
inline |
Definition at line 99 of file unique_object.h.
|
inline |
Definition at line 94 of file unique_object.h.
Referenced by impeller::compiler::testing::CompilerTest::CompilerTest(), fml::FileExists(), fml::FileMapping::FileMapping(), fml::IsDirectory(), fml::IsDirectory(), impeller::android::NativeWindow::IsValid(), impeller::android::SurfaceControl::IsValid(), dart_utils::ElfSnapshot::Load(), flutter::PersistentCache::LoadSkSLs(), impeller::PipelineCacheDataPersist(), impeller::PipelineCacheDataRetrieve(), impeller::android::SurfaceTransaction::SetContents(), flutter::testing::DartFixture::SetSnapshotsAndAssets(), fml::testing::TEST(), fml::testing::TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), fml::TruncateFile(), fml::VisitFiles(), and fml::VisitFilesRecursively().
|
inline |
Definition at line 62 of file unique_object.h.
References fml::UniqueObject< T, Traits >::reset().
|
inline |
|
inline |
Definition at line 86 of file unique_object.h.
Referenced by zircon::dart::System::ChannelFromFile(), flutter_runner::IsolateConfigurator::ConfigureCurrentIsolate(), impeller::android::SurfaceTransaction::SetContents(), and fml::VisitFiles().
|
inline |
Definition at line 67 of file unique_object.h.
References FML_CHECK, and value.
Referenced by impeller::android::HardwareBuffer::HardwareBuffer(), fml::UniqueObject< T, Traits >::operator=(), impeller::android::SurfaceControl::SurfaceControl(), impeller::compiler::testing::CompilerTest::~CompilerTest(), and fml::ScopedTemporaryDirectory::~ScopedTemporaryDirectory().
|
inline |
Definition at line 74 of file unique_object.h.
References fml::UniqueObject< T, Traits >::swap().
Referenced by fml::swap(), and fml::UniqueObject< T, Traits >::swap().