MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / addRow

Method addRow

tests/catch.hpp:13602–13614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13600 : label( std::move( _label ) ),
13601 colour( _colour ) {}
13602 SummaryColumn addRow( std::size_t count ) {
13603 ReusableStringStream rss;
13604 rss << count;
13605 std::string row = rss.str();
13606 for (auto& oldRow : rows) {
13607 while (oldRow.size() < row.size())
13608 oldRow = ' ' + oldRow;
13609 while (oldRow.size() > row.size())
13610 row = ' ' + row;
13611 }
13612 rows.push_back(row);
13613 return *this;
13614 }
13615
13616 std::string label;
13617 Colour::Code colour;

Callers 1

printTotalsMethod · 0.80

Calls 2

strMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected