src/common/mod/dep.cpp
Vertex Dependency::getVertexID(const std::string& name)
{

    boost::property_map<DependencyGraph, property_tag_t>::type
        index = boost::get(property_tag_t(), m_graph);

    boost::graph_traits<DependencyGraph>::vertex_iterator
        i = boost::vertices(m_graph).first;
    for (; i != vertices(m_graph).second; i++)
    {
        if (index[*i] == name)
        {
            break;
        }
    }

    BOOST_ASSERT(i != vertices(m_graph).second);
    return *i;
}
// Retrives id for a vertex id by it's name
Retrives id for a vertex id by it's name
Retrives id for a vertex id by it ' s name
Vertex Dependency::getVertexID(const std::string& name)
{
    boost::property_map<DependencyGraph, property_tag_t>::type
        index = boost::get(property_tag_t(), m_graph);
    boost::graph_traits<DependencyGraph>::vertex_iterator
        i = boost::vertices(m_graph).first;
    for (; i != vertices(m_graph).second; i++)
    {
        if (index[*i] == name)
        {
            break;
        }
    }
    BOOST_ASSERT(i != vertices(m_graph).second);
    return *i;
}
Vertex Dependency :: getVertexID ( const std :: string & name ) { boost :: property_map < DependencyGraph , property_tag_t > :: type index = boost :: get ( property_tag_t ( ) , m_graph ) ; boost :: graph_traits < DependencyGraph > :: vertex_iterator i = boost :: vertices ( m_graph ) . first ; for ( ; i != vertices ( m_graph ) . second ; i ++ ) { if ( index [ * i ] == name ) { break ; } } BOOST_ASSERT ( i != vertices ( m_graph ) . second ) ; return * i ; }
Retrives id for a vertex id by it's name
Retrives id for a vertex id by it ' s name