omdl  v0.6.1
OpenSCAD Mechanical Design Library
datatypes_table.scad File Reference

Table data type operations. More...

#include <../console.scad>
#include <datatypes-base.scad>
+ Include dependency graph for datatypes_table.scad:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

function get_table_ri (r, ri)
 Get the table row index that matches a table row identifier. More...
 
function get_table_r (r, ri)
 Get the table row that matches a table row identifier. More...
 
function get_table_ci (c, ci)
 Get the table column index that matches a table column identifier. More...
 
function get_table_c (c, ci)
 Get the table column that matches a table column identifier. More...
 
function get_table_v (r, c, ri, ci)
 Get the table cell value for a specified row and column identifier. More...
 
function get_table_crl (r, c, ci)
 Form a list of a select column across all table rows. More...
 
function get_table_ridl (r)
 Form a list of all table row identifiers. More...
 
function get_table_cidl (c)
 Form a list of all table column identifiers. More...
 
function table_exists (r, c, ri, ci)
 Test the existence of a table row and column identifier. More...
 
function get_table_size (r, c)
 Get the size of a table. More...
 
function get_table_copy (r, c, rl, cl)
 Create a new matrix from select rows and columns of a table. More...
 
function get_table_sum (r, c, rl, cl)
 Sum select rows and columns of a table. More...
 
module table_check (r, c, verbose=false)
 Perform some basic validation/checks on a table. More...
 
module table_dump (r, c, rl, cl, number=true)
 Dump a table to the console. More...
 

Detailed Description

Table data type operations.

Author
Roy Allen Sutton
Date
2015-2017

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 datatypes_table.scad.