File: setcircular.cc

package info (click to toggle)
icmake 13.05.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,132 kB
  • sloc: cpp: 11,595; fortran: 883; makefile: 853; sh: 546; pascal: 342
file content (19 lines) | stat: -rw-r--r-- 569 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define XERR
#include "dependencies.ih"

// d_circular is a vector whose elements 'idx' contain the (unordered) set of
// modules imported by module 'idx'.

// d_idx is a vector of size_t values equal to their indices: copies of
// the indices of the modules (available in d_modVect)

    // called by circular.cc

void Dependencies::setCircular()
{
    for (ModData &data: d_modVect)
        d_circular.push_back(data.imports());      // cp d_imports to ret

    d_idx.resize(d_modVect.size());
    iota(d_idx.begin(), d_idx.end(), 0);           // fill the indices
}