Adaptagrams
libvpsc
exceptions.h
1
/*
2
* vim: ts=4 sw=4 et tw=0 wm=0
3
*
4
* libvpsc - A solver for the problem of Variable Placement with
5
* Separation Constraints.
6
*
7
* Copyright (C) 2005-2008 Monash University
8
*
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Lesser General Public
11
* License as published by the Free Software Foundation; either
12
* version 2.1 of the License, or (at your option) any later version.
13
* See the file LICENSE.LGPL distributed with the library.
14
*
15
* This library is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
*
19
*/
20
21
#ifndef VPSC_EXCEPTIONS_H
22
#define VPSC_EXCEPTIONS_H
23
24
#include <vector>
25
namespace
vpsc
{
26
class
Constraint;
27
struct
UnsatisfiableException {
28
std::vector<Constraint*> path;
29
};
30
struct
UnsatisfiedConstraint {
31
UnsatisfiedConstraint(Constraint& c):c(c) {}
32
Constraint& c;
33
};
34
}
// namespace vpsc
35
36
#endif // VPSC_EXCEPTIONS_H
vpsc
libvpsc: Variable Placement with Separation Constraints quadratic program solver library.
Definition:
assertions.h:61
Generated on Thu Jan 17 2019 14:55:39 for Adaptagrams by
1.8.14