pike.git / lib / modules / ADT.pmod / Table.pmod

version» Context lines:

pike.git/lib/modules/ADT.pmod/Table.pmod:1:   // Table.pmod by Fredrik Noring, 1998 - // $Id: Table.pmod,v 1.16 2001/01/05 19:42:20 grubba Exp $ + // $Id: Table.pmod,v 1.17 2001/01/05 21:10:06 grubba Exp $      #pike __REAL_VERSION__   #define TABLE_ERR(msg) throw(({ "(Table) "+msg+"\n", backtrace() }))      //! ADT.Table is a generic module for manipulating tables.   //!   //! Each table contains one or several columns.   //! Each column is associated with a name, the column name.   //! Optionally, one can provide a column type. The Table module can do a number   //! of operations on a given table, like computing the sum of a column,
pike.git/lib/modules/ADT.pmod/Table.pmod:88:    //! This method reverses the rows of the table and returns a    //! new table object.    object reverse()    {    return copy(predef::reverse(table), fields, types);    }       //! This method returns the contents of a given column as an array.    array col(int|string column)    { -  return copy_value(local::column(table, remap(column))); +  return copy_value(predef::column(table, remap(column)));    }       //! This method returns the contents of a given row as an array.    array row(int row_number)    {    return copy_value(table[row_number]);    }       //! Same as @[col()].    array `[](int|string column)