Wrapper class for dealing with data from a text file. More...
#include <wrapper_i_file.h>
Public Member Functions | |
| int | num_entries () const |
| Implementation for wrapper_i of files. | |
| void | print () const |
| double | get_value (int ind, utilities::D_TYPE type) const |
| ~wrapper_i_file () | |
| wrapper_i_file (params_file *param) | |
| void | fill_master_box (master_box_t< particle_track > &test) const |
Protected Member Functions | |
| void | fill_data (string file_name, int row, int col) |
Protected Attributes | |
| int | rows |
| number of rows(particles) that the | |
| int | cols |
| map< utilities::D_TYPE, int > | contents |
Private Attributes | |
| double * | first |
| Pointer to the first data point of the. | |
Wrapper class for dealing with data from a text file.
This is mainly for testing purposes. The assumption is that the data is stored in space deliniated file with one particle per row with the orderin [indx, x, y, I, r2,E]
| wrapper_i_file::~wrapper_i_file | ( | ) |
References first.
| wrapper_i_file::wrapper_i_file | ( | params_file * | param | ) |
| void wrapper_i_file::fill_data | ( | string | file_name, | |
| int | row, | |||
| int | col | |||
| ) | [protected] |
| void wrapper_i_file::fill_master_box | ( | master_box_t< particle_track > & | test | ) | const |
| double wrapper_i_file::get_value | ( | int | ind, | |
| utilities::D_TYPE | type | |||
| ) | const |
| int wrapper_i_file::num_entries | ( | ) | const |
Implementation for wrapper_i of files.
References rows.
int tracking::wrapper_i_file::cols [protected] |
Referenced by fill_data(), get_value(), and print().
map<utilities::D_TYPE, int> tracking::wrapper_i_file::contents [protected] |
double* tracking::wrapper_i_file::first [private] |
Pointer to the first data point of the.
Referenced by fill_data(), get_value(), and ~wrapper_i_file().
int tracking::wrapper_i_file::rows [protected] |
number of rows(particles) that the
Referenced by fill_data(), num_entries(), and print().
1.5.9-20090622