|
LLVM
3.7.0
|
#include <Optional.h>
Public Types | |
| typedef T | value_type |
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) |
| template<typename... ArgTypes> | |
| void | emplace (ArgTypes &&...Args) |
| Create a new object by constructing it in place with the given arguments. More... | |
| 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 |
| operator bool () const | |
| bool | hasValue () const |
| const T * | operator-> () const |
| T * | operator-> () |
| const T & | operator* () const LLVM_LVALUE_FUNCTION |
| T & | operator* () LLVM_LVALUE_FUNCTION |
| template<typename U > | |
| LLVM_CONSTEXPR T | getValueOr (U &&value) const LLVM_LVALUE_FUNCTION |
Static Public Member Functions | |
| static Optional | create (const T *y) |
Definition at line 29 of file Optional.h.
| typedef T llvm::Optional< T >::value_type |
Definition at line 33 of file Optional.h.
|
inline |
Definition at line 35 of file Optional.h.
|
inlineexplicit |
Definition at line 36 of file Optional.h.
Referenced by llvm::Optional< COFF::AuxiliarySectionDefinition >::create().
|
inline |
Definition at line 37 of file Optional.h.
Definition at line 40 of file Optional.h.
|
inline |
Definition at line 45 of file Optional.h.
|
inline |
Definition at line 48 of file Optional.h.
|
inline |
Definition at line 115 of file Optional.h.
|
inlinestatic |
Definition at line 81 of file Optional.h.
|
inline |
Create a new object by constructing it in place with the given arguments.
Definition at line 75 of file Optional.h.
|
inline |
Definition at line 119 of file Optional.h.
Referenced by llvm::Optional< COFF::AuxiliarySectionDefinition >::getValue(), llvm::Optional< COFF::AuxiliarySectionDefinition >::operator*(), and llvm::Optional< COFF::AuxiliarySectionDefinition >::operator->().
|
inline |
Definition at line 120 of file Optional.h.
|
inline |
Definition at line 121 of file Optional.h.
Referenced by llvm::DWARFDebugInfoEntryMinimal::dumpAttribute(), llvm::sys::Process::FindInEnvPath(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsAddress(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsReference(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsSectionOffset(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsString(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsUnsignedConstant(), llvm::Optional< COFF::AuxiliarySectionDefinition >::getValueOr(), and IntersectRange().
|
inline |
Definition at line 122 of file Optional.h.
|
inline |
Definition at line 132 of file Optional.h.
|
inline |
Definition at line 125 of file Optional.h.
Referenced by llvm::DWARFDebugInfoEntryMinimal::dumpAttribute(), llvm::sys::Process::FindInEnvPath(), findPreviousSpillSlot(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsAddress(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsReference(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsSectionOffset(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsString(), llvm::DWARFDebugInfoEntryMinimal::getAttributeValueAsUnsignedConstant(), getSearchPaths(), llvm::Optional< COFF::AuxiliarySectionDefinition >::getValueOr(), IntersectRange(), llvm::libDriverMain(), and reservePreviousStackSlotForValue().
|
inlineexplicit |
Definition at line 124 of file Optional.h.
|
inline |
Definition at line 128 of file Optional.h.
|
inline |
Definition at line 129 of file Optional.h.
|
inline |
Definition at line 126 of file Optional.h.
|
inline |
Definition at line 127 of file Optional.h.
|
inline |
Definition at line 54 of file Optional.h.
|
inline |
Definition at line 63 of file Optional.h.
|
inline |
Definition at line 90 of file Optional.h.
Definition at line 100 of file Optional.h.
|
inline |
Definition at line 108 of file Optional.h.
Referenced by llvm::Optional< COFF::AuxiliarySectionDefinition >::emplace(), llvm::Optional< COFF::AuxiliarySectionDefinition >::operator=(), and llvm::Optional< COFF::AuxiliarySectionDefinition >::~Optional().
1.8.6