@foreach tag

This tag can be used to iterate over declared code symbols.

Content inside the loop body is repeated for each symbol found in specified scope with specified types and attributes.

Loop variables can be used as current symbol id, name and symbol type name.

Recursion depth can be specified, 0 mean no depth limit.

This tag is mainly used in template files provided by mkdoc when using the bootstrap option.

Syntax [link] 

@foreach <id_var> [<name_var>] [<type_var>] {[<attributes>] <types list>} {<scope>} [{<depth>}]
... @<id_var>@ ...
@end foreach

Valid symbol types are: typedef, enum, union, struct, cxxstruct, class, variable, function, namespace, header, macro and module.

Valid attributes are: virtual, static, abstract, inline, friend, const, slot, signal, template, template_instance, specialization, specialized, deprecated, internal, hidden, experimental, visible, ambiguous, override, main, homonyms and defined.

Example [link] 

@foreach id name type {defined !experimental cxxstruct,class} {::} {1}
@debug @id@ is an unique identifier for the @name@ @type@
@end foreach
Valid XHTML 1.0 StrictGenerated by diaxen on Wed Jan 27 15:46:24 2021 using MkDoc