Generated on for Gecode by doxygen 1.17.0
spec.cpp File Reference
#include <gecode/instance/impl.hpp>
#include <sys/stat.h>
#include <cctype>
#include <cerrno>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <locale>
#include <sstream>

Go to the source code of this file.

Namespaces

namespace  Gecode
 Gecode toplevel namespace
namespace  Gecode::Instance
 Reading instance files described by reader specs.

Functions

std::string Gecode::Instance::read_file (const std::string &path)
 Read file path into a string.
bool Gecode::Instance::parse_int (const std::string &t, long long int &v)
 Parse decimal integer t into v, and return whether it is one.
bool Gecode::Instance::parse_float (const std::string &t, double &v)
 Parse decimal float t into v, and return whether it is one.
void Gecode::Instance::fail_at (const std::string &origin, int line, const std::string &m)
 Throw an error with message m for line line of the spec from origin.
void Gecode::Instance::declared (const Block &b, Seq< Decl > &out)
 Add the names that block b may define to out.