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

Map data type operations. More...

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

Go to the source code of this file.

Functions

function get_map_i (m, k)
 Return the index of a map key. More...
 
function map_exists (m, k)
 Test if a key exists. More...
 
function get_map_v (m, k)
 Get the map value associated with a key. More...
 
function get_map_kl (m)
 Get a list of all map keys. More...
 
function get_map_vl (m)
 Get a list of all map values. More...
 
function get_map_size (m)
 Get the number of map entries. More...
 
module map_check (m, verbose=false)
 Perform some basic validation/checks on a map. More...
 
module map_dump (m, sort=true, number=true, p=3)
 Dump each map entry to the console. More...
 

Detailed Description

Map 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_map.scad.