Changeset 987:87f7c54892df in lemon0.x for src/work/marci/bipartite_graph_wrapper.h
 Timestamp:
 11/13/04 18:07:10 (16 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@1377
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/work/marci/bipartite_graph_wrapper.h
r986 r987 795 795 template<typename NM> class NodeMapWrapper { 796 796 public: 797 typedef Node Key Type;798 typedef typename NM::Value Type ValueType;797 typedef Node Key; 798 typedef typename NM::Value Value; 799 799 protected: 800 800 NM* nm; 801 Value Type* s_value, t_value;802 public: 803 NodeMapWrapper(NM& _nm, Value Type& _s_value, ValueType& _t_value) :801 Value* s_value, t_value; 802 public: 803 NodeMapWrapper(NM& _nm, Value& _s_value, Value& _t_value) : 804 804 nm(&_nm), s_value(&_s_value), t_value(&_t_value) { } 805 Value Typeoperator[](const Node& n) const {805 Value operator[](const Node& n) const { 806 806 switch (n.getSpec()) { 807 807 case 0: … … 814 814 } 815 815 } 816 void set(const Node& n, Value Typet) {816 void set(const Node& n, Value t) { 817 817 switch (n.getSpec()) { 818 818 case 0: … … 874 874 class EdgeMapWrapper { 875 875 public: 876 typedef Edge Key Type;877 typedef typename EM::Value Type ValueType;876 typedef Edge Key; 877 typedef typename EM::Value Value; 878 878 protected: 879 879 EM* em; … … 881 881 public: 882 882 EdgeMapWrapper(EM& _em, NM& _nm) : em(&_em), nm(&_nm) { } 883 Value Typeoperator[](const Edge& e) const {883 Value operator[](const Edge& e) const { 884 884 switch (e.getSpec()) { 885 885 case 0: … … 892 892 } 893 893 } 894 void set(const Edge& e, Value Typet) {894 void set(const Edge& e, Value t) { 895 895 switch (e.getSpec()) { 896 896 case 0:
Note: See TracChangeset
for help on using the changeset viewer.