MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / add

Method add

src/common/classes/array.h:584–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582 }
583
584 size_type add(const Value& item)
585 {
586 size_type pos;
587 if (sortMode == FB_ARRAY_SORT_WHEN_ADD)
588 find(KeyOfValue::generate(item), pos);
589 else
590 {
591 sorted = false;
592 pos = this->getCount();
593 }
594 this->insert(pos, item);
595 return pos;
596 }
597
598 void setSortMode(int sm)
599 {

Callers

nothing calls this directly

Calls 3

findFunction · 0.50
getCountMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected