MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / visit

Function visit

src/ImathTest/testBox.cpp:48–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47template <class T>
48static void
49visit (int& level, int n, int k, std::vector<int>& value, std::vector<T>& perms)
50{
51 level = level + 1;
52 value[k] = level;
53
54 if (level == n)
55 addItem (value, perms);
56 else
57 for (int i = 0; i < n; i++)
58 if (value[i] == 0) visit (level, n, i, value, perms);
59
60 level = level - 1;
61 value[k] = 0;
62}
63
64template <class T>
65static void

Callers 1

permutationsFunction · 0.85

Calls 1

addItemFunction · 0.85

Tested by

no test coverage detected