candidate exclusion constraints reading structure
More...
#include <AdditionalConstraintsReader.h>
|
| AdditionalConstraintsReader (ProblemGenerationLog::ProblemGenerationLoggerSharedPointer logger) |
|
| AdditionalConstraintsReader (std::string const &constraints_file_path, ProblemGenerationLog::ProblemGenerationLoggerSharedPointer logger) |
| AdditionalConstraintsReader from an inifile.
|
|
std::map< std::string, std::string > const & | getVariablesSection () |
| return the section defining the binary variables to add
|
|
std::set< std::string > const & | getSections () const |
| returns the set of the names of sections defined in the file
|
|
std::map< std::string, std::string > const & | getSection (std::string const §ionName_p) const |
| returns a section
|
|
candidate exclusion constraints reading structure
◆ AdditionalConstraintsReader() [1/2]
AdditionalConstraintsReader::AdditionalConstraintsReader |
( |
ProblemGenerationLog::ProblemGenerationLoggerSharedPointer |
logger | ) |
|
|
inline |
◆ AdditionalConstraintsReader() [2/2]
AdditionalConstraintsReader::AdditionalConstraintsReader |
( |
std::string const & |
constraints_file_path, |
|
|
ProblemGenerationLog::ProblemGenerationLoggerSharedPointer |
logger |
|
) |
| |
|
explicit |
AdditionalConstraintsReader from an inifile.
- Parameters
-
constraints_file_path | String name of the file to use to read the additional constraints |
◆ getSection()
std::map< std::string, std::string > const & AdditionalConstraintsReader::getSection |
( |
std::string const & |
sectionName_p | ) |
const |
returns a section
- Parameters
-
sectionName_p | String name of the section to return |
- Exceptions
-
if | the section does not exist |
◆ getSections()
std::set< std::string > const & AdditionalConstraintsReader::getSections |
( |
| ) |
const |
returns the set of the names of sections defined in the file
- Parameters
-
constraints_file_path | String name of the file to use to read the additional constraints |
◆ illegal_chars
std::string AdditionalConstraintsReader::illegal_chars = " \n\r\t\f\v-+=:[]()" |
|
static |
characters to forbid in variables and constraints names
The documentation for this struct was generated from the following files: