instance.hh
Go to the documentation of this file.
502 Data read_text(const std::string& text, const std::string& origin = "<input>", const Params& p = Params()) const;
515 Data catalog_text(const std::string& text, const std::string& origin = "<input>", const Params& p = Params()) const;
Exception(const char *l, const char *i) noexcept
Initialize with location l and information i.
Definition exception.cpp:42
IntArgs ints(const std::string &n, const IntArgs &path=IntArgs()) const
Return all integers in the array or row n at path.
Definition data.cpp:405
int size(const std::string &n, const IntArgs &path=IntArgs()) const
Return the length of the array or row n at path.
Definition data.cpp:385
double number(const std::string &n, const IntArgs &path=IntArgs()) const
Return the number n at path (integers are converted).
Definition data.cpp:395
std::string text(const std::string &n, const IntArgs &path=IntArgs()) const
Return the string n at path.
Definition data.cpp:400
int depth(const std::string &n) const
Return the depth of entry n (0 for scalars).
Definition data.cpp:380
std::string name(int i) const
Return name of entry i, in the order they were defined.
Definition data.cpp:363
long long int integer(const std::string &n, const IntArgs &path=IntArgs()) const
Return the integer n at path.
Definition data.cpp:390
ArgArray< double > numbers(const std::string &n, const IntArgs &path=IntArgs()) const
Return all numbers in the array or row n at path.
Definition data.cpp:410
virtual const char * what(void) const noexcept override
Return the full message.
Definition data.cpp:56
bool get(const std::string &name, std::string &value) const
Return whether name is set, and if so store its value in value.
Definition data.cpp:95
void set(const std::string &name, const std::string &value)
Set parameter name to value.
Definition data.cpp:64
static Spec parse(const std::string &text, const std::string &origin="<spec>")
Parse spec text, using origin in error messages.
Definition spec.cpp:1268
Data read_text(const std::string &text, const std::string &origin="<input>", const Params &p=Params()) const
Read instance text, using origin in error messages.
Definition spec.cpp:1290
Data read(const std::string &path, const Params &p=Params()) const
Read instance file path.
Definition spec.cpp:1285
std::string name(void) const
Return the format name declared by the spec (may be empty).
Definition spec.cpp:1280
Data catalog(const std::string &path, const Params &p=Params()) const
List the instances in file path.
Definition spec.cpp:1295
Data catalog_text(const std::string &text, const std::string &origin="<input>", const Params &p=Params()) const
List the instances in text, using origin in error messages.
Definition spec.cpp:1300
Reading instance files described by reader specs.
Gecode toplevel namespace
void path(Home home, const IntVarArgs &x, IntVar s, IntVar e, IntPropLevel ipl=IPL_DEF)
Post propagator such that x forms a Hamiltonian path.
Definition circuit.cpp:169
