lemon/base.cc
author deba
Tue, 31 Jan 2006 20:04:36 +0000
changeset 1933 a876a3d6a4c7
parent 1875 98698b69a902
child 1956 a055123339d5
permissions -rw-r--r--
Revising the bpugraph concept

We need a public but very limited ANode and BNode class
It can be used with ItemSetTraits and with some special maps

By example:
DescriptorMap<Graph, ANode>
InvertableMap<Graph, ANode, string>
IterableBoolMap<Graph, ANode>
IterableIntMap<Graph, ANode>
IterableValueMap<Graph, ANode, string>
alpar@1835
     1
/* -*- C++ -*-
alpar@1835
     2
 * lemon/base.cc - Part of LEMON, a generic C++ optimization library
alpar@1835
     3
 *
alpar@1875
     4
 * Copyright (C) 2006 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@1835
     5
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
alpar@1835
     6
 *
alpar@1835
     7
 * Permission to use, modify and distribute this software is granted
alpar@1835
     8
 * provided that this copyright notice appears in all copies. For
alpar@1835
     9
 * precise terms see the accompanying LICENSE file.
alpar@1835
    10
 *
alpar@1835
    11
 * This software is provided "AS IS" with no warranty of any kind,
alpar@1835
    12
 * express or implied, and with no claim as to its suitability for any
alpar@1835
    13
 * purpose.
alpar@1835
    14
 *
alpar@1835
    15
 */
alpar@1835
    16
alpar@1835
    17
///\file
alpar@1835
    18
///\brief Some basic non inline function and static global data.
alpar@1835
    19
alpar@1835
    20
#include<lemon/tolerance.h>
alpar@1835
    21
#include<lemon/invalid.h>
alpar@1835
    22
namespace lemon {
alpar@1835
    23
alpar@1897
    24
  float Tolerance<float>::def_epsilon = 1e-4;
alpar@1835
    25
  double Tolerance<double>::def_epsilon = 1e-10;
alpar@1897
    26
  long double Tolerance<long double>::def_epsilon = 1e-14;
alpar@1835
    27
alpar@1853
    28
#ifndef LEMON_ONLY_TEMPLATES
alpar@1836
    29
  const Invalid INVALID = Invalid();
alpar@1853
    30
#endif
alpar@1836
    31
alpar@1835
    32
} //namespace lemon