Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
util::StatusOr< T > Class Template Reference

#include <statusor.h>

Classes

struct  IsNull
 
struct  IsNull< U * >
 

Public Member Functions

ConsumeValueOrDie ()
 
bool ok () const
 
StatusOroperator= (const StatusOr &other)
 
template<typename U >
StatusOroperator= (const StatusOr< U > &other)
 
template<typename U >
StatusOroperator= (StatusOr< U > &&other)
 
template<typename U >
StatusOr< T > & operator= (const StatusOr< U > &other)
 
template<typename U >
StatusOr< T > & operator= (StatusOr< U > &&other)
 
const Statusstatus () const
 
 StatusOr ()
 
 StatusOr (const Status &status)
 
 StatusOr (const T &value)
 
 StatusOr (const StatusOr &other)
 
template<typename U >
 StatusOr (const StatusOr< U > &other)
 
 StatusOr (T &&value)
 
template<typename U >
 StatusOr (StatusOr< U > &&other)
 
const T & ValueOrDie () const
 

Private Member Functions

void CheckValueNotNull (const T &value)
 

Private Attributes

Status status_
 
value_
 

Friends

template<typename U >
class StatusOr
 

Detailed Description

template<typename T>
class util::StatusOr< T >

Definition at line 93 of file statusor.h.

Constructor & Destructor Documentation

template<typename T >
util::StatusOr< T >::StatusOr ( )
inline

Definition at line 222 of file statusor.h.

template<typename T >
util::StatusOr< T >::StatusOr ( const Status status)
inline

Definition at line 227 of file statusor.h.

template<typename T>
util::StatusOr< T >::StatusOr ( const T &  value)
inline

Definition at line 236 of file statusor.h.

template<typename T>
util::StatusOr< T >::StatusOr ( const StatusOr< T > &  other)
inline

Definition at line 246 of file statusor.h.

template<typename T >
template<typename U >
util::StatusOr< T >::StatusOr ( const StatusOr< U > &  other)
inline

Definition at line 259 of file statusor.h.

template<typename T>
util::StatusOr< T >::StatusOr ( T &&  value)
inline

Definition at line 292 of file statusor.h.

template<typename T >
template<typename U >
util::StatusOr< T >::StatusOr ( StatusOr< U > &&  other)
inline

Definition at line 308 of file statusor.h.

Member Function Documentation

template<typename T>
void util::StatusOr< T >::CheckValueNotNull ( const T &  value)
inlineprivate

Definition at line 323 of file statusor.h.

template<typename T >
T util::StatusOr< T >::ConsumeValueOrDie ( )
inline

Definition at line 299 of file statusor.h.

template<typename T >
bool util::StatusOr< T >::ok ( ) const
inline

Definition at line 277 of file statusor.h.

template<typename T >
StatusOr< T > & util::StatusOr< T >::operator= ( const StatusOr< T > &  other)
inline

Definition at line 251 of file statusor.h.

template<typename T>
template<typename U >
StatusOr& util::StatusOr< T >::operator= ( const StatusOr< U > &  other)
template<typename T>
template<typename U >
StatusOr& util::StatusOr< T >::operator= ( StatusOr< U > &&  other)
template<typename T>
template<typename U >
StatusOr<T>& util::StatusOr< T >::operator= ( const StatusOr< U > &  other)
inline

Definition at line 265 of file statusor.h.

template<typename T>
template<typename U >
StatusOr<T>& util::StatusOr< T >::operator= ( StatusOr< U > &&  other)
inline

Definition at line 316 of file statusor.h.

template<typename T >
const Status & util::StatusOr< T >::status ( ) const
inline

Definition at line 272 of file statusor.h.

template<typename T >
const T & util::StatusOr< T >::ValueOrDie ( ) const
inline

Definition at line 282 of file statusor.h.

Friends And Related Function Documentation

template<typename T>
template<typename U >
friend class StatusOr
friend

Definition at line 94 of file statusor.h.

Member Data Documentation

template<typename T>
Status util::StatusOr< T >::status_
private

Definition at line 189 of file statusor.h.

template<typename T>
T util::StatusOr< T >::value_
private

Definition at line 190 of file statusor.h.


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


gcloud_speech
Author(s):
autogenerated on Mon Jun 10 2019 13:20:53