Changes in / [48:93ae269876de:51:90201bb15a8d] in lemon-main
- Files:
-
- 8 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/base.cc
r7 r49 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 18 18 19 19 ///\file 20 ///\brief Some basic non inline functionand static global data.20 ///\brief Some basic non-inline functions and static global data. 21 21 22 22 #include<lemon/tolerance.h> -
lemon/bits/invalid.h
r13 r49 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 27 27 /// \brief Dummy type to make it easier to create invalid iterators. 28 28 /// 29 /// Dummy type to make it easier to create invalid iterators. 29 30 /// See \ref INVALID for the usage. 30 31 struct Invalid { -
lemon/bits/utility.h
r7 r39 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
lemon/concept_check.h
r27 r39 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
lemon/concepts/maps.h
r48 r51 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
lemon/dim2.h
r15 r49 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 28 28 /// 29 29 /// The class \ref lemon::dim2::Point "dim2::Point" implements 30 ///a two dimensional vector with the usual 31 /// operations. 30 /// a two dimensional vector with the usual operations. 32 31 /// 33 32 /// The class \ref lemon::dim2::BoundingBox "dim2::BoundingBox" … … 50 49 51 50 /// A simple two dimensional vector (plainvector) implementation 52 ///with the usual vector 53 /// operators. 54 /// 51 /// with the usual vector operations. 55 52 template<typename T> 56 53 class Point { … … 71 68 Point(T a, T b) : x(a), y(b) { } 72 69 73 /// The dimension of the vector.70 ///Returns the dimension of the vector (i.e. returns 2). 74 71 75 72 ///The dimension of the vector. … … 97 94 } 98 95 99 ///Increment the left hand side by u96 ///Increment the left hand side by \c u 100 97 Point<T>& operator +=(const Point<T>& u) { 101 98 x += u.x; … … 104 101 } 105 102 106 ///Decrement the left hand side by u103 ///Decrement the left hand side by \c u 107 104 Point<T>& operator -=(const Point<T>& u) { 108 105 x -= u.x; … … 316 313 ///if at least one point was added to the box or the coordinates of 317 314 ///the box were set). 315 /// 318 316 ///The coordinates of an empty bounding box are not defined. 319 317 bool empty() const { … … 326 324 } 327 325 328 ///Give back the bottom left corner 329 330 ///Give back the bottom left corner .326 ///Give back the bottom left corner of the box 327 328 ///Give back the bottom left corner of the box. 331 329 ///If the bounding box is empty, then the return value is not defined. 332 330 Point<T> bottomLeft() const { … … 334 332 } 335 333 336 ///Set the bottom left corner 337 338 ///Set the bottom left corner .334 ///Set the bottom left corner of the box 335 336 ///Set the bottom left corner of the box. 339 337 ///It should only be used for non-empty box. 340 338 void bottomLeft(Point<T> p) { … … 342 340 } 343 341 344 ///Give back the top right corner 345 346 ///Give back the top right corner .342 ///Give back the top right corner of the box 343 344 ///Give back the top right corner of the box. 347 345 ///If the bounding box is empty, then the return value is not defined. 348 346 Point<T> topRight() const { … … 350 348 } 351 349 352 ///Set the top right corner 353 354 ///Set the top right corner .350 ///Set the top right corner of the box 351 352 ///Set the top right corner of the box. 355 353 ///It should only be used for non-empty box. 356 354 void topRight(Point<T> p) { … … 358 356 } 359 357 360 ///Give back the bottom right corner 361 362 ///Give back the bottom right corner .358 ///Give back the bottom right corner of the box 359 360 ///Give back the bottom right corner of the box. 363 361 ///If the bounding box is empty, then the return value is not defined. 364 362 Point<T> bottomRight() const { … … 366 364 } 367 365 368 ///Set the bottom right corner 369 370 ///Set the bottom right corner .366 ///Set the bottom right corner of the box 367 368 ///Set the bottom right corner of the box. 371 369 ///It should only be used for non-empty box. 372 370 void bottomRight(Point<T> p) { … … 375 373 } 376 374 377 ///Give back the top left corner 378 379 ///Give back the top left corner .375 ///Give back the top left corner of the box 376 377 ///Give back the top left corner of the box. 380 378 ///If the bounding box is empty, then the return value is not defined. 381 379 Point<T> topLeft() const { … … 383 381 } 384 382 385 ///Set the top left corner 386 387 ///Set the top left corner .383 ///Set the top left corner of the box 384 385 ///Set the top left corner of the box. 388 386 ///It should only be used for non-empty box. 389 387 void topLeft(Point<T> p) { … … 669 667 670 668 671 ///\brief Map of the \ref Point::normSquare() "normSquare()" 672 ///of a \ref Point "Point"-map 673 /// 674 ///Map of the \ref Point::normSquare() "normSquare()" 675 ///of a \ref Point "Point"-map. 676 ///\ingroup maps 677 /// 669 ///\brief Map of the \ref Point::normSquare() "normSquare()" 670 ///of a \ref Point "Point"-map 671 /// 672 ///Map of the \ref Point::normSquare() "normSquare()" 673 ///of a \ref Point "Point"-map. 674 ///\ingroup maps 678 675 template<class M> 679 676 class NormSquareMap -
lemon/list_graph.h
r2 r39 1 /* -*- C++ -*- 2 * 3 * This file is a part of LEMON, a generic C++ optimization library 4 * 5 * Copyright (C) 2003-2008 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). 8 * 9 * Permission to use, modify and distribute this software is granted 10 * provided that this copyright notice appears in all copies. For 11 * precise terms see the accompanying LICENSE file. 12 * 13 * This software is provided "AS IS" with no warranty of any kind, 14 * express or implied, and with no claim as to its suitability for any 15 * purpose. 16 * 17 */ 18 -
lemon/maps.h
r47 r51 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 173 173 174 174 typedef MapBase<K, T> Parent; 175 /// \e176 typedef typename Parent::Key Key; 177 /// \e178 typedef typename Parent::Value Value; 179 /// \e175 ///Key type 176 typedef typename Parent::Key Key; 177 ///Value type 178 typedef typename Parent::Value Value; 179 ///Reference Type 180 180 typedef T& Reference; 181 /// \e181 ///Const reference type 182 182 typedef const T& ConstReference; 183 183 -
lemon/random.cc
r16 r39 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
lemon/random.h
r23 r49 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 511 511 ///\endcode 512 512 /// 513 /// The lemonprovides a global instance of the random number513 /// LEMON provides a global instance of the random number 514 514 /// generator which name is \ref lemon::rnd "rnd". Usually it is a 515 515 /// good programming convenience to use this global generator to get … … 527 527 public: 528 528 529 /// \brief Constructor529 /// \brief Default constructor 530 530 /// 531 531 /// Constructor with constant seeding. 532 532 Random() { core.initState(); } 533 533 534 /// \brief Constructor 534 /// \brief Constructor with seed 535 535 /// 536 536 /// Constructor with seed. The current number type will be converted … … 541 541 } 542 542 543 /// \brief Constructor 543 /// \brief Constructor with array seeding 544 544 /// 545 545 /// Constructor with array seeding. The given range should contain … … 578 578 /// 579 579 /// It returns a random real number from the range [0, 1). The 580 /// default Number type is double.580 /// default Number type is \c double. 581 581 template <typename Number> 582 582 Number real() { … … 654 654 /// 655 655 /// It returns a random non-negative integer uniformly from the 656 /// whole range of the current \c Number type. 657 /// type of this function is unsigned int.656 /// whole range of the current \c Number type. The default result 657 /// type of this function is <tt>unsigned int</tt>. 658 658 template <typename Number> 659 659 Number uinteger() { … … 669 669 /// It returns a random integer uniformly from the whole range of 670 670 /// the current \c Number type. The default result type of this 671 /// function is int.671 /// function is \c int. 672 672 template <typename Number> 673 673 Number integer() { … … 690 690 } 691 691 692 ///\name Non uniform distributions692 ///\name Non-uniform distributions 693 693 /// 694 694 -
lemon/tolerance.h
r16 r49 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 37 37 ///as a result of a probably inexact computation. 38 38 /// 39 /// Tolerance is a class to provide a basic way to39 ///\ref Tolerance is a class to provide a basic way to 40 40 ///handle the comparison of numbers that are obtained 41 41 ///as a result of a probably inexact computation. 42 42 /// 43 43 ///This is an abstract class, it should be specialized for all numerical 44 ///data types. These specialized classes like \ref Tolerance \<double\>44 ///data types. These specialized classes like \ref Tolerance<double> 45 45 ///may offer additional tuning parameters. 46 46 /// … … 49 49 ///\sa Tolerance<long double> 50 50 ///\sa Tolerance<int> 51 #if defined __GNUC__ && !defined __STRICT_ANSI__52 51 ///\sa Tolerance<long long int> 53 #endif54 52 ///\sa Tolerance<unsigned int> 55 #if defined __GNUC__ && !defined __STRICT_ANSI__56 53 ///\sa Tolerance<unsigned long long int> 57 #endif58 54 59 55 template<class T> … … 64 60 65 61 ///\name Comparisons 66 ///The concept is that these bool functions return with\c true only if62 ///The concept is that these bool functions return \c true only if 67 63 ///the related comparisons hold even if some numerical error appeared 68 64 ///during the computations. … … 92 88 93 89 94 ///Float specialization of \refTolerance.95 96 ///Float specialization of \refTolerance.90 ///Float specialization of Tolerance. 91 92 ///Float specialization of Tolerance. 97 93 ///\sa Tolerance 98 94 ///\relates Tolerance … … 108 104 ///Constructor setting the epsilon tolerance to the default value. 109 105 Tolerance() : _epsilon(def_epsilon) {} 110 ///Constructor setting the epsilon tolerance .106 ///Constructor setting the epsilon tolerance to the given value. 111 107 Tolerance(float e) : _epsilon(e) {} 112 108 113 ///Return the epsilon value.109 ///Returns the epsilon value. 114 110 Value epsilon() const {return _epsilon;} 115 ///Set the epsilon value.111 ///Sets the epsilon value. 116 112 void epsilon(Value e) {_epsilon=e;} 117 113 118 ///Return the default epsilon value.114 ///Returns the default epsilon value. 119 115 static Value defaultEpsilon() {return def_epsilon;} 120 ///Set the default epsilon value.116 ///Sets the default epsilon value. 121 117 static void defaultEpsilon(Value e) {def_epsilon=e;} 122 118 123 119 ///\name Comparisons 124 ///See classTolerance for more details.120 ///See \ref Tolerance for more details. 125 121 126 122 ///@{ … … 143 139 }; 144 140 145 ///Double specialization of \refTolerance.146 147 ///Double specialization of \refTolerance.141 ///Double specialization of Tolerance. 142 143 ///Double specialization of Tolerance. 148 144 ///\sa Tolerance 149 145 ///\relates Tolerance … … 159 155 ///Constructor setting the epsilon tolerance to the default value. 160 156 Tolerance() : _epsilon(def_epsilon) {} 161 ///Constructor setting the epsilon tolerance .157 ///Constructor setting the epsilon tolerance to the given value. 162 158 Tolerance(double e) : _epsilon(e) {} 163 159 164 ///Return the epsilon value.160 ///Returns the epsilon value. 165 161 Value epsilon() const {return _epsilon;} 166 ///Set the epsilon value.162 ///Sets the epsilon value. 167 163 void epsilon(Value e) {_epsilon=e;} 168 164 169 ///Return the default epsilon value.165 ///Returns the default epsilon value. 170 166 static Value defaultEpsilon() {return def_epsilon;} 171 ///Set the default epsilon value.167 ///Sets the default epsilon value. 172 168 static void defaultEpsilon(Value e) {def_epsilon=e;} 173 169 174 170 ///\name Comparisons 175 ///See classTolerance for more details.171 ///See \ref Tolerance for more details. 176 172 177 173 ///@{ … … 194 190 }; 195 191 196 ///Long double specialization of \refTolerance.197 198 ///Long double specialization of \refTolerance.192 ///Long double specialization of Tolerance. 193 194 ///Long double specialization of Tolerance. 199 195 ///\sa Tolerance 200 196 ///\relates Tolerance … … 210 206 ///Constructor setting the epsilon tolerance to the default value. 211 207 Tolerance() : _epsilon(def_epsilon) {} 212 ///Constructor setting the epsilon tolerance .208 ///Constructor setting the epsilon tolerance to the given value. 213 209 Tolerance(long double e) : _epsilon(e) {} 214 210 215 ///Return the epsilon value.211 ///Returns the epsilon value. 216 212 Value epsilon() const {return _epsilon;} 217 ///Set the epsilon value.213 ///Sets the epsilon value. 218 214 void epsilon(Value e) {_epsilon=e;} 219 215 220 ///Return the default epsilon value.216 ///Returns the default epsilon value. 221 217 static Value defaultEpsilon() {return def_epsilon;} 222 ///Set the default epsilon value.218 ///Sets the default epsilon value. 223 219 static void defaultEpsilon(Value e) {def_epsilon=e;} 224 220 225 221 ///\name Comparisons 226 ///See classTolerance for more details.222 ///See \ref Tolerance for more details. 227 223 228 224 ///@{ … … 245 241 }; 246 242 247 ///Integer specialization of \refTolerance.248 249 ///Integer specialization of \refTolerance.243 ///Integer specialization of Tolerance. 244 245 ///Integer specialization of Tolerance. 250 246 ///\sa Tolerance 251 247 template<> … … 278 274 }; 279 275 276 ///Unsigned integer specialization of Tolerance. 277 280 278 ///Unsigned integer specialization of \ref Tolerance. 281 282 ///Unsigned integer specialization of \ref Tolerance.283 279 ///\sa Tolerance 284 280 template<> … … 312 308 313 309 314 ///Long integer specialization of \refTolerance.315 316 ///Long integer specialization of \refTolerance.310 ///Long integer specialization of Tolerance. 311 312 ///Long integer specialization of Tolerance. 317 313 ///\sa Tolerance 318 314 template<> … … 345 341 }; 346 342 343 ///Unsigned long integer specialization of Tolerance. 344 347 345 ///Unsigned long integer specialization of \ref Tolerance. 348 349 ///Unsigned long integer specialization of \ref Tolerance.350 346 ///\sa Tolerance 351 347 template<> … … 380 376 #if defined __GNUC__ && !defined __STRICT_ANSI__ 381 377 382 ///Long long integer specialization of \refTolerance.378 ///Long long integer specialization of Tolerance. 383 379 384 380 ///Long long integer specialization of \ref Tolerance. … … 415 411 }; 416 412 417 ///Unsigned long long integer specialization of \refTolerance.413 ///Unsigned long long integer specialization of Tolerance. 418 414 419 415 ///Unsigned long long integer specialization of \ref Tolerance. -
test/dim_test.cc
r14 r39 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/maps_test.cc
r25 r39 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/random_test.cc
r10 r39 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/test_tools.h
r4 r39 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/test_tools_fail.cc
r4 r39 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/test_tools_pass.cc
r4 r39 3 3 * This file is a part of LEMON, a generic C++ optimization library 4 4 * 5 * Copyright (C) 2003-200 75 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
Note: See TracChangeset
for help on using the changeset viewer.