|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60813 - sandbox/statistics/detail/assign/boost/assign/auto_size/check
From: erwann.rogard_at_[hidden]
Date: 2010-03-24 16:29:28
Author: e_r
Date: 2010-03-24 16:29:28 EDT (Wed, 24 Mar 2010)
New Revision: 60813
URL: http://svn.boost.org/trac/boost/changeset/60813
Log:
m
Added:
sandbox/statistics/detail/assign/boost/assign/auto_size/check/chain_convert_l.hpp (contents, props changed)
sandbox/statistics/detail/assign/boost/assign/auto_size/check/chain_convert_r.hpp (contents, props changed)
Added: sandbox/statistics/detail/assign/boost/assign/auto_size/check/chain_convert_l.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/check/chain_convert_l.hpp 2010-03-24 16:29:28 EDT (Wed, 24 Mar 2010)
@@ -0,0 +1,71 @@
+//////////////////////////////////////////////////////////////////////////////
+// assign::detail::auto_size::check_chain_convert_l.hpp //
+// //
+// (C) Copyright 2010 Erwann Rogard //
+// Use, modification and distribution are subject to the //
+// Boost Software License, Version 1.0. (See accompanying file //
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_ASSIGN_DETAIL_AUTO_SIZE_CHECK_CHAIN_CONVERT_L_ER_2010_HPP
+#define BOOST_ASSIGN_DETAIL_AUTO_SIZE_CHECK_CHAIN_CONVERT_L_ER_2010_HPP
+#include <boost/array.hpp>
+#include <boost/typeof/typeof.hpp>
+#include <boost/range/algorithm/copy.hpp>
+#include <boost/assign/auto_size/range/chain_convert_l.hpp>
+#include <boost/assign/auto_size/check/iterator.hpp>
+#include <boost/assign/auto_size/check/constants.hpp>
+#include <boost/assign/auto_size/check/copy_iterator.hpp>
+
+#ifndef BOOST_ASSIGN_CHECK_EQUAL
+#error
+#endif
+
+#define BOOST_ASSIGN_AS_CHECK_chain_convert_l \
+{ \
+ typedef T val_; \
+ using namespace check_constants; \
+ boost::array<val_,8> ar; \
+ ar[0] = a; ar[1] = b; ar[2] = c; \
+ ar[3] = d; ar[4] = e; ar[5] = f; \
+ ar[6] = g; ar[7] = h; \
+ val_ a1 = a, b1 = b, c1 = c, \
+ d1 = d, e1 = e, f1 = f, \
+ g1 = g, h1 = h; \
+ typedef boost::array<T,2> ar2_; \
+ typedef boost::array<T,3> ar3_; \
+ ar3_ ar1, ar2; \
+ ar2_ ar3; \
+ ar1[0] = a1; ar1[1] = b1; ar1[2] = c1; \
+ ar2[0] = d1; ar2[1] = e1; ar2[2] = f1; \
+ ar3[0] = g1; ar3[1] = h1; \
+ BOOST_AUTO(tmp1,BOOST_ASSIGN_AS_CHECK_ref3(a1,b1,c1)); \
+ BOOST_AUTO(tmp2,BOOST_ASSIGN_AS_CHECK_ref3(d1,e1,f1)); \
+ BOOST_AUTO(tmp3,BOOST_ASSIGN_AS_CHECK_ref2(g1,h1)); \
+ boost::copy(ar, boost::begin(chain_convert_l(ar1)(ar2)(ar3))); \
+ check_values_impl( \
+ ar1[0],ar1[1],ar1[2],ar2[0],ar2[1],ar2[2],ar3[0],ar3[1]); \
+ boost::copy(ar, boost::begin(chain_convert_l(ar1)(ar2)(tmp3))); \
+ check_values_impl( \
+ ar1[0],ar1[1],ar1[2],ar2[0],ar2[1],ar2[2], g1 , h1 ); \
+ boost::copy(ar, boost::begin(chain_convert_l(ar1)(tmp2)(ar3))); \
+ check_values_impl( \
+ ar1[0],ar1[1],ar1[2], d1 , e1 , f1 ,ar3[0],ar3[1]); \
+ boost::copy(ar, boost::begin(chain_convert_l(ar1)(tmp2)(tmp3))); \
+ check_values_impl( \
+ ar1[0],ar1[1],ar1[2], d1 , e1 , f1 , g1 , h1 ); \
+ boost::copy(ar, boost::begin(chain_convert_l(tmp1)(ar2)(ar3))); \
+ check_values_impl( \
+ a1 , b1 , c1 ,ar2[0],ar2[1],ar2[2],ar3[0],ar3[1]); \
+ boost::copy(ar, boost::begin(chain_convert_l(tmp1)(ar2)(tmp3))); \
+ check_values_impl( \
+ a1 , b1 , c1 ,ar2[0],ar2[1],ar2[2], g1 , h1 ); \
+ boost::copy(ar, boost::begin(chain_convert_l(tmp1)(tmp2)(ar3))); \
+ check_values_impl( \
+ a1 , b1 , c1 , d1 , e1 , f1 ,ar3[0],ar3[1]); \
+ boost::copy(ar, boost::begin(chain_convert_l(tmp1)(tmp2)(tmp3))); \
+ check_values_impl( \
+ a1 , b1 , c1 , d1 , e1 , f1 , g1 , h1 ); \
+} \
+/**/
+
+#endif
Added: sandbox/statistics/detail/assign/boost/assign/auto_size/check/chain_convert_r.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/check/chain_convert_r.hpp 2010-03-24 16:29:28 EDT (Wed, 24 Mar 2010)
@@ -0,0 +1,52 @@
+//////////////////////////////////////////////////////////////////////////////
+// assign::detail::auto_size::check_convert_r.hpp //
+// //
+// (C) Copyright 2010 Erwann Rogard //
+// Use, modification and distribution are subject to the //
+// Boost Software License, Version 1.0. (See accompanying file //
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_ASSIGN_DETAIL_AUTO_SIZE_CHECK_CHAIN_CONVERT_R_ER_2010_HPP
+#define BOOST_ASSIGN_DETAIL_AUTO_SIZE_CHECK_CHAIN_CONVERT_R_ER_2010_HPP
+#include <boost/array.hpp>
+#include <boost/typeof/typeof.hpp>
+#include <boost/range/algorithm/copy.hpp>
+#include <boost/assign/auto_size/range/chain_convert_l.hpp>
+#include <boost/assign/auto_size/check/iterator.hpp>
+#include <boost/assign/auto_size/check/constants.hpp>
+#include <boost/assign/auto_size/check/copy_iterator.hpp>
+
+#ifndef BOOST_ASSIGN_CHECK_EQUAL
+#error
+#endif
+
+#define BOOST_ASSIGN_AS_CHECK_chain_convert_r \
+{ \
+ typedef T val_; \
+ using namespace check_constants; \
+ val_ a1 = a, b1 = b, c1 = c, \
+ d1 = d, e1 = e, f1 = f, \
+ g1 = g, h1 = h; \
+ typedef boost::array<T,2> ar2_; \
+ typedef boost::array<T,3> ar3_; \
+ ar3_ ar1, ar2; \
+ ar2_ ar3; \
+ ar1[0] = a1; ar1[1] = b1; ar1[2] = c1; \
+ ar2[0] = d1; ar2[1] = e1; ar2[2] = f1; \
+ ar3[0] = g1; ar3[1] = h1; \
+ BOOST_AUTO(tmp1,BOOST_ASSIGN_AS_CHECK_ref3(a1,b1,c1)); \
+ BOOST_AUTO(tmp2,BOOST_ASSIGN_AS_CHECK_ref3(d1,e1,f1)); \
+ BOOST_AUTO(tmp3,BOOST_ASSIGN_AS_CHECK_ref2(g1,h1)); \
+ check_iterator_impl( boost::begin( chain_convert_r(ar1)(ar2)(ar3) ) ); \
+ check_iterator_impl( boost::begin( chain_convert_r(ar1)(ar2)(tmp3) ) ); \
+ check_iterator_impl( boost::begin( chain_convert_r(ar1)(tmp2)(ar3) ) ); \
+ check_iterator_impl( boost::begin( chain_convert_r(ar1)(tmp2)(tmp3) ) ); \
+ check_iterator_impl( boost::begin( chain_convert_r(tmp1)(ar2)(ar3) ) ); \
+ check_iterator_impl( boost::begin( chain_convert_r(tmp1)(ar2)(tmp3) ) ); \
+ check_iterator_impl( boost::begin( chain_convert_r(tmp1)(tmp2)(ar3) ) ); \
+ check_iterator_impl( boost::begin( chain_convert_r(tmp1)(tmp2)(tmp3) ) ); \
+} \
+/**/
+
+#endif
+
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