COIN-OR::LEMON - Graph Library

Changeset 435:8f1dece01cc4 in lemon-0.x


Ignore:
Timestamp:
04/27/04 11:26:32 (16 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@583
Message:

misc

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/test/makefile

    r384 r435  
     1#CXX3 := $(shell type -p g++-3.4 || shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
    12CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
    23CXX2 = g++-2.95
  • src/work/marci/graph_wrapper.h

    r409 r435  
    10691069  };
    10701070
     1071  template<typename Graph>
     1072  class stGraphWrapper;
     1073
     1074//   template<typename Graph>
     1075//   std::ostream&
     1076//   operator<<(std::ostream& os, const typename stGraphWrapper<Graph>::Node& i) {
     1077//     os << "(node: " << typename Graph::Node(i) << " spec: " << i.spec <<")";
     1078//     return os;
     1079//   }
     1080//   template<typename Graph>
     1081//   std::ostream&
     1082//   operator<<(std::ostream& os, const typename stGraphWrapper<Graph>::Edge& i) {
     1083//     os << "(edge: " << typename Graph::Edge(i) << " spec: " << i.spec <<
     1084//       " node: " << i.n << ")";
     1085//     return os;
     1086//   }
    10711087
    10721088  /// experimentral, do not try it.
     
    11231139                                    T_NODE(INVALID, 2) { }
    11241140
     1141   
     1142//    std::ostream&
     1143//    operator<<(std::ostream& os, const /*typename stGraphWrapper<Graph>::*/Node& i);
     1144//    friend std::ostream&
     1145//    operator<<(std::ostream& os, const /*typename stGraphWrapper<Graph>::*/Node& i);
     1146//    friend std::ostream&
     1147//    operator<<(std::ostream& os, const /*typename stGraphWrapper<Graph>::*/Edge& i);
     1148
    11251149    class Node : public Graph::Node {
    11261150    protected:
     
    11481172                static_cast<typename Graph::Node>(v));
    11491173      }
    1150       friend std::ostream& operator<<(std::ostream& os, const Node& i);
     1174//      template<typename G>
     1175//      friend std::ostream&
     1176//      operator<<(std::ostream& os, const typename stGraphWrapper<G>::Node& i);
     1177      friend std::ostream& operator<< (std::ostream& os, const Node& i);
    11511178      int getSpec() const { return spec; }
    11521179    };
     
    11931220                u.n!=v.n);
    11941221      }
    1195       friend std::ostream& operator<<(std::ostream& os, const Edge& i);
     1222//      template<typename G>
     1223//      friend std::ostream&
     1224//      operator<<(std::ostream& os, const typename stGraphWrapper<G>::Edge& i);
     1225      friend std::ostream& operator<< (std::ostream& os, const Edge& i);
    11961226      int getSpec() const { return spec; }
    11971227    };
     
    16021632//     };
    16031633
    1604     friend std::ostream& operator<<(std::ostream& os, const Node& i) {
     1634//  template<typename G>
     1635    friend std::ostream&
     1636    operator<<(std::ostream& os, const /*typename stGraphWrapper<Graph>::*/Node& i) {
    16051637      os << "(node: " << typename Graph::Node(i) << " spec: " << i.spec <<")";
    16061638      return os;
    16071639    }
    1608     friend std::ostream& operator<<(std::ostream& os, const Edge& i) {
     1640//  template<typename G>
     1641    friend std::ostream&
     1642    operator<<(std::ostream& os, const /*typename stGraphWrapper<Graph>::*/Edge& i) {
    16091643      os << "(edge: " << typename Graph::Edge(i) << " spec: " << i.spec <<
    16101644        " node: " << i.n << ")";
Note: See TracChangeset for help on using the changeset viewer.