* @brief Get row names * @returns vector of row names. */
| 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() |