Module P11_template
type t= P11_attribute.pack list
val equal : t -> t -> Ppx_deriving_runtime.boolval compare : t -> t -> Ppx_deriving_runtime.intval pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unitval show : t -> Ppx_deriving_runtime.stringval to_yojson : t -> Yojson.Safe.tval of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val to_string : t -> stringval get : t -> 'a P11_attribute_type.t -> 'a optionReturn the value of the first occurrence of an attribute.
val get_pack : t -> P11_attribute_type.pack -> P11_attribute.pack optionval mem : P11_attribute.pack -> t -> boolval normalize : t -> tval attribute_types : t -> P11_attribute_type.pack listval set_attribute : P11_attribute.pack -> t -> tset_attribute attribute templatereplaces the value ofattributeintemplateif it already exists and addsattributeotherwise.
val remove_attribute : P11_attribute.pack -> t -> tremove_attribute attribute templateremoves the valueattributefromtemplateif present. If the attribute_type ofattributeis present with a different value, does nothing.
val remove_attribute_type : P11_attribute_type.pack -> t -> tremove_attribute attribute_type templateremoves the attribute typeattribute_typefromtemplateif present with any value.
val fold : ('a -> t -> t) -> 'a list -> t -> tIterate one of the above operation. Same as List.fold_right
val union : t -> t -> tunion template1 template2concatenates the templates. If an attribute is present in bothtemplate1andtemplate2, the value intemplate1is kept.
val only_attribute_types : P11_attribute_type.pack list -> t -> tonly_attribute_types attr_types templatekeeps only the attributes intemplatethat are present inattr_types.
val except_attribute_types : P11_attribute_type.pack list -> t -> texcept_attribute_types attr_types templateremoves all the attributes intemplatethat are present inattr_types.
val find_attribute_types : P11_attribute_type.pack list -> t -> t optionfind_attribute_types l templatelook up for the value of each attribute type in the list l intemplate. ReturnNoneif one or several attribute types cannot be found intemplate.
val correspond : source:t -> tested:t -> boolcorrespond source testedcheck iftestedmatchsource. It means that it will return true if All the elements insourceare present intested.
val diff : source:t -> tested:t -> P11_attribute.pack list * P11_attribute.pack listdiff source testedsearch for all the elements ofsourcethat are not equal to an element oftested.It returns a tuple with the list of elements from source which are expected but not found in tested and a list of elements which are found but with a different value.
val hash : t -> Stdlib.Digest.thash templatecreates a digest from a template.It sorts the elements of the template to be sure to have the same digest for two templates that have attributes in different orders.
Accessors
val get_class : t -> P11_object_class.t optionval get_key_type : t -> P11_key_type.t optionval get_label : t -> string option