Backend/Database/GTable.cpp
/*!
 * @brief mark an output column
 * @details mark a column as output for use in the neural net(s)
 * @param index of output column
 */
@brief mark an output column
@details mark a column as output for use in the neural net(s)
@param index of output column
@brief mark an output column @details mark a column as output for use in the neural net ( s ) @param index of output column
void GTable::toggleOutput(unsigned int column)
{
	if (column >= header.size())
		return;
	bool toggled = false;
	for (unsigned int i = 0; i < outputColumns.size(); ++i)
	{
		if (column == outputColumns[i])
		{
			outputColumns.erase(outputColumns.begin() + i);
			toggled = true;
			break;
		}
		else if (outputColumns[i] > column)
		{
			outputColumns.insert(outputColumns.begin() + i, column);
			toggled = true;
			break;
		}
	}
	if (!toggled)
		outputColumns.push_back(column);
}
void GTable :: toggleOutput ( unsigned int column ) { if ( column >= header . size ( ) ) return ; bool toggled = false ; for ( unsigned int i = 0 ; i < outputColumns . size ( ) ; ++ i ) { if ( column == outputColumns [ i ] ) { outputColumns . erase ( outputColumns . begin ( ) + i ) ; toggled = true ; break ; } else if ( outputColumns [ i ] > column ) { outputColumns . insert ( outputColumns . begin ( ) + i , column ) ; toggled = true ; break ; } } if ( ! toggled ) outputColumns . push_back ( column ) ; }
@brief mark an output column
 @details mark a column as output for use in the neural net(s)
 @param index of output column
@brief mark an output column @details mark a column as output for use in the neural net ( s ) @param index of output column