Jayanth Othayoth | a320c7c | 2017-06-14 07:17:21 -0500 | [diff] [blame] | 1 | #include "dump_manager.hpp" |
Jayanth Othayoth | cb65ffc | 2018-10-16 08:29:32 -0500 | [diff] [blame] | 2 | |
Jayanth Othayoth | a320c7c | 2017-06-14 07:17:21 -0500 | [diff] [blame] | 3 | namespace phosphor |
4 | { | ||||
5 | namespace dump | ||||
6 | { | ||||
7 | |||||
Jayanth Othayoth | a320c7c | 2017-06-14 07:17:21 -0500 | [diff] [blame] | 8 | void Manager::erase(uint32_t entryId) |
9 | { | ||||
10 | entries.erase(entryId); | ||||
11 | } | ||||
12 | |||||
Nagaraju Goruganti | 3c899a4 | 2017-09-12 06:14:46 -0500 | [diff] [blame] | 13 | void Manager::deleteAll() |
14 | { | ||||
15 | auto iter = entries.begin(); | ||||
16 | while (iter != entries.end()) | ||||
17 | { | ||||
18 | auto& entry = iter->second; | ||||
Nagaraju Goruganti | 3c899a4 | 2017-09-12 06:14:46 -0500 | [diff] [blame] | 19 | ++iter; |
Stanley Chu | d11d613 | 2020-03-12 14:52:34 +0800 | [diff] [blame] | 20 | entry->delete_(); |
Nagaraju Goruganti | 3c899a4 | 2017-09-12 06:14:46 -0500 | [diff] [blame] | 21 | } |
22 | } | ||||
23 | |||||
Jayanth Othayoth | cb65ffc | 2018-10-16 08:29:32 -0500 | [diff] [blame] | 24 | } // namespace dump |
25 | } // namespace phosphor |