WaveBlocksND
coefficients_file_parser.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <complex>
5 #include <fstream>
6 
7 
8 namespace waveblocks {
9  namespace csv {
11  {
12  public:
13  std::vector<int> lattice_node;
14  std::vector<std::complex<double> > coefficients;
15 
16  CoefficientsFileParser(std::string file, int wp_dimensions, int wp_components);
17 
18  bool next();
19 
20  std::size_t line_number() const
21  {
22  return line_number_;
23  }
24 
25  private:
26  std::fstream in_;
29  std::size_t line_number_;
30  };
31  }
32 }
Definition: coefficients_file_parser.cpp:10
bool next()
Definition: coefficients_file_parser.cpp:25
std::size_t line_number() const
Definition: coefficients_file_parser.hpp:20
int wp_components_
Definition: coefficients_file_parser.hpp:28
std::size_t line_number_
Definition: coefficients_file_parser.hpp:29
std::vector< int > lattice_node
Definition: coefficients_file_parser.hpp:13
CoefficientsFileParser(std::string file, int wp_dimensions, int wp_components)
Definition: coefficients_file_parser.cpp:13
int wp_dimensions_
Definition: coefficients_file_parser.hpp:27
std::vector< std::complex< double > > coefficients
Definition: coefficients_file_parser.hpp:14
std::fstream in_
Definition: coefficients_file_parser.hpp:26
Definition: coefficients_file_parser.hpp:10