1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
8 namespace InferenceEngine {
11 * @brief c++ exception based error reporting wrapper of API class IMemoryState
14 IMemoryState::Ptr actual = nullptr;
17 explicit MemoryState(IMemoryState::Ptr pState) : actual(pState) {}
20 * @brief Wraps original method
24 CALL_STATUS_FNC_NO_ARGS(Reset);
27 * @brief Wraps original method
28 * IMemoryState::GetName
30 std::string GetName() const {
32 CALL_STATUS_FNC(GetName, name, sizeof(name));
36 * @brief Wraps original method
37 * IMemoryState::GetLastState
39 Blob::CPtr GetLastState() const {
41 CALL_STATUS_FNC(GetLastState, stateBlob);
45 * @brief Wraps original method
46 * IMemoryState::SetState
48 void SetState(Blob::Ptr state) {
49 CALL_STATUS_FNC(SetState, state);
53 } // namespace InferenceEngine