Ignore:
Timestamp:
Feb 13, 2008, 1:50:45 PM (14 years ago)
Author:
Peter
Message:

working on #247

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/IteratorPolicy.h

    r1080 r1082  
    3232     \brief Default policy for Iterator
    3333  */
    34   template<class Container, typename reference>
     34  template<class Container, typename reference, typename weight_t>
    3535  struct IteratorPolicy
    3636  {
     37    typedef reference data_type;
     38    typedef weight_t weight_type;
     39
     40    data_type data(const Container& c, size_t row, size_t column) const
     41    {
     42      return c(row, column);
     43    }
     44
    3745    reference dereference(const Container& c, size_t row, size_t column) const
    3846    {
    3947      return c(row, column);
    4048    }
     49
     50    weight_type weight(const Container& c, size_t row, size_t column) const
     51    {
     52      return 1.0;
     53    }
     54   
    4155  };
    4256}}} // of namespace utility, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.