tracking::wrapper_i_base Class Reference

Abstract base class for input wrappers. More...

#include <wrapper_i.h>

Inheritance diagram for tracking::wrapper_i_base:
Inheritance graph
[legend]
Collaboration diagram for tracking::wrapper_i_base:
Collaboration graph
[legend]

List of all members.

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_valsget_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]

Detailed Description

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.


Member Enumeration Documentation

enum tracking::wrapper::p_vals [inherited]

enumeration for data types

Enumerator:
D_INDEX 
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 
enum tracking::wrapper::W_TYPE [inherited]

Enumeration for wrapper types.

Enumerator:
W_MATLAB 
W_TEXT 
W_NING 
W_HDF 

Constructor & Destructor Documentation

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]

Member Function Documentation

virtual void tracking::wrapper_i_base::fill_master_box ( master_box_t< particle_track > &  test  )  const [pure virtual]
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]
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]

Member Data Documentation

bool tracking::wrapper::clone [protected, inherited]

Boolean value to determine if this is a cloned wrapper or not.

If the data structure of this is pointing at the same chunk of memory as another wrapper, then it only needs to be deleted once. Currently none of this is implemented

int tracking::wrapper::data_layout_[16] [protected, inherited]
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().


The documentation for this class was generated from the following files:

Generated on Thu Sep 10 01:51:37 2009 for Particle Identification and Tracking by  doxygen 1.5.9-20090622