telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 4 | // |
| 5 | #pragma once |
| 6 | |
Aron Virginas-Tar | f9aeef0 | 2018-10-12 15:18:03 +0100 | [diff] [blame] | 7 | #include <arm_compute/runtime/ISimpleLifetimeManager.h> |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 8 | |
| 9 | namespace armnn |
| 10 | { |
| 11 | |
| 12 | class OffsetLifetimeManager : public arm_compute::ISimpleLifetimeManager |
| 13 | { |
| 14 | public: |
| 15 | OffsetLifetimeManager(); |
| 16 | |
| 17 | OffsetLifetimeManager(const OffsetLifetimeManager&) = delete; |
| 18 | |
| 19 | OffsetLifetimeManager& operator=(const OffsetLifetimeManager&) = delete; |
| 20 | |
| 21 | OffsetLifetimeManager(OffsetLifetimeManager&&) = default; |
| 22 | |
| 23 | OffsetLifetimeManager& operator=(OffsetLifetimeManager&&) = default; |
| 24 | |
| 25 | std::unique_ptr<arm_compute::IMemoryPool> create_pool(arm_compute::IAllocator* allocator) override; |
| 26 | |
| 27 | arm_compute::MappingType mapping_type() const override; |
| 28 | |
| 29 | private: |
| 30 | void update_blobs_and_mappings() override; |
| 31 | |
| 32 | private: |
| 33 | /// Memory blob size |
| 34 | size_t m_BlobSize; |
| 35 | }; |
| 36 | |
| 37 | } // namespace armnn |