|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60007 - in sandbox/statistics/detail/assign/boost/assign/auto_size: . array detail detail/policy
From: erwann.rogard_at_[hidden]
Date: 2010-02-28 19:27:36
Author: e_r
Date: 2010-02-28 19:27:35 EST (Sun, 28 Feb 2010)
New Revision: 60007
URL: http://svn.boost.org/trac/boost/changeset/60007
Log:
m
Added:
sandbox/statistics/detail/assign/boost/assign/auto_size/array/
Text files modified:
sandbox/statistics/detail/assign/boost/assign/auto_size/detail/array_interface.hpp | 4 ----
sandbox/statistics/detail/assign/boost/assign/auto_size/detail/array_wrapper.hpp | 2 +-
sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp | 5 +++--
sandbox/statistics/detail/assign/boost/assign/auto_size/detail/csv.hpp | 3 +--
sandbox/statistics/detail/assign/boost/assign/auto_size/detail/policy/array.hpp | 4 +---
sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of.hpp | 8 +++++---
sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of_csv.hpp | 3 +--
sandbox/statistics/detail/assign/boost/assign/auto_size/ref_rebind_list_of.hpp | 6 +++---
sandbox/statistics/detail/assign/boost/assign/auto_size/ref_rebind_list_of_csv.hpp | 3 +--
9 files changed, 16 insertions(+), 22 deletions(-)
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/array_interface.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/array_interface.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/array_interface.hpp 2010-02-28 19:27:35 EST (Sun, 28 Feb 2010)
@@ -24,9 +24,6 @@
typedef boost::array<typename Ref<T>::type,N> type;
};
- // Exposes the boost::array interface. The actual array is implemented in a
- // derived class, D
- //
// Requirements:
// D must implement:
// const ref_array_& ref_array_impl()const
@@ -123,7 +120,6 @@
}
void assign(const T& val,false_ /*copy semantics*/){
- // Force copy semantics. Suggested by M.P.G on Feb 28th, 2010.
return this->ref_array().assign(val);
}
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/array_wrapper.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/array_wrapper.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/array_wrapper.hpp 2010-02-28 19:27:35 EST (Sun, 28 Feb 2010)
@@ -17,7 +17,7 @@
namespace detail{
namespace auto_size{
- // This is needed for csv support.
+ // See csv.hpp
template<typename T,int N,template<typename> class Ref>
class array_wrapper
: public array_interface<T,N,Ref,array_wrapper<T,N,Ref> >
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp 2010-02-28 19:27:35 EST (Sun, 28 Feb 2010)
@@ -24,8 +24,9 @@
// Creates a collection of references.
//
// This approach improves upon ref_list_of<int>() by deducing the number of
-// arguments at compile time, and factors both the reference wrapper and the
-// container interface into templates, denoted Ref and P, respectively.
+// arguments at compile time, factor the reference wrapper into template, Ref,
+// and inherits from an arbitrary policy, P, usually intended to expose a
+// container interface.
//
// Note:
// In most situations, a reference wrapper that has copy rather than rebind
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/csv.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/csv.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/csv.hpp 2010-02-28 19:27:35 EST (Sun, 28 Feb 2010)
@@ -28,8 +28,7 @@
// BOOST_ASSIGN_CSV(fun) creates for i=2,...,n the following overloads:
// fun_csv(a1,..,.ai)
// cfun_csv(a1,..,.ai)
-// which return the same result as calling fun(a1)...(ai).wrapper(), and
-// cfun(a1)...(ai).wrapper(), of type w<T,i> and w<const T,i>, respectively.
+// which return instances of w<T,i> and w<const T,i>, respectively.
#ifndef BOOST_ASSIGN_CSV_SIZE
#define BOOST_ASSIGN_CSV_SIZE 20
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/policy/array.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/policy/array.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/policy/array.hpp 2010-02-28 19:27:35 EST (Sun, 28 Feb 2010)
@@ -32,9 +32,7 @@
namespace policy{
- // Used as a base of auto_size::expr, exposes the boost::array functionality
- // and a conversion operator suitable for data-structures that are
- // constructible from a pair of iterators.
+ // Policy for auto_size::expr that exposes an array interface
template<typename T,int N,template<typename> class Ref,typename D>
class array
: public array_interface<T,N,Ref,array<T,N,Ref,D> >
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of.hpp 2010-02-28 19:27:35 EST (Sun, 28 Feb 2010)
@@ -11,10 +11,12 @@
#include <boost/assign/auto_size/detail/auto_size.hpp>
#include <boost/assign/auto_size/detail/array_wrapper.hpp>
-// Creates a collection of references exposing the boost::array interface and
-// convertible to a range that is constructible from a pair of iterators. It can
-// be used either as the rhs or lhs of an assignment such as:
+// Creates a collection of references whose functionality is that of assign::
+// auto_size::detail::array_interface. It can be used either as the rhs or lhs
+// of an assignment such as:
// boost::fill(ref_list_of(a)(b)(c),0)
+//
+// The interface
namespace boost{
namespace assign{
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of_csv.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of_csv.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of_csv.hpp 2010-02-28 19:27:35 EST (Sun, 28 Feb 2010)
@@ -10,9 +10,8 @@
#define BOOST_ASSIGN_AUTO_SIZE_REF_LIST_OF_CSV_ER_2010_HPP
// Usage:
+// ref_list_of_csv(a,b,c);
// cref_list_of_csv(a,b,c);
-//
-// See ref_rebind_list_of.hpp
#define BOOST_ASSIGN_CSV_ref boost::assign::detail::auto_size::ref_copy
#include <boost/assign/auto_size/detail/csv.hpp>
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/ref_rebind_list_of.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/ref_rebind_list_of.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/ref_rebind_list_of.hpp 2010-02-28 19:27:35 EST (Sun, 28 Feb 2010)
@@ -10,9 +10,9 @@
#define BOOST_ASSIGN_AUTO_SIZE_REF_REBIND_LIST_OF_ER_2010_HPP
#include <boost/assign/auto_size/detail/auto_size.hpp>
-// Creates a collection of references exposing the boost::array interface and
-// convertible to a range that is constructible from a pair of iterators. Rebind
-// semantics apply if the collection is the lhs of an assignment:
+// Creates a collection of references whose functionality is that of assign::
+// auto_size::detail::array_interface. Rebind semantics apply if the collection
+// is the lhs of an assignment:
// cref_rebind_list_of(a)(b(c).assign(d)
// Unless this specific feature is needed, ref_list_of() is preferable.
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/ref_rebind_list_of_csv.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/ref_rebind_list_of_csv.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/ref_rebind_list_of_csv.hpp 2010-02-28 19:27:35 EST (Sun, 28 Feb 2010)
@@ -10,9 +10,8 @@
#define BOOST_ASSIGN_AUTO_SIZE_REF_REBIND_LIST_OF_CSV_ER_2010_HPP
// Usage:
+// ref_rebind_list_of_csv(a,b,c);
// cref_rebind_list_of_csv(a,b,c);
-//
-// See ref_list_of.hpp
#define BOOST_ASSIGN_CSV_ref boost::assign::detail::auto_size::ref_rebind
#include <boost/assign/auto_size/detail/csv.hpp>
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