-
首页
-
C4D R23.110 C++ SDK
ResultBase< T > Class Template Reference
#include <resultbase.h>
详细描述
template<typename T>
class maxon::ResultBase< T >
Base class for
Result
.
Member Typedef Documentation
◆
ValueType
The type of the value of the
Result
.
◆
CopyType
◆
MoveType
◆
DeleteType
◆
ConstructibleFrom
构造函数 & 析构函数文档编制
◆
ResultBase()
[1/3]
◆
ResultBase()
[2/3]
Constructs a new
ResultBase
with the given value and no error.
-
参数
-
◆
ResultBase()
[3/3]
Constructs a new
ResultBase
with the given value and no error.
-
参数
-
成员函数文档编制
◆
GetValue()
Returns the result value. A DebugAssert will trigger if this is invoked when there is an error.
-
返回
-
Result
值。
◆
UncheckedGetValue()
Returns the result value. In case of an error there is no value, then this function returns a null value.
-
返回
-
Result
value (or a null value in case of an error).
◆
MAXON_MEMBER_ACCESSORS()
[1/2]
◆
MAXON_MEMBER_ACCESSORS()
[2/2]
◆
GetValueAndError()
[1/4]
Returns the result value and error. If there is an error, the parameter #error will be set to the error and a null value is returned.
-
参数
-
[out]
|
error
|
This parameter receives the error (or a nullptr if there is no error).
|
-
返回
-
Result
value (or a null value in case of an error).
◆
GetValueAndError()
[2/4]
Returns the result value and error. If there is an error, the parameter #error will be set to the error and a null value is returned.
-
参数
-
[out]
|
error
|
This parameter receives the error (or a nullptr if there is no error).
|
-
返回
-
Result
value (or a null value in case of an error).
◆
GetValueAndError()
[3/4]
Returns the result value and error. If there is an error, the parameter #error will be set to the error and a null value is returned.
-
参数
-
[out]
|
error
|
This parameter receives the error (or a nullptr if there is no error).
|
-
返回
-
Result
value (or a null value in case of an error).
◆
GetValueAndError()
[4/4]
Returns the result value and error. If there is an error, the parameter #error will be set to the error and a null value is returned.
-
参数
-
[out]
|
error
|
This parameter receives the error (or a nullptr if there is no error).
|
-
返回
-
Result
value (or a null value in case of an error).
◆
GetErrorStorage()
[1/2]
Returns a reference to the
ThreadReferencedError
storage in which the
Result
stores its error.
-
返回
-
The
ThreadReferencedError
where the error (if any) is stored.
◆
GetErrorStorage()
[2/2]
Returns a reference to the
ThreadReferencedError
storage in which the
Result
stores its error.
-
返回
-
The
ThreadReferencedError
where the error (if any) is stored.
Member Data Documentation
◆
HAS_ERROR
const
Bool
HAS_ERROR
static
|
|
◆
_error
◆
_value