Particle Identification and Tracking
Functions
Life cycle of wrapper object

Order of operations on Wrapper_i_generic objects. More...

Functions

bool utilities::Wrapper_i_generic::open_wrapper ()
 open wrapper to accept data, nukes everything currently in the wrapper More...
 
bool utilities::Wrapper_i_generic::setup (const std::set< D_TYPE > &, int N, const Tuplef &)
 Sets the number of frames to expect. More...
 
bool utilities::Wrapper_i_generic::open_frame (unsigned int frame, int N, float z)
 Opens a frame to add data to it. More...
 
bool utilities::Wrapper_i_generic::set_data_type (D_TYPE dtype)
 Configures the object to take data of the given type. More...
 
bool utilities::Wrapper_i_generic::clear_data_type ()
 Clears the current data type, no questions asked. More...
 
bool utilities::Wrapper_i_generic::add_int_data (int *data, int N)
 adds data, must have an active data type set More...
 
bool utilities::Wrapper_i_generic::add_float_data (float *data, int N)
 adds data, must have an active data type set More...
 
bool utilities::Wrapper_i_generic::set_meta_data (const Md_store &md_store)
 Sets frame meta-data for the frame. More...
 
bool utilities::Wrapper_i_generic::close_frame ()
 Closes frame. More...
 
bool utilities::Wrapper_i_generic::finalize_wrapper ()
 Closes wrapper from taking any new data. More...
 

Detailed Description

Order of operations on Wrapper_i_generic objects.

Function Documentation

bool Wrapper_i_generic::add_float_data ( float *  data,
int  N 
)

adds data, must have an active data type set

Copies the data to it's own internal data structures so that it does not care what the source does. This is a major memory waste, but RAM is cheap.

This will clear the set data type.

will throw errors if there is not a set data type

Parameters
datathe data, pointer to 1D array
Nlength
Returns
if it works

References utilities::Wrapper_i_generic::clear_data_type(), utilities::Wrapper_i_generic::cur_dtype_, utilities::Wrapper_i_generic::cur_frame_number_, utilities::Wrapper_i_generic::cur_frame_size_, utilities::Wrapper_i_generic::d_mapf_, utilities::Wrapper_i_generic::data_f_, utilities::V_FLOAT, and utilities::v_type().

Referenced by utilities::Wrapper_i_jb_binary::proc_file().

bool Wrapper_i_generic::add_int_data ( int *  data,
int  N 
)

adds data, must have an active data type set

Copies the data to it's own internal data structures so that it does not care what the source does. This is a major memory waste, but RAM is cheap.

This will clear the set data type.

will throw errors if there is not a set data type

Parameters
datathe data, pointer to 1D array
Nlength
Returns
if it works

References utilities::Wrapper_i_generic::clear_data_type(), utilities::Wrapper_i_generic::cur_dtype_, utilities::Wrapper_i_generic::cur_frame_number_, utilities::Wrapper_i_generic::cur_frame_size_, utilities::Wrapper_i_generic::d_mapi_, utilities::Wrapper_i_generic::data_i_, utilities::V_INT, and utilities::v_type().

bool Wrapper_i_generic::clear_data_type ( )
bool Wrapper_i_generic::close_frame ( )
bool Wrapper_i_generic::finalize_wrapper ( )

Closes wrapper from taking any new data.

Referenced by utilities::Wrapper_i_jb_binary::proc_file().

bool Wrapper_i_generic::open_frame ( unsigned int  frame,
int  N,
float  z 
)
bool Wrapper_i_generic::open_wrapper ( )

open wrapper to accept data, nukes everything currently in the wrapper

References utilities::Wrapper_i_generic::clean_data().

Referenced by utilities::Wrapper_i_jb_binary::proc_file().

bool Wrapper_i_generic::set_data_type ( utilities::D_TYPE  d_type)
bool utilities::Wrapper_i_generic::set_meta_data ( const Md_store md_store)

Sets frame meta-data for the frame.

bool Wrapper_i_generic::setup ( const std::set< D_TYPE > &  dtypes,
int  N,
const Tuplef dim 
)