MOS Source Code
Loading...
Searching...
No Matches
PtrResultBase Struct Reference

#include <types.hpp>

+ Inheritance diagram for PtrResultBase:

Public Member Functions

virtual bool isErr () const final
 
virtual long getErr () const final
 
 operator bool () const
 

Protected Member Functions

 PtrResultBase ()
 
 PtrResultBase (int errorCode)
 

Protected Attributes

const int errorCode
 

Detailed Description

Definition at line 45 of file types.hpp.

Constructor & Destructor Documentation

◆ PtrResultBase() [1/2]

◆ PtrResultBase() [2/2]

PtrResultBase ( int errorCode)
inlineprotected

Definition at line 51 of file types.hpp.

Member Function Documentation

◆ isErr()

virtual bool isErr ( ) const
inlinefinalvirtual

Reimplemented in PtrResult< mos::shared_ptr< T > >.

Definition at line 54 of file types.hpp.

Referenced by PtrResult< T >::operator bool(), operator bool(), and process_do_fork().

◆ getErr()

virtual long getErr ( ) const
inlinefinalvirtual

Reimplemented in PtrResult< mos::shared_ptr< T > >.

Definition at line 59 of file types.hpp.

Referenced by MOS_TEST_DECL_PTEST().

◆ operator bool()

operator bool ( ) const
inlineexplicit

Definition at line 64 of file types.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ errorCode


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