54 const std::vector<T>
getData(
const std::string & name)
const
72 const std::vector<T>
getData(std::size_t index_column)
const
91 std::vector<T>
convertVector(
const std::vector<std::string> & column)
const
93 auto converted_data = std::vector<T>(column.size());
94 for (
size_t index_row = 0; index_row < column.size(); ++index_row)
96 convert<T>(column[index_row], converted_data[index_row],
true);
98 return converted_data;
Utility class for reading delimited data (e.g., CSV data).
const std::vector< std::vector< T > > & getData() const
Return the rows/columns of data.
Utility class for reading delimited data (e.g., CSV data).
std::vector< T > convertVector(const std::vector< std::string > &column) const
Given a column of a data set this will convert it to a vector of the requested type.
const std::vector< T > getData(const std::string &name) const
Converts a specific named column in the data set to a vector of a specified type.
MixedDataDelimitedFileReader(const std::string &filename)
const std::vector< T > getData(std::size_t index_column) const
Converts a column in the data set to a vector of a specified type.
MixedDataDelimitedFileReader(const std::string &filename, const libMesh::Parallel::Communicator *comm)