LLVM API Documentation
#include <Optional.h>
Public Member Functions | |
Optional (NoneType) | |
Optional () | |
Optional (const T &y) | |
Optional (const Optional &O) | |
Optional (T &&y) | |
Optional (Optional< T > &&O) | |
Optional & | operator= (T &&y) |
Optional & | operator= (Optional &&O) |
Optional & | operator= (const T &y) |
Optional & | operator= (const Optional &O) |
void | reset () |
~Optional () | |
const T * | getPointer () const |
T * | getPointer () |
const T & | getValue () const LLVM_LVALUE_FUNCTION |
T & | getValue () LLVM_LVALUE_FUNCTION |
LLVM_EXPLICIT | operator bool () const |
bool | hasValue () const |
const T * | operator-> () const |
T * | operator-> () |
const T & | operator* () const LLVM_LVALUE_FUNCTION |
T & | operator* () LLVM_LVALUE_FUNCTION |
Static Public Member Functions | |
static Optional | create (const T *y) |
Definition at line 28 of file Optional.h.
llvm::Optional< T >::Optional | ( | NoneType | ) | [inline] |
Definition at line 32 of file Optional.h.
llvm::Optional< T >::Optional | ( | ) | [inline, explicit] |
Definition at line 33 of file Optional.h.
Referenced by llvm::Optional< COFF::AuxiliarySectionDefinition >::create().
llvm::Optional< T >::Optional | ( | const T & | y | ) | [inline] |
Definition at line 34 of file Optional.h.
Definition at line 37 of file Optional.h.
llvm::Optional< T >::Optional | ( | T && | y | ) | [inline] |
Definition at line 42 of file Optional.h.
llvm::Optional< T >::Optional | ( | Optional< T > && | O | ) | [inline] |
Definition at line 45 of file Optional.h.
llvm::Optional< T >::~Optional | ( | ) | [inline] |
Definition at line 104 of file Optional.h.
Definition at line 70 of file Optional.h.
const T* llvm::Optional< T >::getPointer | ( | ) | const [inline] |
Definition at line 108 of file Optional.h.
Referenced by llvm::Optional< COFF::AuxiliarySectionDefinition >::getValue(), llvm::Optional< COFF::AuxiliarySectionDefinition >::operator*(), and llvm::Optional< COFF::AuxiliarySectionDefinition >::operator->().
T* llvm::Optional< T >::getPointer | ( | ) | [inline] |
Definition at line 109 of file Optional.h.
const T& llvm::Optional< T >::getValue | ( | ) | const [inline] |
Definition at line 110 of file Optional.h.
Referenced by llvm::DWARFFormValue::dump(), llvm::sys::Process::FindInEnvPath(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsAddress(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsReference(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsSectionOffset(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsString(), and llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsUnsignedConstant().
T& llvm::Optional< T >::getValue | ( | ) | [inline] |
Definition at line 111 of file Optional.h.
bool llvm::Optional< T >::hasValue | ( | ) | const [inline] |
Definition at line 114 of file Optional.h.
Referenced by llvm::DWARFFormValue::dump(), llvm::sys::Process::FindInEnvPath(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsAddress(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsReference(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsSectionOffset(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsString(), and llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsUnsignedConstant().
LLVM_EXPLICIT llvm::Optional< T >::operator bool | ( | ) | const [inline] |
Definition at line 113 of file Optional.h.
const T& llvm::Optional< T >::operator* | ( | ) | const [inline] |
Definition at line 117 of file Optional.h.
T& llvm::Optional< T >::operator* | ( | ) | [inline] |
Definition at line 118 of file Optional.h.
const T* llvm::Optional< T >::operator-> | ( | ) | const [inline] |
Definition at line 115 of file Optional.h.
T* llvm::Optional< T >::operator-> | ( | ) | [inline] |
Definition at line 116 of file Optional.h.
Optional& llvm::Optional< T >::operator= | ( | T && | y | ) | [inline] |
Definition at line 51 of file Optional.h.
Optional& llvm::Optional< T >::operator= | ( | Optional< T > && | O | ) | [inline] |
Definition at line 60 of file Optional.h.
Optional& llvm::Optional< T >::operator= | ( | const T & | y | ) | [inline] |
Definition at line 79 of file Optional.h.
Definition at line 89 of file Optional.h.
void llvm::Optional< T >::reset | ( | ) | [inline] |
Definition at line 97 of file Optional.h.
Referenced by llvm::Optional< COFF::AuxiliarySectionDefinition >::operator=(), and llvm::Optional< COFF::AuxiliarySectionDefinition >::~Optional().