# HG changeset patch # User ladanyi # Date 1203599193 0 # Node ID 979a0b389f84fe4b00406b7caee12edc4eac73ab # Parent 2c6204d4b0f63a723ac4d796421632c2f30fe6be Put the definitions of global functions into a .cc file. diff -r 2c6204d4b0f6 -r 979a0b389f84 lemon/Makefile.am --- a/lemon/Makefile.am Mon Feb 18 03:34:16 2008 +0000 +++ b/lemon/Makefile.am Thu Feb 21 13:06:33 2008 +0000 @@ -9,6 +9,7 @@ lemon_libemon_la_SOURCES = \ lemon/arg_parser.cc \ lemon/lp_base.cc \ + lemon/lp_utils.cc \ lemon/lp_skeleton.cc \ lemon/base.cc \ lemon/color.cc \ diff -r 2c6204d4b0f6 -r 979a0b389f84 lemon/lp_utils.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lemon/lp_utils.cc Thu Feb 21 13:06:33 2008 +0000 @@ -0,0 +1,35 @@ +/* -*- C++ -*- + * + * This file is a part of LEMON, a generic C++ optimization library + * + * Copyright (C) 2003-2008 + * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport + * (Egervary Research Group on Combinatorial Optimization, EGRES). + * + * Permission to use, modify and distribute this software is granted + * provided that this copyright notice appears in all copies. For + * precise terms see the accompanying LICENSE file. + * + * This software is provided "AS IS" with no warranty of any kind, + * express or implied, and with no claim as to its suitability for any + * purpose. + * + */ + +#include + +namespace lemon { + + LpResultMap lpResultMap(const LpSolverBase& lp) { + return LpResultMap(lp); + } + + LpColNameMap lpColNameMap(const LpSolverBase& lp) { + return LpColNameMap(lp); + } + + LpColNameWriteMap lpColNameMap(LpSolverBase& lp) { + return LpColNameWriteMap(lp); + } + +} diff -r 2c6204d4b0f6 -r 979a0b389f84 lemon/lp_utils.h --- a/lemon/lp_utils.h Mon Feb 18 03:34:16 2008 +0000 +++ b/lemon/lp_utils.h Thu Feb 21 13:06:33 2008 +0000 @@ -57,9 +57,7 @@ /// /// This function just returns an \ref LpResultMap class. /// \relates LpResultMap - LpResultMap lpResultMap(const LpSolverBase& lp) { - return LpResultMap(lp); - } + LpResultMap lpResultMap(const LpSolverBase& lp); /// \ingroup lp_utils /// @@ -112,13 +110,9 @@ /// /// This function just returns an \ref LpColNameMap class. /// \relates LpColNameMap - LpColNameMap lpColNameMap(const LpSolverBase& lp) { - return LpColNameMap(lp); - } + LpColNameMap lpColNameMap(const LpSolverBase& lp); - LpColNameWriteMap lpColNameMap(LpSolverBase& lp) { - return LpColNameWriteMap(lp); - } + LpColNameWriteMap lpColNameMap(LpSolverBase& lp); /// \ingroup lp_utils ///