LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::Optional< T > Class Template Reference

#include <Optional.h>

Inheritance diagram for llvm::Optional< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Optional (NoneType)
 Optional ()
 Optional (const T &y)
 Optional (const Optional &O)
 Optional (T &&y)
 Optional (Optional< T > &&O)
Optionaloperator= (T &&y)
Optionaloperator= (Optional &&O)
Optionaloperator= (const T &y)
Optionaloperator= (const Optional &O)
void reset ()
 ~Optional ()
const TgetPointer () const
TgetPointer ()
const TgetValue () const LLVM_LVALUE_FUNCTION
TgetValue () LLVM_LVALUE_FUNCTION
LLVM_EXPLICIT operator bool () const
bool hasValue () const
const Toperator-> () const
Toperator-> ()
const Toperator* () const LLVM_LVALUE_FUNCTION
Toperator* () LLVM_LVALUE_FUNCTION

Static Public Member Functions

static Optional create (const T *y)

Detailed Description

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

Definition at line 28 of file Optional.h.


Constructor & Destructor Documentation

template<typename T>
llvm::Optional< T >::Optional ( NoneType  ) [inline]

Definition at line 32 of file Optional.h.

template<typename T>
llvm::Optional< T >::Optional ( ) [inline, explicit]
template<typename T>
llvm::Optional< T >::Optional ( const T y) [inline]

Definition at line 34 of file Optional.h.

template<typename T>
llvm::Optional< T >::Optional ( const Optional< T > &  O) [inline]

Definition at line 37 of file Optional.h.

template<typename T>
llvm::Optional< T >::Optional ( T &&  y) [inline]

Definition at line 42 of file Optional.h.

template<typename T>
llvm::Optional< T >::Optional ( Optional< T > &&  O) [inline]

Definition at line 45 of file Optional.h.

template<typename T>
llvm::Optional< T >::~Optional ( ) [inline]

Definition at line 104 of file Optional.h.


Member Function Documentation

template<typename T>
static Optional llvm::Optional< T >::create ( const T y) [inline, static]

Definition at line 70 of file Optional.h.

template<typename T>
const T* llvm::Optional< T >::getPointer ( ) const [inline]
template<typename T>
T* llvm::Optional< T >::getPointer ( ) [inline]

Definition at line 109 of file Optional.h.

template<typename T>
const T& llvm::Optional< T >::getValue ( ) const [inline]
template<typename T>
T& llvm::Optional< T >::getValue ( ) [inline]

Definition at line 111 of file Optional.h.

template<typename T>
bool llvm::Optional< T >::hasValue ( ) const [inline]
template<typename T>
LLVM_EXPLICIT llvm::Optional< T >::operator bool ( ) const [inline]

Definition at line 113 of file Optional.h.

template<typename T>
const T& llvm::Optional< T >::operator* ( ) const [inline]

Definition at line 117 of file Optional.h.

template<typename T>
T& llvm::Optional< T >::operator* ( ) [inline]

Definition at line 118 of file Optional.h.

template<typename T>
const T* llvm::Optional< T >::operator-> ( ) const [inline]

Definition at line 115 of file Optional.h.

template<typename T>
T* llvm::Optional< T >::operator-> ( ) [inline]

Definition at line 116 of file Optional.h.

template<typename T>
Optional& llvm::Optional< T >::operator= ( T &&  y) [inline]

Definition at line 51 of file Optional.h.

template<typename T>
Optional& llvm::Optional< T >::operator= ( Optional< T > &&  O) [inline]

Definition at line 60 of file Optional.h.

template<typename T>
Optional& llvm::Optional< T >::operator= ( const T y) [inline]

Definition at line 79 of file Optional.h.

template<typename T>
Optional& llvm::Optional< T >::operator= ( const Optional< T > &  O) [inline]

Definition at line 89 of file Optional.h.

template<typename T>
void llvm::Optional< T >::reset ( ) [inline]

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