COIN-OR::LEMON - Graph Library

Changeset 1125:377e240b050f in lemon-0.x for src


Ignore:
Timestamp:
02/05/05 21:05:01 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1524
Message:

A new exception class called UninitializedParameter?.

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/error.h

    r1122 r1125  
    127127   * program runs (e.g., violations of class invariants).
    128128   *
    129    * For a typical example \see UninitializedParameterError.
     129   * A typical example for this is \ref UninitializedParameter.
    130130   */
    131131  class LogicError : public Exception {
     
    133133    virtual const char* exceptionName() const {
    134134      return "lemon::LogicError";
     135    }
     136  };
     137
     138  /**
     139   * \brief \ref Exception for uninitialized parameters.
     140   *
     141   * This error represents problems in the initialization
     142   * of the parameters of the algorithms.
     143   */
     144  class UninitializedParameter : public LogicError {
     145  public:
     146    virtual const char* exceptionName() const {
     147      return "lemon::UninitializedParameter";
    135148    }
    136149  };
  • src/work/alpar/dijkstra.h

    r1124 r1125  
    3131
    3232
    33   class UninitializedData : public LogicError {};
    34 
    35 
    3633/// \addtogroup flowalgs
    3734/// @{
     
    9188    typedef typename Graph::template NodeMap<typename GR::Node> PredNodeMap;
    9289    ///Instantiates a PredNodeMap.
    93  
     90    
    9491    ///This function instantiates a \ref PredNodeMap.
    9592    ///\param G is the graph, to which we would like to define the \ref PredNodeMap
     
    132129 
    133130  ///%Dijkstra algorithm class.
    134 
     131 
    135132  ///This class provides an efficient implementation of %Dijkstra algorithm.
    136133  ///The edge lengths are passed to the algorithm using a
     
    175172  class Dijkstra {
    176173  public:
    177     ///Exception thrown by dijkstra.
    178     class UninitializedData : public lemon::UninitializedData {};
     174    /**
     175     * \brief \ref Exception for uninitialized parameters.
     176     *
     177     * This error represents problems in the initialization
     178     * of the parameters of the algorithms.
     179     */
     180    class UninitializedParameter : public lemon::UninitializedParameter {
     181    public:
     182      virtual const char* exceptionName() const {
     183        return "lemon::Dijsktra::UninitializedParameter";
     184      }
     185    };
    179186
    180187    typedef TR Traits;
Note: See TracChangeset for help on using the changeset viewer.