19 #include "../utility/MathHelper.hpp" 24 int maxNeighbourCount)
32 std::vector<unsigned int> keys;
33 for (
unsigned int i = 0; i < numRelations; ++i)
43 std::vector<bool> from)
45 unsigned int numberRelations = from.size() + 1;
46 std::vector<std::vector<bool>> topologies;
52 std::vector<bool> vec(numAllRelations, 0);
53 for (
unsigned int i = 0; i < numberRelations; ++i) {
56 topologies.push_back(vec);
65 s <<
"TopologyGenerator is TopologyGeneratorNaive.cpp: " << std::endl
66 <<
"- Generates all possible relation topologies" << std::endl;
std::string getDescription()
std::map< std::string, unsigned int > mNumRelationsPerPattern
std::map< std::string, std::vector< unsigned int > > mKeysPerPattern
static bool getNextCombination(const std::vector< unsigned int >::iterator first, std::vector< unsigned int >::iterator k, const std::vector< unsigned int >::iterator last)
std::vector< std::vector< bool > > calculateNeighbours(const std::string &pattern, std::vector< bool > from)
this namespace contains all generally usable classes.
TopologyGeneratorNaive(const std::map< std::string, ISM::ObjectRelations > allObjectRelationsPerPattern, int maxNeighbourCount)