Changeset 1855:c72636dcf0bd in lemon-0.x
- Timestamp:
- 12/07/05 16:43:44 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2423
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/graph-bench.cc
r1847 r1855 29 29 30 30 for(count=0;count<rat;count++) { 31 equ[count%rat]=G.addEdge(nodes[(count*p)%n],nodes[(count*p/n)%n]); 31 equ[int(count%rat)]=G.addEdge(nodes[int((count*p)%n)], 32 nodes[int((count*p/n)%n)]); 32 33 } 33 34 for(;(count%rat)||((count*p)%n)||((count*p/n)%n);count++) { 34 35 // if(!(count%1000000)) fprintf(stderr,"%d\r",count); 35 36 if(count%rat) G.erase(equ[count%rat]); 36 equ[count%rat]=G.addEdge(nodes[(count*p)%n],nodes[(count*p/n)%n]); 37 equ[int(count%rat)]=G.addEdge(nodes[int((count*p)%n)], 38 nodes[int((count*p/n)%n)]); 37 39 } 38 40 // std::cout << "Added " << count -
lemon/counter.h
r1851 r1855 72 72 73 73 _SubNoCounter(P &parent) :_parent(parent) {} 74 _SubNoCounter(P &parent,std::string title,std::ostream &os=std::cerr)74 _SubNoCounter(P &parent,std::string,std::ostream &) 75 75 :_parent(parent) {} 76 _SubNoCounter(P &parent,const char *title,std::ostream &os=std::cerr) 76 _SubNoCounter(P &parent,std::string) 77 :_parent(parent) {} 78 _SubNoCounter(P &parent,const char *,std::ostream &) 79 :_parent(parent) {} 80 _SubNoCounter(P &parent,const char *) 77 81 :_parent(parent) {} 78 82 ~_SubNoCounter() {} … … 83 87 _SubNoCounter &operator+=(int c) { _parent+=c; return *this;} 84 88 _SubNoCounter &operator-=(int c) { _parent-=c; return *this;} 85 void reset(int c=0) {} 89 void reset(int) {} 90 void reset() {} 86 91 operator int() {return 0;} 87 92 }; … … 155 160 156 161 NoCounter() {} 157 NoCounter(std::string title,std::ostream &os=std::cerr) {} 158 NoCounter(const char *title,std::ostream &os=std::cerr) {} 162 NoCounter(std::string,std::ostream &) {} 163 NoCounter(const char *,std::ostream &) {} 164 NoCounter(std::string) {} 165 NoCounter(const char *) {} 159 166 NoCounter &operator++() { return *this; } 160 167 int operator++(int) { return 0; } 161 168 NoCounter &operator--() { return *this; } 162 169 int operator--(int) { return 0; } 163 NoCounter &operator+=(int c) { return *this;} 164 NoCounter &operator-=(int c) { return *this;} 165 void reset(int c=0) {} 170 NoCounter &operator+=(int) { return *this;} 171 NoCounter &operator-=(int) { return *this;} 172 void reset(int) {} 173 void reset() {} 166 174 operator int() {return 0;} 167 175 }; -
lemon/lp_skeleton.cc
r1843 r1855 139 139 } 140 140 141 bool LpSkeleton::_isBasicCol(int i)141 bool LpSkeleton::_isBasicCol(int) 142 142 { 143 143 return true; -
lemon/time_measure.h
r1851 r1855 471 471 public: 472 472 ///\e 473 NoTimeReport(std::string title,std::ostream &os=std::cerr,bool run=true) {} 473 NoTimeReport(std::string,std::ostream &,bool) {} 474 ///\e 475 NoTimeReport(std::string,std::ostream &) {} 476 ///\e 477 NoTimeReport(std::string) {} 474 478 ///\e Do nothing. 475 479 ~NoTimeReport() {}
Note: See TracChangeset
for help on using the changeset viewer.