Utilitaries functionalities for Visitalbe container. More...
Utilitaries functionalities for Visitalbe container.
Functions | |
template<class ElementType > | |
void | RetrieveChildrenOfType (IReferenceList< ElementType > &list, IVisitableContainer *root, bool visitFirstLevelOnly=false) |
Retrive children of a given type. More... | |
template<class ElementType > | |
void | RetrieveChildrenOfType (IReferenceList< ElementType > &list, IVisitableContainer &root, bool visitFirstLevelOnly=false) |
Retrive children of a given type. More... | |
void ConceptRT::ContainerUtils::RetrieveChildrenOfType | ( | IReferenceList< ElementType > & | list, |
IVisitableContainer & | root, | ||
bool | visitFirstLevelOnly = false |
||
) |
Retrive children of a given type.
ElementType | Type of element to retrieve. |
list | [out] The output list where found element are added. The list is not cleared by the visitor. |
root | Container (root) to visit. |
visitFirstLevelOnly | (optional) Visit first level only. Default value is false. If true, the visitor will search recurvively into sublevels of Visitable Container. |
Deterministic but filtering take a long calculation time.