3#include <CesiumUtility/ErrorList.h>
4#include <CesiumUtility/IntrusivePointer.h>
32 :
value(std::move(value_)),
errors(std::move(errors_)) {}
75 : pValue(std::move(pValue_)),
errors() {}
86 : pValue(std::move(pValue_)),
errors(std::move(errors_)) {}
95 : pValue(
nullptr),
errors(std::move(errors_)) {}
A smart pointer that calls addReference and releaseReference on the controlled object.
Utility classes for Cesium.
The container to store the error and warning list when loading a tile or glTF content.
CesiumUtility::IntrusivePointer< T > pValue
The value, if the operation succeeded to the point where it can provide one.
Result(CesiumUtility::IntrusivePointer< T > pValue_) noexcept
Creates a Result with the given value and an empty ErrorList.
ErrorList errors
The errors and warnings that occurred during the operation.
Result(CesiumUtility::IntrusivePointer< T > pValue_, ErrorList errors_) noexcept
Creates a Result with the given value and ErrorList.
Result(ErrorList errors_) noexcept
Creates a Result with an empty value and the given ErrorList.
Holds the result of an operation. If the operation succeeds, it will provide a value....
Result(ErrorList errors_) noexcept
Creates a Result with an empty value and the given ErrorList.
ErrorList errors
The errors and warnings that occurred during the operation.
Result(T value_, ErrorList errors_) noexcept
Creates a Result with the given value and ErrorList.
std::optional< T > value
The value, if the operation succeeded to the point where it can provide one.
Result(T value_) noexcept
Creates a Result with the given value and an empty ErrorList.