classes/CIMAPBodyStruct.cpp
void CIMAPBodyStruct::walkBodyStructTree(std::unique_ptr<BodyNode> &bodyNode, BodyPartFn walkFn, std::shared_ptr<void> &walkData)
    {
        for (auto &bodyPart : bodyNode->bodyParts)
        {
            if (bodyPart.child)
            {
                walkBodyStructTree(bodyPart.child, walkFn, walkData);
            }
            else
            {
                walkFn(bodyNode, bodyPart, walkData);
            }
        }
    }
//
// Walk body structure tree calling user supplied function for each body part.
//

Walk body structure tree calling user supplied function for each body part.
Walk body structure tree calling user supplied function for each body part .
void CIMAPBodyStruct::walkBodyStructTree(std::unique_ptr<BodyNode> &bodyNode, BodyPartFn walkFn, std::shared_ptr<void> &walkData)
    {
        for (auto &bodyPart : bodyNode->bodyParts)
        {
            if (bodyPart.child)
            {
                walkBodyStructTree(bodyPart.child, walkFn, walkData);
            }
            else
            {
                walkFn(bodyNode, bodyPart, walkData);
            }
        }
    }
void CIMAPBodyStruct :: walkBodyStructTree ( std :: unique_ptr < BodyNode > & bodyNode , BodyPartFn walkFn , std :: shared_ptr < void > & walkData ) { for ( auto & bodyPart : bodyNode -> bodyParts ) { if ( bodyPart . child ) { walkBodyStructTree ( bodyPart . child , walkFn , walkData ) ; } else { walkFn ( bodyNode , bodyPart , walkData ) ; } } }
Walk body structure tree calling user supplied function for each body part.
Walk body structure tree calling user supplied function for each body part .