void Manager::CreateInputPaths() { for (size_t pos = 0; pos < m_sentence.GetSize(); ++pos) { Phrase *phrase = new Phrase(1); phrase->Set(0, m_sentence.GetWord(pos)); InputPath *path = new InputPath(NULL, phrase, pos); m_inputPathQueue.push_back(path); CreateInputPaths(*path, pos + 1); } }