|
Particle Identification and Tracking
|
Class to accumulate tuples into. More...
#include <array.h>
Collaboration diagram for utilities::Array:Public Member Functions | |
| Array (int rows) | |
| Constructor. | |
| void | clear () |
| Clears the array. | |
| void | clear (int rows) |
| Clears and resizes the array. | |
| int | get_col_num () const |
| Returns the number of columns. | |
| int | get_row_num () const |
| Returns the number of rows. | |
| void | print () |
| Sensible printing. | |
| void | push (const Tuplef &tuple_in) |
| Adds a tuple to the end of the array. | |
| void | resize (int rows) |
| resizes the array | |
| void | set_array (Generic_wrapper_base *out_wrapper) const |
| Outputs the whole array to the specified output wrapper. | |
Protected Attributes | |
| int | cols_ |
| number of colmuns | |
| int | cur_index_ |
| The current row, in [0,rows_-1]. | |
| std::vector< double > | data_ |
| Vector to hold data. | |
| int | rows_ |
| Number of rows. | |
Class to accumulate tuples into.
Each tuple added is a row. The number of columns is set by the size of Tuplei and Tuplef. This has some very bad naming conventions and is primarily used in the matlab related code. This class should probably go away.
| Array::Array | ( | int | rows | ) |
Constructor.
References rows_.
| void Array::clear | ( | ) |
Clears the array.
References cols_, cur_index_, data_, and rows_.
Referenced by tracking::Track_box::extract_corrected_disp(), and tracking::Track_box::extract_raw_disp().
| void Array::clear | ( | int | rows | ) |
Clears and resizes the array.
References cols_, cur_index_, data_, and rows_.
| int utilities::Array::get_col_num | ( | ) | const [inline] |
| int utilities::Array::get_row_num | ( | ) | const [inline] |
| void Array::print | ( | ) |
| void Array::push | ( | const Tuplef & | tuple_in | ) |
Adds a tuple to the end of the array.
References cols_, cur_index_, data_, and rows_.
Referenced by tracking::Track_box::extract_corrected_disp(), and tracking::Track_box::extract_raw_disp().
| void Array::resize | ( | int | rows | ) |
| void Array::set_array | ( | Generic_wrapper_base * | out_wrapper | ) | const |
Outputs the whole array to the specified output wrapper.
References utilities::Generic_wrapper_base::append_to_row(), cols_, data_, utilities::Generic_wrapper_base::finalize_wrapper(), utilities::Generic_wrapper_base::finish_row(), utilities::Generic_wrapper_base::initialize_wrapper(), rows_, and utilities::Generic_wrapper_base::start_new_row().
Referenced by utilities::Cell_matlab::add_array(), and mexFunction().
int utilities::Array::cols_ [protected] |
number of colmuns
Referenced by clear(), get_col_num(), print(), push(), resize(), and set_array().
int utilities::Array::cur_index_ [protected] |
std::vector<double> utilities::Array::data_ [protected] |
Vector to hold data.
Referenced by clear(), print(), push(), resize(), and set_array().
int utilities::Array::rows_ [protected] |
Number of rows.
Referenced by Array(), clear(), get_row_num(), print(), push(), resize(), and set_array().
1.7.6.1