imaging_table Class Reference
  #include <imaging_table.h>
Public Types | |
| typedef std::vector< imaging_column > | column_vector_t | 
| typedef std::vector< float > | data_vector_t | 
Public Member Functions | |
| imaging_table () | |
| void | set_data (const size_t rows, column_vector_t &cols, data_vector_t &data) | 
| float | operator() (const size_t r, const column_id c, const size_t subcol=0) const INTEROP_THROW_SPEC((model | 
| float | operator() (const size_t row, const size_t col, const size_t subcol=0) const INTEROP_THROW_SPEC((model | 
| const column_vector_t & | columns () const | 
| bool | empty () const | 
| void | clear () | 
| const imaging_column & | column_at (const size_t col_index) INTEROP_THROW_SPEC((model | 
| size_t | column_count () const | 
| size_t | total_column_count () const | 
| size_t | row_count () const | 
Friends | |
| std::istream & | operator>> (std::istream &in, imaging_table &table) | 
| std::ostream & | operator<< (std::ostream &out, const imaging_table &table) | 
Detailed Description
Describes an imaging table, row data, column headers and boolean filled
- Test:
 - Confirm to_header and to_name properly convert header names
 
Member Typedef Documentation
| typedef std::vector< imaging_column> column_vector_t | 
Define a column vector
| typedef std::vector< float > data_vector_t | 
Define a data vector
Constructor & Destructor Documentation
      
  | 
  inline | 
Constructor
Member Function Documentation
      
  | 
  inline | 
Clear the contents of the table
      
  | 
  inline | 
Get the current column description (which may have subcolumns)
- Parameters
 - 
  
col_index index of column description  
- Returns
 - column description
 
      
  | 
  inline | 
Number of columns
- Returns
 - column count
 
      
  | 
  inline | 
Get a vector of column headers
- Returns
 - column headers
 
      
  | 
  inline | 
Test if the table is empty
- Returns
 - true if empty
 
      
  | 
  inline | 
Get a reference to a row
- Parameters
 - 
  
r row row index c col column index subcol sub column offset  
- Returns
 - cell value
 
      
  | 
  inline | 
Get a reference to a row
- Parameters
 - 
  
row row row index col col column index subcol sub column offset  
- Returns
 - cell value
 
      
  | 
  inline | 
Number of rows in the table
- Returns
 - row count
 
      
  | 
  inline | 
Reserve space for the rows
- Parameters
 - 
  
rows number of rows cols column vector data table cell data  
      
  | 
  inline | 
Number of columns including subcolumns in the table
- Returns
 - column count
 
Friends And Related Function Documentation
      
  | 
  friend | 
Write the imaging table to the output stream in the CSV format
- Parameters
 - 
  
out output stream table imaging table  
- Returns
 - output stream
 
      
  | 
  friend | 
Read an imaging table from an input stream in the CSV format
- Parameters
 - 
  
in input stream table imaging table  
- Returns
 - input stream
 
The documentation for this class was generated from the following file:
- /io/interop/model/table/imaging_table.h