Abstract base class for input wrappers. More...
#include <wrapper_i.h>
Public Types | |
| enum | p_vals { D_INDEX = 0, D_XPOS, D_YPOS, D_FRAME, D_I, D_R2, D_E, D_NEXT, D_PREV, D_DX, D_DY, D_ORGX, D_ORGY, D_ZPOS, D_UNQID, D_TRACKID, D_S_ORDER_PARAMETER } |
enumeration for data types More... | |
| enum | W_TYPE { W_MATLAB = 0, W_TEXT, W_NING, W_HDF } |
Enumeration for wrapper types. More... | |
Public Member Functions | |
| virtual double | get_value (int ind, utilities::D_TYPE type) const =0 |
| virtual void | print (int ind) const |
| virtual int | num_entries () const =0 |
| returns the current number of particle entires that the wrapper has under it's control. | |
| wrapper_i_base (std::map< p_vals, int >map_in) | |
| virtual | ~wrapper_i_base () |
| virtual void | fill_master_box (master_box_t< particle_track > &test) const =0 |
| function to fill a master_box_t from the input wrapper | |
| virtual void | print () const =0 |
| Prints out the currents contents of the wrapper in some sort of sensible way. | |
| virtual std::set< p_vals > | get_data_types () const |
| Returns a set of the types of data that the wrapper knows how to deal with. | |
| std::map< p_vals, int > * | get_map_ptr () |
| Returns a pointer to the map. | |
Protected Attributes | |
| bool | clone |
| Boolean value to determine if this is a cloned wrapper or not. | |
| std::map< p_vals, int > | data_types_ |
| A map between the data types and a posistion in the data structure. | |
| int | data_layout_ [16] |
Abstract base class for input wrappers.
Defines the basic functionality that a input wrapper needs to have. This moatly exists to make the polymorphism in/out wrappers type safe.
enum tracking::wrapper::p_vals [inherited] |
enum tracking::wrapper::W_TYPE [inherited] |
Enumeration for wrapper types.
| tracking::wrapper_i_base::wrapper_i_base | ( | std::map< p_vals, int > | map_in | ) | [inline] |
| virtual tracking::wrapper_i_base::~wrapper_i_base | ( | ) | [inline, virtual] |
| virtual void tracking::wrapper_i_base::fill_master_box | ( | master_box_t< particle_track > & | test | ) | const [pure virtual] |
function to fill a master_box_t from the input wrapper
Implemented in tracking::wrapper_i_file, tracking::Wrapper_i_hdf5, tracking::wrapper_i_ning, and tracking::wrapper_i_ning_hd.
| virtual std::set<p_vals> tracking::wrapper::get_data_types | ( | ) | const [virtual, inherited] |
Returns a set of the types of data that the wrapper knows how to deal with.
Referenced by tracking::Wrapper_i_hdf5::fill_master_box().
| std::map<p_vals, int>* tracking::wrapper::get_map_ptr | ( | ) | [inline, inherited] |
Returns a pointer to the map.
References tracking::wrapper::data_types_.
| virtual double tracking::wrapper_i_base::get_value | ( | int | ind, | |
| utilities::D_TYPE | type | |||
| ) | const [pure virtual] |
Implemented in tracking::wrapper_i_file, tracking::Wrapper_i_hdf5, and tracking::wrapper_i_ning.
Referenced by print().
| virtual int tracking::wrapper_i_base::num_entries | ( | ) | const [pure virtual] |
returns the current number of particle entires that the wrapper has under it's control.
Implements tracking::wrapper.
Implemented in tracking::wrapper_i_file, tracking::Wrapper_i_hdf5, and tracking::wrapper_i_ning.
| virtual void tracking::wrapper::print | ( | ) | const [pure virtual, inherited] |
Prints out the currents contents of the wrapper in some sort of sensible way.
Implemented in tracking::wrapper_i_file, tracking::Wrapper_i_hdf5, and tracking::wrapper_i_ning.
| void wrapper_i_base::print | ( | int | ind | ) | const [virtual] |
References tracking::wrapper::data_types_, and get_value().
bool tracking::wrapper::clone [protected, inherited] |
int tracking::wrapper::data_layout_[16] [protected, inherited] |
Referenced by tracking::wrapper_i_ning::get_value(), and tracking::wrapper_i_file::get_value().
std::map<p_vals, int> tracking::wrapper::data_types_ [protected, inherited] |
A map between the data types and a posistion in the data structure.
This orginally had been burried down in the derived classes, but I couldn't think of a data structure for storing particle data where this sort of thing wasn't uesful. Thus, it has been dragged up to the top level.
Referenced by tracking::wrapper::get_map_ptr(), tracking::wrapper_i_ning::get_value(), tracking::wrapper_i_file::get_value(), and print().
1.5.9-20090622