39 return result.
value >= 0;
56 return result.
value < 0;
225 mDescription(description),
272 return mLegacy.description;
281 return mLegacy.level;
290 return mLegacy.module;
299 return mLegacy.summary;
305 operator bool()
const 313 result.
value = mValue;
319 return mValue == other.mValue;
324 return mValue != other.mValue;
330 uint32_t description : 10;
331 uint32_t summary : 4;
335 uint32_t signature : 2;
339 uint32_t mDescription : 20;
340 uint32_t mModule : 9;
350 #endif // ifdef __cplusplus
Result structure for nn libraries.
bool IsSuccess() const
Determine if the Result instance represents a successful state.
Result value type used by nn libraries.
static int NNResult_IsSuccess(NNResult result)
Determine if a NNResult represents a successful state.
bool operator!=(const Result &other) const
bool operator==(const Result &other) const
Result(const NNResult &result)
unsigned GetSummary() const
bool IsFailure() const
Determine if the Result instance represents a failure.
int32_t value
Aggregate value of result bitfield.
static int NNResult_IsFailure(NNResult result)
Determine if a NNResult represents a failure.
Result(Level level, Module module, unsigned description)
unsigned GetModule() const
unsigned GetDescription() const