Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Public Attributes | List of all members
Nullable< ResultType > Struct Template Reference

Returns value or error. More...

#include <Nullable.h>

Public Member Functions

 Nullable ()
 Creates invalid object. Value fieled is default contructed. More...
 
 Nullable (NullableInit)
 Creates valid object. Value fieled is default contructed. More...
 
 Nullable (std::string &&error)
 Creates invalid object and sets error string. Value fieled is default contructed. More...
 
 Nullable (ResultType &&result)
 Creates valid object. More...
 
 Nullable (const Nullable< ResultType > &other)
 
 Nullable (Nullable< ResultType > &&other)
 
void operator= (const Nullable< ResultType > &other)
 
void operator= (Nullable< ResultType > &&other)
 
bool operator! ()
 

Public Attributes

ResultType Value
 
bool IsValid
 
std::string ErrorString
 

Detailed Description

template<typename ResultType>
struct Nullable< ResultType >

Returns value or error.

Constructor & Destructor Documentation

template<typename ResultType>
Nullable< ResultType >::Nullable ( )
inline

Creates invalid object. Value fieled is default contructed.

template<typename ResultType>
Nullable< ResultType >::Nullable ( NullableInit  )
inlineexplicit

Creates valid object. Value fieled is default contructed.

template<typename ResultType>
Nullable< ResultType >::Nullable ( std::string &&  error)
inline

Creates invalid object and sets error string. Value fieled is default contructed.

template<typename ResultType>
Nullable< ResultType >::Nullable ( ResultType &&  result)
inline

Creates valid object.

template<typename ResultType>
Nullable< ResultType >::Nullable ( const Nullable< ResultType > &  other)
inline
template<typename ResultType>
Nullable< ResultType >::Nullable ( Nullable< ResultType > &&  other)
inline

Member Function Documentation

template<typename ResultType>
bool Nullable< ResultType >::operator! ( )
inline
template<typename ResultType>
void Nullable< ResultType >::operator= ( const Nullable< ResultType > &  other)
inline
template<typename ResultType>
void Nullable< ResultType >::operator= ( Nullable< ResultType > &&  other)
inline

Member Data Documentation

template<typename ResultType>
std::string Nullable< ResultType >::ErrorString
template<typename ResultType>
bool Nullable< ResultType >::IsValid
template<typename ResultType>
ResultType Nullable< ResultType >::Value

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