Backend/Database/GTable.cpp
/*!
 * @brief remove GTable column
 * @details remove a column at the given index from the GTable
 * @param index the index of the column to remove
 */
@brief remove GTable column
@details remove a column at the given index from the GTable
@param index the index of the column to remove
@brief remove GTable column @details remove a column at the given index from the GTable @param index the index of the column to remove
void GTable::removeCol(unsigned int index)
{
	if (index >= numberOfCols())
		return;
	for (unsigned int r = 0; r < numberOfRows(); ++r)
		cells[r].remove(index);
	if (index < header.size())
		header.erase(header.begin() + index);
	for (unsigned int i = 0; i < outputColumns.size(); ++i)
	{
		if (index == outputColumns[i])
		{
			outputColumns.erase(outputColumns.begin() + i);
			break;
		}
	}
}
void GTable :: removeCol ( unsigned int index ) { if ( index >= numberOfCols ( ) ) return ; for ( unsigned int r = 0 ; r < numberOfRows ( ) ; ++ r ) cells [ r ] . remove ( index ) ; if ( index < header . size ( ) ) header . erase ( header . begin ( ) + index ) ; for ( unsigned int i = 0 ; i < outputColumns . size ( ) ; ++ i ) { if ( index == outputColumns [ i ] ) { outputColumns . erase ( outputColumns . begin ( ) + i ) ; break ; } } }
@brief remove GTable column
 @details remove a column at the given index from the GTable
 @param index the index of the column to remove
@brief remove GTable column @details remove a column at the given index from the GTable @param index the index of the column to remove
// error checking // remove column by row // remove header // Remove the output column