annotate DEPENDENCIES/generic/include/boost/graph/exception.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 //=======================================================================
Chris@16 2 // Copyright 2002 Indiana University.
Chris@16 3 // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
Chris@16 4 //
Chris@16 5 // Distributed under the Boost Software License, Version 1.0. (See
Chris@16 6 // accompanying file LICENSE_1_0.txt or copy at
Chris@16 7 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 8 //=======================================================================
Chris@16 9
Chris@16 10 #ifndef BOOST_GRAPH_EXCEPTION_HPP
Chris@16 11 #define BOOST_GRAPH_EXCEPTION_HPP
Chris@16 12
Chris@16 13 #include <stdexcept>
Chris@16 14 #include <string>
Chris@16 15
Chris@16 16 namespace boost {
Chris@16 17
Chris@16 18 struct bad_graph : public std::invalid_argument {
Chris@16 19 bad_graph(const std::string& what_arg)
Chris@16 20 : std::invalid_argument(what_arg) { }
Chris@16 21 };
Chris@16 22
Chris@16 23 struct not_a_dag : public bad_graph {
Chris@16 24 not_a_dag()
Chris@16 25 : bad_graph("The graph must be a DAG.")
Chris@16 26 { }
Chris@16 27 };
Chris@16 28
Chris@16 29 struct negative_edge : public bad_graph {
Chris@16 30 negative_edge()
Chris@16 31 : bad_graph("The graph may not contain an edge with negative weight.")
Chris@16 32 { }
Chris@16 33 };
Chris@16 34
Chris@16 35 struct negative_cycle : public bad_graph {
Chris@16 36 negative_cycle()
Chris@16 37 : bad_graph("The graph may not contain negative cycles.")
Chris@16 38 { }
Chris@16 39 };
Chris@16 40
Chris@16 41 struct not_connected : public bad_graph {
Chris@16 42 not_connected()
Chris@16 43 : bad_graph("The graph must be connected.")
Chris@16 44 { }
Chris@16 45 };
Chris@16 46
Chris@16 47 struct not_complete : public bad_graph {
Chris@16 48 not_complete()
Chris@16 49 : bad_graph("The graph must be complete.")
Chris@16 50 { }
Chris@16 51 };
Chris@16 52
Chris@16 53 } // namespace boost
Chris@16 54
Chris@16 55 #endif // BOOST_GRAPH_EXCEPTION_HPP