omdl
v0.5
OpenSCAD Mechanical Design Library
|
Mapped key-value pair data access. More...
Go to the source code of this file.
Functions | |
function | map_get_idx (map, key) |
Return the index for the storage location of a map key-value pair. More... | |
function | map_exists (map, key) |
Test if a key exists in a map. More... | |
function | map_get (map, key) |
Get the value associated with a map key. More... | |
function | map_get_keys (map) |
Get a vector of the map entry identifier keys. More... | |
function | map_get_values (map) |
Get a vector of the map entry values. More... | |
function | map_size (map) |
Get the number of key-value pairs stored in a map. More... | |
module | map_check (map, verbose=false) |
Perform some basic validation/checks on a map. More... | |
module | map_dump (map, sort=true, number=true, p=3) |
Dump each map key-value pair to the console. More... | |
Mapped key-value pair data access.
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/.
Manage a collection of key-value pairs where keys are unique.
Definition in file map.scad.