MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / free_data

Method free_data

DSView/pv/data/logicsnapshot.cpp:65–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void LogicSnapshot::free_data()
66{
67 Snapshot::free_data();
68
69 for(auto& iter : _ch_data) {
70 for(auto& iter_rn : iter) {
71 for (unsigned int k = 0; k < Scale; k++){
72 if (iter_rn.lbp[k] != NULL)
73 free(iter_rn.lbp[k]);
74 }
75 }
76 std::vector<struct RootNode> void_vector;
77 iter.swap(void_vector);
78 }
79 _ch_data.clear();
80 _sample_count = 0;
81
82 for(void *p : _free_block_list){
83 free(p);
84 }
85 _free_block_list.clear();
86}
87
88void LogicSnapshot::init()
89{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected