MCPcopy Create free account
hub / github.com/comaps/comaps / Add

Method Add

libs/coding/file_sort.hpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 void Add(T const & item)
52 {
53 if (m_Buffer.size() == m_BufferCapacity)
54 FlushToTmpFile();
55 m_Buffer.push_back(item);
56 ++m_ItemCount;
57 }
58
59 void SortAndFinish()
60 {

Callers 2

UNIT_TESTFunction · 0.45
TestFileSorterFunction · 0.45

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by 2

UNIT_TESTFunction · 0.36
TestFileSorterFunction · 0.36