| 1 | 1 |
EXTRA_DIST += \ |
| 2 | 2 |
lemon/lemon.pc.in \ |
| 3 | 3 |
lemon/CMakeLists.txt |
| 4 | 4 |
|
| 5 | 5 |
pkgconfig_DATA += lemon/lemon.pc |
| 6 | 6 |
|
| 7 | 7 |
lib_LTLIBRARIES += lemon/libemon.la |
| 8 | 8 |
|
| 9 | 9 |
lemon_libemon_la_SOURCES = \ |
| 10 | 10 |
lemon/arg_parser.cc \ |
| 11 | 11 |
lemon/base.cc \ |
| 12 | 12 |
lemon/color.cc \ |
| 13 | 13 |
lemon/random.cc \ |
| 14 | 14 |
lemon/bits/windows.cc |
| 15 | 15 |
|
| 16 | 16 |
#lemon_libemon_la_CXXFLAGS = $(GLPK_CFLAGS) $(CPLEX_CFLAGS) $(SOPLEX_CXXFLAGS) |
| 17 | 17 |
#lemon_libemon_la_LDFLAGS = $(GLPK_LIBS) $(CPLEX_LIBS) $(SOPLEX_LIBS) |
| 18 | 18 |
|
| 19 |
nodist_lemon_HEADERS = lemon/config.h |
|
| 20 |
|
|
| 19 | 21 |
lemon_HEADERS += \ |
| 20 | 22 |
lemon/arg_parser.h \ |
| 21 | 23 |
lemon/assert.h \ |
| 22 | 24 |
lemon/bfs.h \ |
| 23 | 25 |
lemon/bin_heap.h \ |
| 24 | 26 |
lemon/color.h \ |
| 25 | 27 |
lemon/concept_check.h \ |
| 26 |
lemon/config.h \ |
|
| 27 | 28 |
lemon/counter.h \ |
| 28 | 29 |
lemon/core.h \ |
| 29 | 30 |
lemon/dfs.h \ |
| 30 | 31 |
lemon/dijkstra.h \ |
| 31 | 32 |
lemon/dim2.h \ |
| 32 | 33 |
lemon/error.h \ |
| 33 | 34 |
lemon/graph_to_eps.h \ |
| 34 | 35 |
lemon/kruskal.h \ |
| 35 | 36 |
lemon/lgf_reader.h \ |
| 36 | 37 |
lemon/lgf_writer.h \ |
| 37 | 38 |
lemon/list_graph.h \ |
| 38 | 39 |
lemon/maps.h \ |
| 39 | 40 |
lemon/math.h \ |
| 40 | 41 |
lemon/path.h \ |
| 41 | 42 |
lemon/random.h \ |
| 42 | 43 |
lemon/smart_graph.h \ |
| 43 | 44 |
lemon/time_measure.h \ |
| 44 | 45 |
lemon/tolerance.h \ |
| 45 | 46 |
lemon/unionfind.h \ |
| 46 | 47 |
lemon/bits/windows.h |
| 47 | 48 |
|
| 48 | 49 |
bits_HEADERS += \ |
| 49 | 50 |
lemon/bits/alteration_notifier.h \ |
| 50 | 51 |
lemon/bits/array_map.h \ |
| 1 | 1 |
/* -*- mode: C++; indent-tabs-mode: nil; -*- |
| 2 | 2 |
* |
| 3 | 3 |
* This file is a part of LEMON, a generic C++ optimization library. |
| 4 | 4 |
* |
| 5 | 5 |
* Copyright (C) 2003-2008 |
| 6 | 6 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
| 7 | 7 |
* (Egervary Research Group on Combinatorial Optimization, EGRES). |
| 8 | 8 |
* |
| 9 | 9 |
* Permission to use, modify and distribute this software is granted |
| 10 | 10 |
* provided that this copyright notice appears in all copies. For |
| 11 | 11 |
* precise terms see the accompanying LICENSE file. |
| 12 | 12 |
* |
| 13 | 13 |
* This software is provided "AS IS" with no warranty of any kind, |
| 14 | 14 |
* express or implied, and with no claim as to its suitability for any |
| 15 | 15 |
* purpose. |
| 16 | 16 |
* |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 | 19 |
#ifndef LEMON_CORE_H |
| 20 | 20 |
#define LEMON_CORE_H |
| 21 | 21 |
|
| 22 | 22 |
#include <vector> |
| 23 | 23 |
#include <algorithm> |
| 24 | 24 |
|
| 25 |
#include <lemon/ |
|
| 25 |
#include <lemon/config.h> |
|
| 26 | 26 |
#include <lemon/bits/enable_if.h> |
| 27 | 27 |
#include <lemon/bits/traits.h> |
| 28 | 28 |
#include <lemon/assert.h> |
| 29 | 29 |
|
| 30 | 30 |
///\file |
| 31 | 31 |
///\brief LEMON core utilities. |
| 32 | 32 |
/// |
| 33 | 33 |
///This header file contains core utilities for LEMON. |
| 34 | 34 |
///It is automatically included by all graph types, therefore it usually |
| 35 | 35 |
///do not have to be included directly. |
| 36 | 36 |
|
| 37 | 37 |
namespace lemon {
|
| 38 | 38 |
|
| 39 | 39 |
/// \brief Dummy type to make it easier to create invalid iterators. |
| 40 | 40 |
/// |
| 41 | 41 |
/// Dummy type to make it easier to create invalid iterators. |
| 42 | 42 |
/// See \ref INVALID for the usage. |
| 43 | 43 |
struct Invalid {
|
| 44 | 44 |
public: |
| 45 | 45 |
bool operator==(Invalid) { return true; }
|
| 46 | 46 |
bool operator!=(Invalid) { return false; }
|
| 47 | 47 |
bool operator< (Invalid) { return false; }
|
| 48 | 48 |
}; |
| 49 | 49 |
|
0 comments (0 inline)