Changeset 1706:163746ec3094 in lemon0.x
 Timestamp:
 10/05/05 15:19:30 (15 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2233
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/xy.h
r1588 r1706 365 365 class XMap 366 366 { 367 typename SmartReference<M>::Type_map;367 M& _map; 368 368 public: 369 typedef True NeedCopy;370 369 371 370 typedef typename M::Value::Value Value; 372 371 typedef typename M::Key Key; 373 372 ///\e 374 XMap( typename SmartParameter<M>::Typemap) : _map(map) {}373 XMap(M& map) : _map(map) {} 375 374 Value operator[](Key k) const {return _map[k].x;} 376 375 void set(Key k,Value v) {_map.set(k,typename M::Value(v,_map[k].y));} … … 402 401 class ConstXMap 403 402 { 404 typename SmartConstReference<M>::Type_map;403 const M& _map; 405 404 public: 406 typedef True NeedCopy;407 405 408 406 typedef typename M::Value::Value Value; … … 432 430 class YMap 433 431 { 434 typename SmartReference<M>::Type_map;432 M& _map; 435 433 public: 436 typedef True NeedCopy;437 434 438 435 typedef typename M::Value::Value Value; 439 436 typedef typename M::Key Key; 440 437 ///\e 441 YMap( typename SmartParameter<M>::Typemap) : _map(map) {}438 YMap(M& map) : _map(map) {} 442 439 Value operator[](Key k) const {return _map[k].y;} 443 440 void set(Key k,Value v) {_map.set(k,typename M::Value(_map[k].x,v));} … … 469 466 class ConstYMap 470 467 { 471 typename SmartConstReference<M>::Type_map;468 const M& _map; 472 469 public: 473 typedef True NeedCopy;474 470 475 471 typedef typename M::Value::Value Value; … … 501 497 class NormSquareMap 502 498 { 503 typename SmartConstReference<M>::Type_map;499 const M& _map; 504 500 public: 505 typedef True NeedCopy;506 501 507 502 typedef typename M::Value::Value Value;
Note: See TracChangeset
for help on using the changeset viewer.