Files
obitools3/doc/source/containers.rst

30 lines
681 B
ReStructuredText
Raw Normal View History

2015-05-23 03:39:56 +03:00
===============
Container types
===============
2015-05-28 17:03:50 +02:00
Containers allow to manage collections of values of homogeneous type.
2015-05-23 03:39:56 +03:00
Three container types exist.
A container is a non-mutable structure once it has been locked.
2015-05-28 17:03:50 +02:00
Consequently, only insertion procedures are needed.
2015-05-23 03:39:56 +03:00
Lists
-----
2015-05-28 17:03:50 +02:00
Correspond to an ordered collection of values belonging to an elementary type.
2015-05-23 03:39:56 +03:00
2015-05-28 17:03:50 +02:00
At its creation, ...
2015-05-23 03:39:56 +03:00
Sets
----
2015-05-28 17:03:50 +02:00
Correspond to an unordered collection of values belonging to an elementary type.
2015-05-23 03:39:56 +03:00
Dictionaries
------------
2015-05-28 17:03:50 +02:00
Dictionaries allow to associate a `key` to a `value`. Values can be retrieved through their associated key.
Values must belong to an elementary type and keys must be *OBIStr_t*.