MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / addIfNotExist

Method addIfNotExist

pose_graph/ThirdParty/DBoW/BowVector.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40// --------------------------------------------------------------------------
41
42void BowVector::addIfNotExist(WordId id, WordValue v) {
43 BowVector::iterator vit = this->lower_bound(id);
44
45 if (vit == this->end() || (this->key_comp()(id, vit->first))) {
46 this->insert(vit, BowVector::value_type(id, v));
47 }
48}
49
50// --------------------------------------------------------------------------
51

Callers 1

transformMethod · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected