MOS Source Code
Loading...
Searching...
No Matches
PtrResult< void > Struct Reference

#include <types.hpp>

+ Inheritance diagram for PtrResult< void >:
+ Collaboration diagram for PtrResult< void >:

Public Member Functions

 PtrResult ()
 
 PtrResult (int errorCode)
 
 PtrResult (void *value)
 
 PtrResult (int errorCode)
 
std::add_lvalue_reference< void >::type operator* ()
 
const std::add_lvalue_reference< void >::type & operator* () const
 
voidoperator-> ()
 
const voidoperator-> () const
 
voidget () const
 
bool operator== (const std::nullptr_t) const
 
bool operator== (const PtrResult< void > &other) const
 
bool operator== (const void *other) const
 
 operator bool () const
 
- Public Member Functions inherited from PtrResultBase
virtual bool isErr () const final
 
virtual long getErr () const final
 
 operator bool () const
 

Private Attributes

void *const value
 

Additional Inherited Members

- Protected Member Functions inherited from PtrResultBase
 PtrResultBase ()
 
 PtrResultBase (int errorCode)
 
- Protected Attributes inherited from PtrResultBase
const int errorCode
 

Detailed Description

Definition at line 128 of file types.hpp.

Constructor & Destructor Documentation

◆ PtrResult() [1/4]

PtrResult ( )
inline

Definition at line 131 of file types.hpp.

+ Here is the call graph for this function:

◆ PtrResult() [2/4]

PtrResult ( int errorCode)
inline

Definition at line 132 of file types.hpp.

+ Here is the call graph for this function:

◆ PtrResult() [3/4]

PtrResult ( void * value)
inline

Definition at line 77 of file types.hpp.

◆ PtrResult() [4/4]

PtrResult ( int errorCode)
inline

Definition at line 78 of file types.hpp.

Member Function Documentation

◆ operator*() [1/2]

std::add_lvalue_reference< void >::type operator* ( )
inline

Definition at line 81 of file types.hpp.

◆ operator*() [2/2]

const std::add_lvalue_reference< void >::type & operator* ( ) const
inline

Definition at line 86 of file types.hpp.

◆ operator->() [1/2]

void * operator-> ( )
inline

Definition at line 91 of file types.hpp.

◆ operator->() [2/2]

const void * operator-> ( ) const
inline

Definition at line 96 of file types.hpp.

◆ get()

void * get ( ) const
inline

Definition at line 101 of file types.hpp.

◆ operator==() [1/3]

bool operator== ( const std::nullptr_t ) const
inline

Definition at line 106 of file types.hpp.

◆ operator==() [2/3]

bool operator== ( const PtrResult< void > & other) const
inline

Definition at line 111 of file types.hpp.

◆ operator==() [3/3]

bool operator== ( const void * other) const
inline

Definition at line 116 of file types.hpp.

◆ operator bool()

operator bool ( ) const
inlineexplicit

Definition at line 121 of file types.hpp.

Member Data Documentation

◆ value

void* const value
private

Definition at line 74 of file types.hpp.


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