MCPcopy Create free account
hub / github.com/d99kris/rapidcsv / GetRowNames

Method GetRowNames

src/rapidcsv.h:1545–1559  ·  view source on GitHub ↗

* @brief Get row names * @returns vector of row names. */

Source from the content-addressed store, hash-verified

1543 * @returns vector of row names.
1544 */
1545 std::vector<std::string> GetRowNames() const
1546 {
1547 std::vector<std::string> rownames;
1548 if (mLabelParams.mRowNameIdx >= 0)
1549 {
1550 for (auto itRow = mData.begin(); itRow != mData.end(); ++itRow)
1551 {
1552 if (std::distance(mData.begin(), itRow) > mLabelParams.mColumnNameIdx)
1553 {
1554 rownames.push_back(itRow->at(static_cast<size_t>(mLabelParams.mRowNameIdx)));
1555 }
1556 }
1557 }
1558 return rownames;
1559 }
1560
1561 private:
1562 void ReadCsv()

Callers 1

test051.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected