nndeploy C++ API  0.2.0
nndeploy C++ API
Public Member Functions | List of all members
nndeploy::base::Maybe< T > Class Template Reference

#include <status.h>

Public Member Functions

bool hasValue () const
 
 Maybe (const Maybe &other)=default
 
 Maybe (const Status &status)
 
 Maybe (const T &value, const Status &status)
 
Maybeoperator= (const Maybe &other)=default
 
Status status () const
 
value () const
 
virtual ~Maybe ()
 

Detailed Description

template<typename T>
class nndeploy::base::Maybe< T >

Definition at line 129 of file status.h.

Constructor & Destructor Documentation

◆ Maybe() [1/3]

template<typename T >
nndeploy::base::Maybe< T >::Maybe ( const T &  value,
const Status status 
)
inline

Definition at line 131 of file status.h.

◆ Maybe() [2/3]

template<typename T >
nndeploy::base::Maybe< T >::Maybe ( const Status status)
inline

Definition at line 133 of file status.h.

◆ ~Maybe()

template<typename T >
virtual nndeploy::base::Maybe< T >::~Maybe ( )
inlinevirtual

Definition at line 135 of file status.h.

◆ Maybe() [3/3]

template<typename T >
nndeploy::base::Maybe< T >::Maybe ( const Maybe< T > &  other)
default

Member Function Documentation

◆ hasValue()

template<typename T >
bool nndeploy::base::Maybe< T >::hasValue ( ) const
inline

Definition at line 140 of file status.h.

◆ operator=()

template<typename T >
Maybe& nndeploy::base::Maybe< T >::operator= ( const Maybe< T > &  other)
default

◆ status()

template<typename T >
Status nndeploy::base::Maybe< T >::status ( ) const
inline

Definition at line 142 of file status.h.

◆ value()

template<typename T >
T nndeploy::base::Maybe< T >::value ( ) const
inline

Definition at line 141 of file status.h.


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