Put the definitions of global functions into a .cc file.
authorladanyi
Thu, 21 Feb 2008 13:06:33 +0000
changeset 2578979a0b389f84
parent 2577 2c6204d4b0f6
child 2579 691ce54544c5
Put the definitions of global functions into a .cc file.
lemon/Makefile.am
lemon/lp_utils.cc
lemon/lp_utils.h
     1.1 --- a/lemon/Makefile.am	Mon Feb 18 03:34:16 2008 +0000
     1.2 +++ b/lemon/Makefile.am	Thu Feb 21 13:06:33 2008 +0000
     1.3 @@ -9,6 +9,7 @@
     1.4  lemon_libemon_la_SOURCES = \
     1.5  	lemon/arg_parser.cc \
     1.6  	lemon/lp_base.cc \
     1.7 +	lemon/lp_utils.cc \
     1.8  	lemon/lp_skeleton.cc \
     1.9  	lemon/base.cc \
    1.10  	lemon/color.cc \
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/lemon/lp_utils.cc	Thu Feb 21 13:06:33 2008 +0000
     2.3 @@ -0,0 +1,35 @@
     2.4 +/* -*- C++ -*-
     2.5 + *
     2.6 + * This file is a part of LEMON, a generic C++ optimization library
     2.7 + *
     2.8 + * Copyright (C) 2003-2008
     2.9 + * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    2.10 + * (Egervary Research Group on Combinatorial Optimization, EGRES).
    2.11 + *
    2.12 + * Permission to use, modify and distribute this software is granted
    2.13 + * provided that this copyright notice appears in all copies. For
    2.14 + * precise terms see the accompanying LICENSE file.
    2.15 + *
    2.16 + * This software is provided "AS IS" with no warranty of any kind,
    2.17 + * express or implied, and with no claim as to its suitability for any
    2.18 + * purpose.
    2.19 + *
    2.20 + */
    2.21 +
    2.22 +#include <lemon/lp_utils.h>
    2.23 +
    2.24 +namespace lemon {
    2.25 +
    2.26 +  LpResultMap lpResultMap(const LpSolverBase& lp) {
    2.27 +    return LpResultMap(lp);
    2.28 +  }
    2.29 +
    2.30 +  LpColNameMap lpColNameMap(const LpSolverBase& lp) {
    2.31 +    return LpColNameMap(lp);
    2.32 +  }
    2.33 +
    2.34 +  LpColNameWriteMap lpColNameMap(LpSolverBase& lp) {
    2.35 +    return LpColNameWriteMap(lp);
    2.36 +  }
    2.37 +
    2.38 +}
     3.1 --- a/lemon/lp_utils.h	Mon Feb 18 03:34:16 2008 +0000
     3.2 +++ b/lemon/lp_utils.h	Thu Feb 21 13:06:33 2008 +0000
     3.3 @@ -57,9 +57,7 @@
     3.4    ///
     3.5    /// This function just returns an \ref LpResultMap class.
     3.6    /// \relates LpResultMap
     3.7 -  LpResultMap lpResultMap(const LpSolverBase& lp) {
     3.8 -    return LpResultMap(lp);
     3.9 -  }
    3.10 +  LpResultMap lpResultMap(const LpSolverBase& lp);
    3.11  
    3.12    /// \ingroup lp_utils
    3.13    ///
    3.14 @@ -112,13 +110,9 @@
    3.15    ///
    3.16    /// This function just returns an \ref LpColNameMap class.
    3.17    /// \relates LpColNameMap
    3.18 -  LpColNameMap lpColNameMap(const LpSolverBase& lp) {
    3.19 -    return LpColNameMap(lp);
    3.20 -  }
    3.21 +  LpColNameMap lpColNameMap(const LpSolverBase& lp);
    3.22  
    3.23 -  LpColNameWriteMap lpColNameMap(LpSolverBase& lp) {
    3.24 -    return LpColNameWriteMap(lp);
    3.25 -  }
    3.26 +  LpColNameWriteMap lpColNameMap(LpSolverBase& lp);
    3.27  
    3.28    /// \ingroup lp_utils
    3.29    ///