Exemplo n.º 1
0
/// Get a list of parent node
core::objectmodel::BaseNode::Parents GNode::getParents() const
{
    Parents p;
    if (parent())
        p.push_back(parent());
    return p;
}
Exemplo n.º 2
0
/// Get a list of parent node
core::objectmodel::BaseNode::Parents DAGNode::getParents() const
{
    Parents p;

    LinkParents::Container parents = l_parents.getValue();
    for ( unsigned int i = 0; i < parents.size() ; i++)
    {
        if (parents[i])
        {
            p.push_back(parents[i]);
//            printf("DAGNode::getParents() \"%s\"=%X parents[%d]=%X\"%s\"\n",getName().c_str(),this,i,(void*)parents[i],parents[i]->getName().c_str());
        }
//        else
//            printf("DAGNode::getParents() \"%s\"=%X parents[%d]=%X\n",getName().c_str(),this,i,(void*)parents[i]);
    }

    return p;
}