#include <AllPossibleSij.h>
Definition at line 16 of file AllPossibleSij.h.
◆ AllPossibleSij()
AllPossibleSij::AllPossibleSij |
( |
int |
nDaughters | ) |
|
|
inline |
Definition at line 21 of file AllPossibleSij.h.
24 std::vector<int> dummy;
27 this->insert(mapA.begin(), mapA.end());
bool nextLevel(namedVMap &nextMap)
std::map< std::string, std::vector< int > > namedVMap
◆ nextLevel()
bool AllPossibleSij::nextLevel |
( |
namedVMap & |
nextMap | ) |
|
|
private |
Definition at line 7 of file AllPossibleSij.cpp.
10 for(
int i=1; i<=
_nd; i++){
17 for(namedVMap::iterator it = thisMap.begin();
18 it != thisMap.end(); it++){
19 std::vector<int> v(it->second);
21 if(n >=
_nd -1)
return false;
24 else il = v[v.size()-1];
27 for(
int i=il+1; i<=
_nd; i++){
std::map< std::string, std::vector< int > > namedVMap
std::string anyVectorToString(const std::vector< T > &anyV)
◆ print()
void AllPossibleSij::print |
( |
std::ostream & |
os = std::cout | ) |
const |
Definition at line 36 of file AllPossibleSij.cpp.
38 os <<
" printing AllPossibleSij for n = " <<
_nd 40 for(namedVMap::const_iterator it = this->begin();
41 it != this->end(); it++, counter++){
42 if(counter > 0) os <<
", ";
◆ _nd
The documentation for this class was generated from the following files: