/*************************************************************************** dynamip_common.h - description ------------------- begin : Thu Sep 16 04:20:04 2004 copyright : (C) 2002 by Cavalli Andrea author : $Author$ date : $Date$ id : $Id$ email : cavalli@bioc.unizh.ch **************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef __DYNAMIP_COMMON__ #define __DYNAMIP_COMMON__ #include #include #include #include #include #include #include #include #include #include #include using namespace Almost; template inline string to_string(const DynaMIPOptions & opt){ stringstream s; s< struct OperatorHelperDynaMIPSolv; template struct OperatorHelperDynaMIPSolv { template static typename FF::FloatType helper(const DynaMIPOptionsType & data){ // cout<<"NO SOLV"< struct OperatorHelperDynaMIPSolv { template static typename FF::FloatType helper(const DynaMIPDataType & data){ // cout<<"SOLV"< struct OperatorHelperDynaMIPSolv { template static typename FF::FloatType helper(const DynaMIPDataType & data){ // cout<<"SOLV"< struct OperatorHelperDynaMIPUb; template<> struct OperatorHelperDynaMIPUb<0> { template static typename FF::FloatType helper(const DynaMIPDataRep & data){ // cout<<"NO UB"< struct OperatorHelperDynaMIPUb<1> { template static typename FF::FloatType helper(const DynaMIPDataRep & data){ // cout<<"UB"< struct OperatorHelperDynaMIPElec; template struct OperatorHelperDynaMIPElec { template static typename FF::FloatType helper(const DynaMIPOptionsType & data){ // cout<<"NO ELEC"< struct OperatorHelperDynaMIPElec { template static typename FF::FloatType helper(const DynaMIPDataType & data){ // cout<<"ELEC"< DynaLogStream & operator<<(DynaLogStream &log, const DynaMIPDataRep & data){ char buff[256]; string prmpt=Almost::DynaMIPStatPr; log.stream()<::helper(data), data.ff_data.vdw_energy, OperatorHelperDynaMIPSolv::helper(data), OperatorHelperDynaMIPUb::helper(data)); log.stream()< DynaDataStream & operator<<(DynaDataStream & dat, const DynaMIPDataRep & data){ dat.stream()<::helper(data)<<" " <::helper(data)<<" " <::helper(data)<<" " < inline string to_string(const Molecules & molecules){ return ""; } template<> inline string to_string(const MDB & mdb){ return ""; } #endif // Local Variables: // mode:C++ // End: