API Guides > ConceptRT 3.x
ConceptRT::ContainerUtils Namespace Reference

Utilitaries functionalities for Visitalbe container. More...

Detailed Description

Utilitaries functionalities for Visitalbe container.

Version
3.5 or greater feature.

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...
 

Function Documentation

void ConceptRT::ContainerUtils::RetrieveChildrenOfType ( IReferenceList< ElementType > &  list,
IVisitableContainer root,
bool  visitFirstLevelOnly = false 
)

Retrive children of a given type.

Template Parameters
ElementTypeType of element to retrieve.
Parameters
list[out] The output list where found element are added. The list is not cleared by the visitor.
rootContainer (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.

Version
3.5 or greater feature.