COPASI API
4.16.103
|
#include <CTableCell.h>
Public Member Functions | |
CTableRow (const size_t &size=0, const char &separator= '\t') | |
CTableRow (const CTableRow &src) | |
const std::vector< CTableCell > & | getCells () const |
const size_t & | getLastFilledCell () const |
size_t | guessColumnNumber (std::istream &is, const bool &rewind) |
const bool & | isEmpty () const |
bool | resize (const size_t &size) |
size_t | size () const |
~CTableRow () | |
Private Member Functions | |
std::istream & | readLine (std::istream &is) |
Private Attributes | |
std::vector< CTableCell > | mCells |
bool | mIsEmpty |
size_t | mLastFilledCell |
char | mSeparator |
Friends | |
std::istream & | operator>> (std::istream &is, CTableRow &cell) |
Definition at line 109 of file CTableCell.h.
CTableRow::CTableRow | ( | const size_t & | size = 0 , |
const char & | separator = '\t' |
||
) |
Default constructor
const | unisgned C_INT32 & size (default: 0) |
const | char & separator (default: '') |
Definition at line 124 of file CTableCell.cpp.
References resize().
CTableRow::CTableRow | ( | const CTableRow & | src | ) |
CTableRow::~CTableRow | ( | ) |
const std::vector< CTableCell > & CTableRow::getCells | ( | ) | const |
Retrieve the cells.
Definition at line 141 of file CTableCell.cpp.
References mCells.
Referenced by CExperiment::read(), and CExperiment::readColumnNames().
const size_t & CTableRow::getLastFilledCell | ( | ) | const |
Retrieve the index of the last non empty cell in the last read operation. size_t & lastFilledCell
Definition at line 160 of file CTableCell.cpp.
References mLastFilledCell.
size_t CTableRow::guessColumnNumber | ( | std::istream & | is, |
const bool & | rewind | ||
) |
Try to guess the number of columns in the current line
std::istream | &is |
const | bool & rewind |
Definition at line 163 of file CTableCell.cpp.
References C_INVALID_INDEX, isEmpty(), and mCells.
Referenced by CExperiment::guessColumnNumber().
const bool & CTableRow::isEmpty | ( | ) | const |
Check whether row contains any cells with data A row is considered empty when it all cells are empty.
Definition at line 182 of file CTableCell.cpp.
References mIsEmpty.
Referenced by guessColumnNumber().
|
private |
Fill the row with data from the inpute stream until End_Of_Line is encountered and advance the stream accordingly.
std::istream | & is |
Definition at line 184 of file CTableCell.cpp.
References C_INT, C_INVALID_INDEX, mCells, mIsEmpty, mLastFilledCell, and mSeparator.
Referenced by operator>>().
bool CTableRow::resize | ( | const size_t & | size | ) |
Resize
const | size_t & size |
Definition at line 144 of file CTableCell.cpp.
References mCells, and mSeparator.
Referenced by CTableRow().
size_t CTableRow::size | ( | ) | const |
Retrieve the size of the row
Definition at line 157 of file CTableCell.cpp.
References mCells.
|
friend |
Formated stream input operator
CTableRow | & cell |
Definition at line 253 of file CTableCell.cpp.
|
private |
Definition at line 193 of file CTableCell.h.
Referenced by getCells(), guessColumnNumber(), readLine(), resize(), and size().
|
private |
Definition at line 197 of file CTableCell.h.
Referenced by isEmpty(), and readLine().
|
private |
Definition at line 199 of file CTableCell.h.
Referenced by getLastFilledCell(), and readLine().
|
private |
Definition at line 195 of file CTableCell.h.
Referenced by readLine(), and resize().