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)
std::add_lvalue_reference< void >::type operator* ()
voidoperator-> ()
voidget () const
bool operator== (const std::nullptr_t) 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 135 of file types.hpp.

Constructor & Destructor Documentation

◆ PtrResult() [1/2]

PtrResult ( )
inline

Definition at line 138 of file types.hpp.

Here is the call graph for this function:

◆ PtrResult() [2/2]

PtrResult ( int errorCode)
inline

Definition at line 139 of file types.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ operator*()

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

Definition at line 86 of file types.hpp.

◆ operator->()

void * operator-> ( )
inline

Definition at line 96 of file types.hpp.

◆ get()

void * get ( ) const
inline

Definition at line 106 of file types.hpp.

◆ operator==()

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

Definition at line 113 of file types.hpp.

◆ operator bool()

operator bool ( ) const
inlineexplicit

Definition at line 128 of file types.hpp.

Member Data Documentation

◆ value

void* const value
private

Definition at line 76 of file types.hpp.


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