mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::ioutils::skipCol Struct Reference

A dummy class to allow mx::readColumns to skip a column(s) in a file without requiring memory allocation.

The alternative is to use dummy vectors, which result in excess memory allocations and deallocations. Usage:

std::vector<T> col1, col5;
skipCol sk;
readColumns("filename.txt", col1, sk, sk, sk, col5); //This results in only columns 1 and 5 being stored.
int readColumns(const std::string &fname, arrTs &... arrays)
Read in columns from a text file.

Definition at line 248 of file readColumns.hpp.

#include <ioutils/readColumns.hpp>

Public Types

typedef std::string value_type
 value_type is defined as std::string so that no conversions take place. More...
 

Member Typedef Documentation

◆ value_type

typedef std::string mx::ioutils::skipCol::value_type

value_type is defined as std::string so that no conversions take place.

Definition at line 250 of file readColumns.hpp.


The documentation for this struct was generated from the following file: