#include <SatProblem.h>

It can transform variable name to its integral index and vice versa.
Definition at line 43 of file SatProblem.h.
Public Member Functions | |
| VariableContainer () | |
| ~VariableContainer () | |
| int | getLength () |
| |
| std::string | getVarName (int index) |
| Read name of variable on desired index. | |
| int | addVariable (std::string name) |
| Add variable to container, if it wasn't there before. | |
Classes | |
| struct | Private |
| ~VariableContainer | ( | ) |
Definition at line 218 of file SatProblem.cpp.
| int getLength | ( | ) |
Definition at line 221 of file SatProblem.cpp.
References VariableContainer::Private::currentIndex.
Referenced by SatProblem::getVarsCount(), and SatProblem::Private::parseFile().
| string getVarName | ( | int | index | ) |
Read name of variable on desired index.
| index | Index of variable should be in range <0, getLength()-1> |
Definition at line 224 of file SatProblem.cpp.
References VariableContainer::Private::indexToName.
Referenced by SatProblem::getVarName().
| int addVariable | ( | std::string | name | ) |
Add variable to container, if it wasn't there before.
| name | Name of variable to add. |
Definition at line 228 of file SatProblem.cpp.
References VariableContainer::Private::currentIndex, VariableContainer::Private::indexToName, and VariableContainer::Private::nameToIndex.
Referenced by ScannerStringHandler::readNext().
1.5.4