Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51465 - sandbox/itl/boost/itl
From: afojgo_at_[hidden]
Date: 2009-02-27 05:59:06


Author: jofaber
Date: 2009-02-27 05:59:05 EST (Fri, 27 Feb 2009)
New Revision: 51465
URL: http://svn.boost.org/trac/boost/changeset/51465

Log:
Refactored. Replaced IntervalMap template argument types by base class types.

Text files modified:
   sandbox/itl/boost/itl/interval_base_map.hpp | 28 +++++-----------------------
   1 files changed, 5 insertions(+), 23 deletions(-)

Modified: sandbox/itl/boost/itl/interval_base_map.hpp
==============================================================================
--- sandbox/itl/boost/itl/interval_base_map.hpp (original)
+++ sandbox/itl/boost/itl/interval_base_map.hpp 2009-02-27 05:59:05 EST (Fri, 27 Feb 2009)
@@ -506,17 +506,8 @@
 
     /** The intersection of \c *this and \c operand is erased from \c *this.
         The complemenary value pairs are added to \c *this. */
- template
- <
- template
- <
- class DomT, class CodomT, class Trts,
- ITL_COMPARE Comp, ITL_COMBINE Combi, ITL_SECTION Sect,
- template<class DomT2,ITL_COMPARE>class Interv, ITL_ALLOC Allc
- >
- class IntervalMap
- >
- SubType& flip(const IntervalMap<DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc>& operand);
+ template<class SubType2>
+ SubType& flip(const interval_base_map<SubType2,DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc>& operand);
 
 
     //==========================================================================
@@ -886,20 +877,11 @@
     ITL_COMPARE Compare, ITL_COMBINE Combine, ITL_SECTION Section,
     template<class,ITL_COMPARE>class Interval, ITL_ALLOC Alloc
>
- template
- <
- template
- <
- class DomT, class CodomT, class Trts,
- ITL_COMPARE Comp, ITL_COMBINE Combi, ITL_SECTION Sect,
- template<class DomT2,ITL_COMPARE>class Interv, ITL_ALLOC Allc
- >
- class IntervalMap
- >
+ template<class SubType2>
 SubType& interval_base_map<SubType,DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc>
- ::flip(const IntervalMap<DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc>& operand)
+ ::flip(const interval_base_map<SubType2,DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc>& operand)
 {
- typedef IntervalMap<DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc> operand_type;
+ typedef interval_base_map<SubType2,DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc> operand_type;
 
     if(Traits::is_total && Traits::absorbs_neutrons)
     {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk