omdl  v0.9.5
OpenSCAD Mechanical Design Library
table.scad File Reference

Table data structure and operations. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Separate table data
function table_get_row_index (r, ri)
 Get the table row index that matches a table row identifier. More...
 
function table_get_row (r, ri)
 Get the table row that matches a table row identifier. More...
 
function table_get_column_index (c, ci)
 Get the table column index that matches a table column identifier. More...
 
function table_get_column (c, ci)
 Get the table column that matches a table column identifier. More...
 
function table_get_value (r, c, ri, ci)
 Get the table cell value for a specified row and column identifier. More...
 
function table_get_columns (r, c, ci)
 Form a list of a select column across all table rows. More...
 
function table_get (r, c, ri, ci)
 Get a row, a column, or a specific cell value from a table. More...
 
function table_get_row_ids (r)
 Form a list of all table row identifiers. More...
 
function table_get_column_ids (c)
 Form a list of all table column identifiers. More...
 
function table_exists (r, c, ri, ci)
 Test the existence of a table row identifier, table column identifier, or both. More...
 
function table_get_size (r, c)
 Get the size of a table. More...
 
function table_get_copy (r, c, rs, cs)
 Create a new matrix from select rows and columns of a table. More...
 
function table_get_sum (r, c, rs, cs)
 Sum select rows and columns of a table. More...
 
function table_errors (r, c)
 Perform basic format checks on a table and return errors. More...
 
module table_check (r, c, verbose=false)
 Perform basic format checks on a table and output errors to console. More...
 
module table_dump (r, c, rs, cs, number=true)
 Dump a table to the console. More...
 
module table_dump_getters (r, c, tr="table_rows", tc="table_cols", ri="ri", ci="ci", vri=false, vci=false, name="get_helper", append=false, comment=0, verbose=false)
 Dump table getter functions to the console. More...
 
module table_write (r, c, rs, cs, number=false, heading_id=true, heading_text=false, fs="^", thn="idx", index_tags=empty_lst, row_id_tags=["b"], value_tags=empty_lst)
 Write formatted map entries to the console. More...
 
Combined table data
function ctable_get (t, ri, ci)
 Get a row, a column, or a specific cell value from a table. More...
 
function ctable_exists (t, ri, ci)
 Test the existence of a table row identifier, table column identifier, or both. More...
 
function ctable_get_size (t)
 Get the size of a table. More...
 
function ctable_errors (t)
 Perform basic format checks on a table and return errors. More...
 

Detailed Description

Table data structure and operations.

Author
Roy Allen Sutton
Date
2015-2024

This file is part of omdl, an OpenSCAD mechanical design library.

The omdl is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

The omdl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the omdl; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA; or see http://www.gnu.org/licenses/.

Definition in file table.scad.