this repo has no description
1/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
3/*
4 * Main authors:
5 * Guido Tack <guido.tack@monash.edu>
6 */
7
8/* This Source Code Form is subject to the terms of the Mozilla Public
9 * License, v. 2.0. If a copy of the MPL was not distributed with this
10 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
11
12#include <minizinc/values.hh>
13
14#include <climits>
15
16namespace MiniZinc {
17
18const IntVal IntVal::minint(void) { return IntVal(std::numeric_limits<long long int>::min()); }
19const IntVal IntVal::maxint(void) { return IntVal(std::numeric_limits<long long int>::max()); }
20const IntVal IntVal::infinity(void) { return IntVal(1, true); }
21
22IntSetVal::IntSetVal(IntVal m, IntVal n) : ASTChunk(sizeof(Range)) {
23 get(0).min = m;
24 get(0).max = n;
25}
26
27FloatSetVal::FloatSetVal(FloatVal m, FloatVal n) : ASTChunk(sizeof(Range)) {
28 get(0).min = m;
29 get(0).max = n;
30}
31
32const FloatVal FloatVal::infinity(void) { return FloatVal(1.0, true); }
33
34} // namespace MiniZinc