Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Representation of the mapping from module paths to files.
val empty : t
empty
is an empty module path mapping.
Exception raised if an attempt is made to map an already mapped module (including the root).
set_root dir m
sets the library root of m
to be dir
.
Already_mapped
if library root of m
is already set.
add mp fp map
extends the mapping map
by associating the module path mp
to the file path fp
.
Already_mapped
when mp
isalready mapped in m
.
Exception raised if an attempt is made to use the get
function prior to the root being set (using set_root
).
get mp map
obtains the filename corresponding to the module path mp
in map
(with no particular extension).
Root_not_set
when the root of map
has not been set using set_root
.
iter f map
calls function f
on every binding stored in map
.
val pp : t Lplib.Base.pp
pp ppf t
prints t
on formatter ppf
(for debug).