Changeset 916 for trunk/yat/utility/IteratorWeighted.h
- Timestamp:
- Sep 30, 2007, 2:50:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/IteratorWeighted.h
r909 r916 3 3 4 4 // $Id$ 5 6 #include "yat_assert.h" 5 7 6 8 #include <iterator> … … 41 43 \return element 42 44 */ 43 return_type operator*(void) const { return container_->operator()(index_); } 45 return_type operator*(void) const 46 { 47 yat_assert(index_<container_->size()); 48 return container_->operator()(index_); 49 } 44 50 45 51 /** 46 52 \return data 47 53 */ 48 return_type data(void) const { return container_->data(index_); } 54 return_type data(void) const 55 { yat_assert(index_<container_->size()); return container_->data(index_); } 49 56 50 57 /** 51 58 \return weight 52 59 */ 53 return_type weight(void) const { return container_->weight(index_); } 60 return_type weight(void) const 61 { yat_assert(index_<container_->size());return container_->weight(index_); } 54 62 55 63
Note: See TracChangeset
for help on using the changeset viewer.