Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59853 - sandbox/itl/boost/itl
From: afojgo_at_[hidden]
Date: 2010-02-23 03:09:35


Author: jofaber
Date: 2010-02-23 03:09:31 EST (Tue, 23 Feb 2010)
New Revision: 59853
URL: http://svn.boost.org/trac/boost/changeset/59853

Log:
Replaced the CRTP-subtype expression in typedefs to make them shorter which helps the generated documentation.
Text files modified:
   sandbox/itl/boost/itl/interval_map.hpp | 4 ++--
   sandbox/itl/boost/itl/interval_set.hpp | 6 +++---
   sandbox/itl/boost/itl/separate_interval_set.hpp | 6 ++----
   sandbox/itl/boost/itl/split_interval_map.hpp | 2 +-
   sandbox/itl/boost/itl/split_interval_set.hpp | 5 ++---
   5 files changed, 10 insertions(+), 13 deletions(-)

Modified: sandbox/itl/boost/itl/interval_map.hpp
==============================================================================
--- sandbox/itl/boost/itl/interval_map.hpp (original)
+++ sandbox/itl/boost/itl/interval_map.hpp 2010-02-23 03:09:31 EST (Tue, 23 Feb 2010)
@@ -50,8 +50,8 @@
     typedef split_interval_map<DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc> split_type;
     typedef type overloadable_type;
     typedef type joint_type;
- typedef interval_base_map <interval_map<DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc>,
- DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc> base_type;
+ typedef interval_base_map<type,
+ DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc> base_type;
 
     typedef Interval<DomainT,Compare> interval_type;
     typedef typename base_type::iterator iterator;

Modified: sandbox/itl/boost/itl/interval_set.hpp
==============================================================================
--- sandbox/itl/boost/itl/interval_set.hpp (original)
+++ sandbox/itl/boost/itl/interval_set.hpp 2010-02-23 03:09:31 EST (Tue, 23 Feb 2010)
@@ -30,11 +30,11 @@
 {
 public:
 
+ typedef interval_set<DomainT,Compare,Interval,Alloc> type;
+
     /// The base_type of this class
- typedef interval_base_set<itl::interval_set<DomainT,Compare,Interval,Alloc>,
- DomainT,Compare,Interval,Alloc> base_type;
+ typedef interval_base_set<type,DomainT,Compare,Interval,Alloc> base_type;
 
- typedef interval_set<DomainT,Compare,Interval,Alloc> type;
     typedef type overloadable_type;
 
     typedef type joint_type;

Modified: sandbox/itl/boost/itl/separate_interval_set.hpp
==============================================================================
--- sandbox/itl/boost/itl/separate_interval_set.hpp (original)
+++ sandbox/itl/boost/itl/separate_interval_set.hpp 2010-02-23 03:09:31 EST (Tue, 23 Feb 2010)
@@ -28,12 +28,10 @@
                              DomainT,Compare,Interval,Alloc>
 {
 public:
- // inherit all typedefs
+ typedef separate_interval_set<DomainT,Compare,Interval,Alloc> type;
 
- typedef interval_base_set<itl::separate_interval_set<DomainT,Compare,Interval,Alloc>,
- DomainT,Compare,Interval,Alloc> base_type;
+ typedef interval_base_set<type,DomainT,Compare,Interval,Alloc> base_type;
 
- typedef separate_interval_set<DomainT,Compare,Interval,Alloc> type;
     typedef type overloadable_type;
 
     typedef interval_set<DomainT,Compare,Interval,Alloc> joint_type;

Modified: sandbox/itl/boost/itl/split_interval_map.hpp
==============================================================================
--- sandbox/itl/boost/itl/split_interval_map.hpp (original)
+++ sandbox/itl/boost/itl/split_interval_map.hpp 2010-02-23 03:09:31 EST (Tue, 23 Feb 2010)
@@ -45,7 +45,7 @@
     typedef interval_map<DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc> joint_type;
     typedef type overloadable_type;
 
- typedef interval_base_map <split_interval_map<DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc>,
+ typedef interval_base_map <type,
                                DomainT,CodomainT,Traits,Compare,Combine,Section,Interval,Alloc> base_type;
 
     typedef DomainT domain_type;

Modified: sandbox/itl/boost/itl/split_interval_set.hpp
==============================================================================
--- sandbox/itl/boost/itl/split_interval_set.hpp (original)
+++ sandbox/itl/boost/itl/split_interval_set.hpp 2010-02-23 03:09:31 EST (Tue, 23 Feb 2010)
@@ -29,10 +29,9 @@
                              DomainT,Compare,Interval,Alloc>
 {
 public:
- typedef interval_base_set<itl::split_interval_set<DomainT,Compare,Interval,Alloc>,
- DomainT,Compare,Interval,Alloc> base_type;
-
     typedef split_interval_set<DomainT,Compare,Interval,Alloc> type;
+ typedef interval_base_set<type,DomainT,Compare,Interval,Alloc> base_type;
+
     typedef interval_set<DomainT,Compare,Interval,Alloc> joint_type;
     typedef type overloadable_type;
 


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