Particle Identification and Tracking
|
Wrapper class for dealing with data from a text file. More...
#include <wrapper_i_file.h>
Public Member Functions | |
int | get_value (int &out, int ind, D_TYPE type, int frame) const |
Returns the value of the type specified from the particle selected. More... | |
float | get_value (float &out, int ind, D_TYPE type, int frame) const |
Returns the value of the type specified from the particle selected. More... | |
std::complex< float > | get_value (std::complex< float > &out, int ind, D_TYPE type, int frame) const |
Returns the value of the type specified from the particle selected. More... | |
std::set< D_TYPE > | get_data_types () const |
Returns a set of the data types. More... | |
int | get_num_entries (int frame) const |
int | get_num_frames () const |
Return the number of frames. More... | |
bool | contains_type (D_TYPE type) const |
Returns if the wrapper contains the specified data type. More... | |
Tuple | get_dims () const |
Returns the dimension of each 'frame' of the data in the wrapper. More... | |
~Wrapper_i_file () | |
Wrapper_i_file (const std::string &fname, const std::set< utilities::D_TYPE > &dtypes, int rows, const std::vector< int > &frame_edges) | |
virtual int | get_num_entries (unsigned int frame) const =0 |
Return the number of entries the specified frame. More... | |
virtual int | get_num_entries () const =0 |
Return the total number of entries in the wrapper. More... | |
Meta data handling functions | |
const Md_store * | get_Md_store (unsigned int j) const |
Returns a pointer to plane j's meta data store. More... | |
Md_store * | get_Md_store (unsigned int j) |
Returns a pointer to plane j's meta data store. More... | |
void | set_Md_store (unsigned int j, Md_store *in) |
Sets the Md_store for plane j. More... | |
void | set_Md_store_size (unsigned int j) |
Sets the size of the md_stores_ vector. More... | |
unsigned int | get_Md_store_size () |
Gets the size of the md_stores_ vector. More... | |
void | clear_Md_store (unsigned int j) |
Deletes plane j's Md_store. More... | |
Protected Member Functions | |
void | fill_data (std:string file_name, int row, int col) |
Protected Attributes | |
int | rows |
number of rows(particles) that the More... | |
int | cols |
map< utilities::D_TYPE, int > | contents |
vector< int > | frame_edges_ |
Private Member Functions | |
double | get_value (int ind, utilities::D_TYPE type) const |
Private Attributes | |
double * | first |
Pointer to the first data point of the. More... | |
Wrapper class for dealing with data from a text file.
This is mainly for testing purposes.
This class is broken.
utilities::Wrapper_i_file::~Wrapper_i_file | ( | ) |
utilities::Wrapper_i_file::Wrapper_i_file | ( | const std::string & | fname, |
const std::set< utilities::D_TYPE > & | dtypes, | ||
int | rows, | ||
const std::vector< int > & | frame_edges | ||
) |
|
inherited |
Deletes plane j's Md_store.
References utilities::Wrapper_in::md_stores_.
|
virtual |
Returns if the wrapper contains the specified data type.
Implements utilities::Wrapper_in.
|
protected |
|
virtual |
|
virtual |
Returns the dimension of each 'frame' of the data in the wrapper.
Implements utilities::Wrapper_in.
|
inherited |
Returns a pointer to plane j's meta data store.
Const version
References utilities::Wrapper_in::md_stores_.
Referenced by tracking::Master_box::get_Md_store(), and tracking::hash_case::init().
|
inherited |
Returns a pointer to plane j's meta data store.
Const version
References utilities::Wrapper_in::md_stores_.
|
inherited |
Gets the size of the md_stores_ vector.
References utilities::Wrapper_in::md_stores_.
int utilities::Wrapper_i_file::get_num_entries | ( | int | frame) | const |
|
pure virtualinherited |
Return the number of entries the specified frame.
Implemented in utilities::Wrapper_i_generic, utilities::Wrapper_i_hdf, utilities::Wrapper_i_dummy, utilities::Wrapper_i_dummy, utilities::Wrapper_i_jb_binary, utilities::Wrapper_i_dummy, utilities::Wrapper_i_dummy, and iden::Wrapper_i_plu.
Referenced by tracking::hash_case::init(), and tracking::Master_box::priv_init().
|
pure virtualinherited |
Return the total number of entries in the wrapper.
Implemented in utilities::Wrapper_i_generic, utilities::Wrapper_i_hdf, utilities::Wrapper_i_dummy, utilities::Wrapper_i_dummy, utilities::Wrapper_i_jb_binary, utilities::Wrapper_i_dummy, utilities::Wrapper_i_dummy, and iden::Wrapper_i_plu.
|
virtual |
Return the number of frames.
Implements utilities::Wrapper_in.
|
private |
|
virtual |
Returns the value of the type specified from the particle selected.
out | [out] the value |
ind | [in] the index of the particle |
type | [in] the D_TYPE |
frame | [in] the frame the particle is in |
Implements utilities::Wrapper_in.
|
virtual |
Returns the value of the type specified from the particle selected.
out | [out] the value |
ind | [in] the index of the particle |
type | [in] the D_TYPE |
frame | [in] the frame the particle is in |
Implements utilities::Wrapper_in.
|
virtual |
Returns the value of the type specified from the particle selected.
out | [out] the value |
ind | [in] the index of the particle |
type | [in] the D_TYPE |
frame | [in] the frame the particle is in |
Implements utilities::Wrapper_in.
|
inherited |
Sets the Md_store for plane j.
When the pointer is assigned the wrapper takes ownership of the pointer and will clean it up.
References utilities::Wrapper_in::md_stores_.
Referenced by iden::Iden::fill_wrapper(), iden::Iden::fill_wrapper_avg(), main(), utilities::Wrapper_i_hdf::priv_init(), and iden::Iden::process_frame().
|
inherited |
Sets the size of the md_stores_ vector.
References utilities::Wrapper_in::md_stores_.
Referenced by iden::Iden::fill_wrapper(), iden::Iden::fill_wrapper_avg(), main(), utilities::Wrapper_i_hdf::priv_init(), and iden::Wrapper_i_plu::Wrapper_i_plu().
|
protected |
|
protected |
|
private |
Pointer to the first data point of the.
|
protected |
|
protected |
number of rows(particles) that the