Ignore:
Timestamp:
Dec 2, 2010, 7:58:40 AM (12 years ago)
Author:
Peter
Message:

move most of SegmentSet? impl to a base class SegmentTree? and implement SegmentMap? as inherited from this baseclass, SegmentTree?. refs #640

File:
1 edited

Legend:

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

    r2357 r2358  
    190190  }
    191191
     192  /**
     193     \brief functor using compare
     194   */
     195  template<typename T, class Compare>
     196  struct SegmentCompare :
     197    public std::binary_function<Segment<T,Compare>, Segment<T,Compare>, bool>
     198  {
     199    /**
     200       \see compare(const Segment<T,Compare>&, const Segment<T,Compare>&)
     201     */
     202    bool operator()(const Segment<T, Compare>& lhs,
     203                    const Segment<T, Compare>& rhs) const
     204    { return compare(lhs, rhs); }
     205  };
     206
    192207}}}
    193208#endif
Note: See TracChangeset for help on using the changeset viewer.