copasi API  0.1
Public Member Functions | Friends
CTableRow Class Reference

#include <CTableCell.h>

List of all members.

Public Member Functions

 CTableRow (const unsigned C_INT32 &size=0, const char &separator= '\t')
 CTableRow (const CTableRow &src)
 ~CTableRow ()
const std::vector< CTableCell > & getCells () const
bool resize (const unsigned C_INT32 &size)
unsigned C_INT32 size () const
const unsigned C_INT32 & getLastFilledCell () const
unsigned C_INT32 guessColumnNumber (std::istream &is, const bool &rewind)
const bool & isEmpty () const

Friends

std::istream & operator>> (std::istream &is, CTableRow &cell)

Constructor & Destructor Documentation

CTableRow::CTableRow ( const unsigned C_INT32 &  size = 0,
const char &  separator = '\t' 
)

Default constructor

Parameters:
constunisgned C_INT32 & size (default: 0)
constchar & separator (default: '')
CTableRow::CTableRow ( const CTableRow src)

Copy constructor

Parameters:
constCTableRow & src
CTableRow::~CTableRow ( )

Destructor


Member Function Documentation

const std::vector< CTableCell > & CTableRow::getCells ( ) const

Retrieve the cells.

Returns:
const std::vector< CTableCell > & cells
const unsigned C_INT32 & CTableRow::getLastFilledCell ( ) const

Retrieve the index of the last non empty cell in the last read operation. unsigned C_INT32 & lastFilledCell

unsigned C_INT32 CTableRow::guessColumnNumber ( std::istream &  is,
const bool &  rewind 
)

Try to guess the number of columns in the current line

Parameters:
std::istream&is
constbool & rewind
Returns:
unsigned C_INT32 numColumns
const bool & CTableRow::isEmpty ( ) const

Check whether row contains any cells with data A row is considered empty when it all cells are empty.

bool CTableRow::resize ( const unsigned C_INT32 &  size)

Resize

Parameters:
constunsigned C_INT32 & size
Returns:
bool success
unsigned C_INT32 CTableRow::size ( ) const

Retrieve the size of the row

Returns:
const unsigned C_INT32 size

Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  is,
CTableRow cell 
) [friend]

Formated stream input operator

Parameters:
CTableRow& cell
Returns:
std::istream &

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines