MCPcopy Create free account
hub / github.com/Tencent/embedx / Clear

Method Clear

src/sampler/sampler_source/mock_sampler_source.cc:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void MockSamplerSource::Clear() {
90 context_loader_.reset();
91 ns_size_ = 1;
92 id_name_map_.clear();
93 uniq_nodes_list_.clear();
94 uniq_freqs_list_.clear();
95 node_set_.clear();
96 node_weight_maps_.clear();
97}
98
99bool MockSamplerSource::Insert(int_t node) {
100 auto ns_id = io_util::GetNodeType(node);

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected