|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67799 - in sandbox/statistics/support/libs/assign/v2: example src test/anon test/chain test/detail test/put test/put/compose/common test/put/compose/csv test/put/compose/functor test/put_range test/ref test/type_traits test/unit_testing
From: erwann.rogard_at_[hidden]
Date: 2011-01-08 17:48:53
Author: e_r
Date: 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
New Revision: 67799
URL: http://svn.boost.org/trac/boost/changeset/67799
Log:
libs/assign/v2 update
Text files modified:
sandbox/statistics/support/libs/assign/v2/example/anon.cpp | 43 --------
sandbox/statistics/support/libs/assign/v2/example/anon.h | 23 ----
sandbox/statistics/support/libs/assign/v2/example/chain.cpp | 44 ++++----
sandbox/statistics/support/libs/assign/v2/example/constants.h | 36 ------
sandbox/statistics/support/libs/assign/v2/example/conversion.cpp | 44 --------
sandbox/statistics/support/libs/assign/v2/example/conversion.h | 23 ----
sandbox/statistics/support/libs/assign/v2/example/foo.cpp | 24 +---
sandbox/statistics/support/libs/assign/v2/example/foo.h | 42 ++-----
sandbox/statistics/support/libs/assign/v2/example/fusion.cpp | 44 --------
sandbox/statistics/support/libs/assign/v2/example/fusion.h | 23 ----
sandbox/statistics/support/libs/assign/v2/example/include.h | 17 +++
sandbox/statistics/support/libs/assign/v2/example/put_adaptor.cpp | 209 ---------------------------------------
sandbox/statistics/support/libs/assign/v2/example/put_adaptor.h | 23 ----
sandbox/statistics/support/libs/assign/v2/example/put_range.cpp | 38 -------
sandbox/statistics/support/libs/assign/v2/example/put_range.h | 23 ----
sandbox/statistics/support/libs/assign/v2/example/ref_anon.cpp | 72 -------------
sandbox/statistics/support/libs/assign/v2/example/ref_anon.h | 23 ----
sandbox/statistics/support/libs/assign/v2/src/main.cpp | 129 +++++-------------------
sandbox/statistics/support/libs/assign/v2/test/anon/anon.cpp | 101 -------------------
sandbox/statistics/support/libs/assign/v2/test/anon/anon.h | 24 ----
sandbox/statistics/support/libs/assign/v2/test/chain/chain.cpp | 31 -----
sandbox/statistics/support/libs/assign/v2/test/chain/chain.h | 24 ----
sandbox/statistics/support/libs/assign/v2/test/chain/convert.cpp | 93 -----------------
sandbox/statistics/support/libs/assign/v2/test/chain/convert.h | 24 ----
sandbox/statistics/support/libs/assign/v2/test/detail/functor.cpp | 151 ----------------------------
sandbox/statistics/support/libs/assign/v2/test/detail/functor.h | 24 ----
sandbox/statistics/support/libs/assign/v2/test/put/compose/common/forward_parameter.cpp | 60 -----------
sandbox/statistics/support/libs/assign/v2/test/put/compose/common/forward_parameter.h | 28 -----
sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/composer.cpp | 63 -----------
sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/composer.h | 28 -----
sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/stl.cpp | 137 --------------------------
sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/stl.h | 28 -----
sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/composer.cpp | 105 -------------------
sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/composer.h | 28 -----
sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_args.cpp | 89 ----------------
sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_args.h | 28 -----
sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_seq_args.cpp | 65 ------------
sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_seq_args.h | 28 -----
sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/stl.cpp | 152 ----------------------------
sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/stl.h | 28 -----
sandbox/statistics/support/libs/assign/v2/test/put/modulo_op.cpp | 56 ----------
sandbox/statistics/support/libs/assign/v2/test/put/modulo_op.h | 24 ----
sandbox/statistics/support/libs/assign/v2/test/put/ptr.cpp | 4
sandbox/statistics/support/libs/assign/v2/test/put/ptr.h | 4
sandbox/statistics/support/libs/assign/v2/test/put/static.cpp | 54 +++------
sandbox/statistics/support/libs/assign/v2/test/put/static.h | 4
sandbox/statistics/support/libs/assign/v2/test/put/stl.h | 4
sandbox/statistics/support/libs/assign/v2/test/put/tuple_refs.cpp | 16 +-
sandbox/statistics/support/libs/assign/v2/test/put/tuple_refs.h | 4
sandbox/statistics/support/libs/assign/v2/test/put_range/convert.cpp | 80 ---------------
sandbox/statistics/support/libs/assign/v2/test/put_range/convert.h | 24 ----
sandbox/statistics/support/libs/assign/v2/test/ref/anon.cpp | 165 -------------------------------
sandbox/statistics/support/libs/assign/v2/test/ref/anon.h | 25 ----
sandbox/statistics/support/libs/assign/v2/test/ref/convert_traits.cpp | 3
sandbox/statistics/support/libs/assign/v2/test/ref/convert_traits.h | 4
sandbox/statistics/support/libs/assign/v2/test/ref/csv_anon.cpp | 107 --------------------
sandbox/statistics/support/libs/assign/v2/test/ref/csv_anon.h | 25 ----
sandbox/statistics/support/libs/assign/v2/test/ref/fusion.cpp | 91 +++++++---------
sandbox/statistics/support/libs/assign/v2/test/ref/fusion_matrix.cpp | 131 ------------------------
sandbox/statistics/support/libs/assign/v2/test/ref/fusion_matrix.h | 24 ----
sandbox/statistics/support/libs/assign/v2/test/ref/wrapper.cpp | 26 +---
sandbox/statistics/support/libs/assign/v2/test/ref/wrapper.h | 4
sandbox/statistics/support/libs/assign/v2/test/type_traits/has_push.cpp | 19 +--
sandbox/statistics/support/libs/assign/v2/test/type_traits/has_static_size.cpp | 18 +-
sandbox/statistics/support/libs/assign/v2/test/type_traits/has_value_type.cpp | 7
sandbox/statistics/support/libs/assign/v2/test/unit_testing/Jamfile.v2 | 3
sandbox/statistics/support/libs/assign/v2/test/unit_testing/anon.cpp | 33 ------
sandbox/statistics/support/libs/assign/v2/test/unit_testing/chain.cpp | 12 -
sandbox/statistics/support/libs/assign/v2/test/unit_testing/detail.cpp | 7
sandbox/statistics/support/libs/assign/v2/test/unit_testing/put.cpp | 36 ++++-
sandbox/statistics/support/libs/assign/v2/test/unit_testing/put_compose.cpp | 54 ----------
sandbox/statistics/support/libs/assign/v2/test/unit_testing/put_range.cpp | 33 ------
sandbox/statistics/support/libs/assign/v2/test/unit_testing/ref.cpp | 14 +-
sandbox/statistics/support/libs/assign/v2/test/unit_testing/type_traits.cpp | 2
74 files changed, 285 insertions(+), 3051 deletions(-)
Modified: sandbox/statistics/support/libs/assign/v2/example/anon.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/anon.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/anon.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,42 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/foo.h>
-#include <libs/assign/v2/example/constants.h>
-#include <libs/assign/v2/example/anon.h>
-
-namespace example_assign_v2{
-namespace xxx_anon{
-
- void run(std::ostream& os)
- {
- using namespace boost::assign::v2;
- os << "* xxx_anon " << std::endl;
- {
- os << "csv_anon" << ' ';
- //[csv_anon
- boost::for_each( csv_anon<T>( x, y ,z ), printer(os) );
- // outputs (1,0)(NULL,0)(1,5)
- //]
- os << std::endl;
- os << "anon" << ' ';
- //[anon
- boost::for_each(
- (anon<T>( _nil ) % _push_front)( a )()( a, b ),
- printer(os)
- );
- // outputs (1,5)(NULL,0)(1,0)
- //]
- }
- os << std::endl;
- }
-
-}// xxx_anon
-}// example_assign_v2
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/example/anon.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/anon.h (original)
+++ sandbox/statistics/support/libs/assign/v2/example/anon.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,22 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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_V2_EXAMPLE_ANON_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_ANON_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_anon{
-
- void run(std::ostream& os);
-
-}// xxx_anon
-}// example_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/example/chain.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/chain.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/chain.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -10,9 +10,9 @@
#include <vector>
#include <list>
#include <boost/array.hpp>
+#include <boost/assign/v2/chain.hpp>
+#include <boost/assign/v2/put/deque.hpp>
#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/foo.h>
-#include <libs/assign/v2/example/constants.h>
#include <libs/assign/v2/example/chain.h>
namespace example_assign_v2{
@@ -20,37 +20,37 @@
void run(std::ostream& os)
{
- using namespace boost::assign::v2;
os << "* xxx_chain" << std::endl;
{
- os << "chain_read";
- //[chain_read
- typedef boost::array<T, 1> cont1_; cont1_ cont1; cont1[0] = x;
- typedef std::list<T> cont3_; cont3_ cont3; cont3.push_back( z );
- using namespace adaptor;
- namespace ns = ref::assign_copy;
+ os << "chain_read ";
+ //[chain_r
+ boost::array<int, 2> ar; ar[0] = 0; ar[1] = 1;
+ std::list<int> list( 1, 2 );
+ std::vector<int> vec( 2 ); vec[0] = 3; vec[1] = 4;
boost::for_each(
- cont1 | _chain( ns::csv_anon( y ) ) | _chain( cont3 ),
- printer( os )
+ ar | as2::_chain( list ) | as2::_chain( vec ),
+ os << bl::_1 << ' '
);
- // outputs (1,0)(NULL,0)(1,5)
+ // outputs 0, 1, 2, 3, 4
//]
- //[chain_write
- T y1;
- typedef std::vector<T> vec_; vec_ vec( 3, y );
+ }
+ {
+ //[chain_w
+ int const x = -1; int y; boost::array<int, 2> ar;
boost::copy(
- vec,
+ std::vector<int>(3, x),
boost::begin(
- cont1 /* lvalue */ | _chain(
- ns::csv_anon( y1 /* lvalue */ ) /* rvalue */
- ) | _chain( cont3 /* lvalue */ )
+ ar /* lvalue */ | as2::_chain(
+ as2::ref::csv_array( y /* lvalue */ )
+ ) /* rvalue */
)
);
- BOOST_ASSERT( cont1[0] == y );
- BOOST_ASSERT( y1 == y );
- BOOST_ASSERT( cont3.front() == y1 );
+ assert( ar[0] == x );
+ assert( ar[1] == x );
+ assert( y == x );
//]
}
+ os << std::endl;
}
}// xxx_chain
Modified: sandbox/statistics/support/libs/assign/v2/example/constants.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/constants.h (original)
+++ sandbox/statistics/support/libs/assign/v2/example/constants.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,35 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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_V2_EXAMPLE_CONSTANTS_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_CONSTANTS_ER_2010_H
-#include <libs/assign/v2/example/foo.h>
-
-namespace example_assign_v2{
-
-//[foo_constants
-namespace{
-
-int a = 1, b = 5;
-
-S const key_x = "x" ;
-S const key_y = "y" ;
-S const key_z = "z" ;
-
-const T x( a ); // (1, 0)
-const T y; // (NULL, 0)
-const T z( a, b ); //(1, 5)
-
-}
-//]
-
-
-}// example_assign_v2
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/example/conversion.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/conversion.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/conversion.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,43 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <vector>
-#include <deque>
-#include <queue>
-#include <stack>
-#include <boost/array.hpp>
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/foo.h>
-#include <libs/assign/v2/example/constants.h>
-#include <libs/assign/v2/example/ref_anon.h>
-
-namespace example_assign_v2{
-namespace xxx_conversion{
-
- void run(std::ostream& os)
- {
- using namespace boost::assign::v2;
- namespace ns_ref = ref::assign_copy;
- {
- {
- //[convert_stack
- typedef boost::array<T, 3> from_;
- typedef std::stack<T> to_; // LIFO
- from_ from; from[0] = x; from[1] = y; from[2] = z;
- using namespace adaptor;
- BOOST_ASSERT(
- ( from | put_convert<to_>() ).top() == z
- );
- //]
- }
- }
- }
-
-}// xxx_conversion
-}// example_assign_v2
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/example/conversion.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/conversion.h (original)
+++ sandbox/statistics/support/libs/assign/v2/example/conversion.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,22 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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_V2_EXAMPLE_CONVERSION_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_CONVERSION_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_conversion{
-
- void run(std::ostream& os);
-
-}// xxx_conversion
-}// example_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/example/foo.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/foo.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/foo.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -7,34 +7,24 @@
// Boost Software License, Version 1.0. (See accompanying file //
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
//////////////////////////////////////////////////////////////////////////////
-#include <libs/assign/v2/example/include.h>
#include <libs/assign/v2/example/foo.h>
namespace example_assign_v2{
-foo::foo() : ptr_a( 0 ), b( 0 ){}
-foo::foo( int& a) : ptr_a( &a ), b( 0 ){}
-foo::foo( int& a, int const& b_) : ptr_a( &a ), b( b_ ){}
+Foo::Foo() : ptr_a( 0 ), b( 0 ){}
+Foo::Foo( int& a) : ptr_a( &a ), b( 0 ){}
+Foo::Foo( int& a, int const& b_) : ptr_a( &a ), b( b_ ){}
-bool foo::operator==(foo const& other)const
+bool Foo::operator==(Foo const& other)const
{
return (this->ptr_a == other.ptr_a) && (this->b == other.b);
}
-foo& foo::operator+=(int const& delta){ this->b += delta; return (*this); }
-
-printer::printer(std::ostream& os_):os( os_ ){}
-printer::result_type printer::operator()( foo const& t)const
-{
- this->os << t;
-}
-
-make_foo::result_type make_foo::operator()(int& a, int const& b)const
-{
- return result_type( a, b );
+Foo& Foo::operator+=(int const& delta){
+ this->b += delta; return (*this);
}
-std::ostream& operator<<( std::ostream& os, foo const& t)
+std::ostream& operator<<( std::ostream& os, Foo const& t)
{
os << '(';
if(t.ptr_a){
Modified: sandbox/statistics/support/libs/assign/v2/example/foo.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/foo.h (original)
+++ sandbox/statistics/support/libs/assign/v2/example/foo.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -9,53 +9,37 @@
//////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_ASSIGN_V2_EXAMPLE_FOO_ER_2010_H
#define BOOST_ASSIGN_V2_EXAMPLE_FOO_ER_2010_H
-#include <libs/assign/v2/example/include.h>
+#include <ostream>
namespace example_assign_v2{
//[foo
-struct foo
+class Foo
{
- foo(); //:ptr_a( 0 ), b( 0 ){}
- foo( int& a); // : ptr_a( &a ), b( 0 ){}
- foo( int& a, int const& b_); //: ptr_a( &a ), b( b_ ){}
+ public:
+ Foo(); //:ptr_a( 0 ), b( 0 ){}
+ Foo( int& a); // : ptr_a( &a ), b( 0 ){}
+ Foo( int& a, int const& b_); //: ptr_a( &a ), b( b_ ){}
- bool operator==(foo const& other)const;
+ bool operator==(Foo const& other)const;
- foo& operator+=(int const& delta);
+ Foo& operator+=(int const& delta);
private:
- friend std::ostream & operator<<(std::ostream &os, const foo& p);
+ friend std::ostream & operator<<(std::ostream &os, const Foo& p);
int* ptr_a;
int b;
};
+//]
-struct make_foo
-{
- typedef foo result_type;
- result_type operator()(int& a, int const& b)const;
-
-};
-struct printer
+struct make_foo // TODO remove
{
- typedef void result_type;
-
- printer(std::ostream& os_);
-
- result_type operator()( foo const& t)const;
+ typedef Foo result_type;
+ result_type operator()(int& a, int const& b)const;
- private:
- mutable std::ostream& os;
};
-//]
-
-//[foo_types
-typedef const char* S; // key
-typedef foo T; // data
-typedef std::pair<S,T> U; //key-data pair
-//]
}// example_assign_v2
Modified: sandbox/statistics/support/libs/assign/v2/example/fusion.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/fusion.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/fusion.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,43 +1 @@
-////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-////////////////////////////////////////////////////////////////////////////
-#include <boost/assign/v2/ref/static_array/alloc/lazy_alloc.hpp>
-#include <boost/range/begin.hpp>
-#include <boost/range/end.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
-#include <boost/assign/v2/ref/fusion.hpp>
-
-#include <libs/assign/v2/example/fusion.h>
-
-namespace example_assign_v2{
-namespace xxx_fusion{
-
- void run(std::ostream& os)
- {
- using namespace boost::assign::v2;
- typedef int t0_;
- typedef int const t1_;
- t0_ a = 1;
- typedef ref::assign_tag::copy tag1_;
- typedef ref::alloc_tag::lazy_alloc tag2_;
-
- typedef ref::nth_result_of::fusion<
- tag1_, tag2_, t0_ // NOT nil_arg_type
- > meta_result_;
- typedef boost::mpl::apply1<
- meta_result_,
- boost::mpl::vector<t0_,t1_>
- >::type result_;
- result_ result = ref::fusion<tag1_, tag2_, t0_>( _nil )( a )( 2 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( result[ 0 ] , a );
- BOOST_ASSIGN_V2_CHECK_EQUAL( result[ 1 ] , 2 );
- }
-
-}// xxx_fusion
-}// example_assign_v2
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/example/fusion.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/fusion.h (original)
+++ sandbox/statistics/support/libs/assign/v2/example/fusion.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,22 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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_V2_EXAMPLE_FUSION_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_FUSION_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_fusion{
-
- void run(std::ostream& os);
-
-}// xxx_fusion
-}// example_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/example/include.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/include.h (original)
+++ sandbox/statistics/support/libs/assign/v2/example/include.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -11,13 +11,28 @@
#define BOOST_ASSIGN_V2_EXAMPLE_INCLUDE_ER_2010_H
// Exlc. from markup bec. already included in section Getting started
-#include <boost/assign/v2.hpp>
+//#include <boost/assign/v2.hpp>
//[include_statements
#include <iostream>
#include <utility> // std::pair
#include <boost/assert.hpp>
+#include <boost/lambda/lambda.hpp>
#include <boost/range/algorithm.hpp>
//]
+namespace boost{
+namespace assign{
+namespace v2 {
+
+}
+}
+}
+
+
+//[ns
+namespace as2 = boost::assign::v2;
+namespace bl = boost::lambda;
+//]
+
#endif
Modified: sandbox/statistics/support/libs/assign/v2/example/put_adaptor.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/put_adaptor.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/put_adaptor.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,208 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <vector>
-#include <list>
-#include <map>
-#include <boost/array.hpp>
-#include <boost/lambda/bind.hpp>
-#include <boost/ptr_container/ptr_vector.hpp>
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/foo.h>
-#include <libs/assign/v2/example/constants.h>
-#include <libs/assign/v2/example/put_adaptor.h>
-
-namespace example_assign_v2{
-namespace xxx_put_adaptor{
-
- void run(std::ostream& os)
- {
- using namespace boost::assign::v2;
- os << "* xxx_put_adaptor " << std::endl;
- {
- os << "vector" << ' ';
- //[vector
- typedef std::vector<T> cont_;
- cont_ cont;
- using namespace adaptor;
- boost::for_each( cont | _csv_put( x, y, z ), printer(os) );
- //outputs (1,0)(NULL,0)(1,5)
- //]
- os << std::endl;
- }
- {
- //[map
- typedef std::map<S,T> cont_;
- typedef cont_::value_type key_data_;
- cont_ cont;
- using namespace adaptor;
- BOOST_ASSERT(
- (
- cont | _csv_put(
- key_data_(key_z, z),
- key_data_(key_y, y),
- key_data_(key_x, x)
- )
- )[key_x] == x
- );
- //]
- //[map_proper
- cont.clear();
- BOOST_ASSERT(
- ( cont | _put (key_z, z)(key_y, y)(key_x, x) )[key_x] == x
- );
- //]
- }
- {
- os << "static_array" << ' ';
- //[static_array
- typedef boost::array<T,3> cont_;
- cont_ cont;
- using namespace adaptor;
- boost::for_each( cont | _csv_put( x, y, z ), printer(os) );
- //]
- os << std::endl;
- }
- {
- os << "ptr_vector" << ' ';
- //[ptr_vector
- typedef boost::ptr_vector<T> cont_; cont_ cont;
- using namespace adaptor;
- boost::for_each(
- cont | _csv_put( x, y, z ),
- printer(os)
- );
- //]
- os << std::endl;
- }
- {
- os << "list" << ' ';
- //[list
- typedef std::list<T> cont_;
- cont_ cont;
- using namespace adaptor;
- boost::for_each(
- cont | (_csv_put % _push_front)( x, y, z ),
- printer(os)
- );
- //outputs (1,5)(NULL,0)(1,0)
- //]
- os << std::endl;
- }
- {
- os << "in_place" << ' ';
- //[in_place
- typedef std::vector<T> cont_;
- cont_ cont;
- using namespace adaptor;
- boost::for_each(
- cont | _csv_put( foo( a ), foo(), foo( a, b ) ),
- printer(os)
- );
- //]
- os << std::endl;
- }
- {
- os << "forward_to_constructor" << ' ';
- //[forward_to_constructor
- typedef std::vector<T> cont_;
- cont_ cont;
- using namespace adaptor;
- boost::for_each(
- cont | _put( a )()( a, b ),
- printer(os)
- );
- //]
-
- os << std::endl;
- os << "forward_to_make_foo" << ' ';
-
- //[forward_to_make_foo
- int a0 = -1, a1 = 0, a2 = 1;
- cont.clear();
- boost::for_each(
- cont | (
- _put % ( _fun = make_foo() )
- )( a0, b )( a1, b )( a2, b ),
- printer(os)
- );
- //outputs (-1,5)(0,5)(1,5)
- //]
-
- os << std::endl;
- os << "forward_to_bind" << ' ';
-
- //[forward_to_bind
- cont.clear();
- using namespace boost::lambda;
- boost::for_each(
- cont | (
- _csv_put % (_fun = bind<T>( make_foo(), _1, b) )
- )(a0, a1, a2),
- printer(os)
- );
- //]
- os << std::endl;
- os << "repeat_simpl" << ' ';
- {
- //[repeat_simple
- typedef std::vector<T> cont_;
- cont_ cont;
- using namespace adaptor;
- boost::for_each(
- cont | ( _csv_put % ( _repeat = 2 ) )( x ),
- printer(os)
- );
- // outputs (1,0)(1,0)
- //]
- }
- {
- os << std::endl;
- os << "incr_lookup" << ' ';
- //[incr_lookup
- typedef std::map<S,int> cont_;
- cont_ cont;
- using namespace adaptor;
- cont | (
- _csv_put % ( _incr_lookup = 2 )
- )( key_z, key_x, key_y );
- os
- << '('
- << cont[key_x] << ','
- << cont[key_y] << ','
- << cont[key_z] << ')';
- // outputs (2,2,2)
- //]
- }
- {
- os << std::endl;
- os << "complex_ex1" << ' ';
- //[complex_ex1
- typedef std::list<T> cont_;
- cont_ cont;
- using namespace boost::lambda;
- boost::for_each(
- cont | ( _csv_put )( x ) /*(1,0)*/ | (
- _put % _push_front % ( _repeat = 2 )
- )()( b, a ) /*(NULL,0)(5,1)*/ | (
- _csv_put % ( _fun = bind<T>( make_foo(), _1, b) )
- )( a0, a1, a2 ), /*(-1,5)(0,5)(1,5)*/
- printer(os)
- );
- //]
- //[complex_ex1_answer
- // outputs (5,1)(5,1)(NULL,0)(NULL,0)(1,0)(-1,5)(0,5)(1,5)
- //]
- }
- }
- os << std::endl;
- }
-
-}// xxx_put_adaptor
-}// example_assign_v2
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/example/put_adaptor.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/put_adaptor.h (original)
+++ sandbox/statistics/support/libs/assign/v2/example/put_adaptor.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,22 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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_V2_EXAMPLE_PUT_ADAPTOR_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_PUT_ADAPTOR_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_put_adaptor{
-
- void run(std::ostream& os);
-
-}// xxx_put_adaptor
-}// example_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/example/put_range.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/put_range.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/put_range.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,37 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <queue>
-#include <vector>
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/foo.h>
-#include <libs/assign/v2/example/constants.h>
-#include <libs/assign/v2/example/put_range.h>
-
-namespace example_assign_v2{
-namespace xxx_put_range{
-
- void run(std::ostream& os)
- {
- using namespace boost::assign::v2;
- {
- //[put_range_queue
- typedef std::vector<T> from_; from_ from( 3 );
- from[0] = x; from[1] = y; from[2] = z;
- typedef std::queue<T> to_; // FIFO
- to_ to;
- using namespace adaptor;
- BOOST_ASSERT( ( to | _put_range( from ) ).front() == x );
- BOOST_ASSERT( to.back() == z );
- //]
- }
- }
-
-}// xxx_put_range
-}// example_assign_v2
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/example/put_range.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/put_range.h (original)
+++ sandbox/statistics/support/libs/assign/v2/example/put_range.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,22 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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_V2_EXAMPLE_PUT_RANGE_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_PUT_RANGE_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_put_range{
-
- void run(std::ostream& os);
-
-}// xxx_put_range
-}// example_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/example/ref_anon.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/ref_anon.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/ref_anon.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,71 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <vector>
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/foo.h>
-#include <libs/assign/v2/example/constants.h>
-#include <libs/assign/v2/example/ref_anon.h>
-
-namespace example_assign_v2{
-namespace xxx_ref_anon{
-
- void run(std::ostream& os)
- {
-
- using namespace boost::assign::v2;
- os << "* xxx_ref_anon " << std::endl;
- {
- os << "ref::assign_copy::csv_anon";
- //[assign_copy_read
- namespace ns = ref::assign_copy;
- boost::for_each( ns::csv_anon( x, y, z ), printer(os) );
- //outputs (1,0)(NULL,0)(1,5)
- //]
- //[assign_copy_write
- T x1, y1, z1;
- ns::csv_anon( x1, y1, z1 ).assign( T( b, a ) );
- BOOST_ASSERT( y1 == T( b, a ) );
- //]
- //[csv_anon_empty
- ns::csv_anon<T const>( _nil );
- //]
- }
- {
- //[assign_rebind_read
- namespace ns = ref::assign_rebind;
- typedef ns::nth_result_of::csv_anon<3, T const>::type result_;
- result_ result = ns::csv_anon( x, y, z );
- BOOST_ASSERT( &result[ 1 ] == &y );
- //]
- //[assign_rebind_write
- T w = T( b, a ); result.assign( w );
- BOOST_ASSERT( &result[ 1 ] == &w );
- //]
- }
- {
- //[anon_read_empty
- namespace ns = ref::assign_rebind;
- typedef ns::nth_result_of::anon<2, T const>::type result1_;
- result1_ result1 = ns::anon( x )( y );
- //]
- //[anon_read_fill
- typedef ns::nth_result_of::anon<3, T const>::type result2_;
- result2_ result2 = result1( z );
- //]
- //[anon_read_print
- boost::for_each( result2, printer(os) );
- //]
- }
- os << std::endl;
- }
-
-}// xxx_ref_anon
-}// example_assign_v2
-
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/example/ref_anon.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/ref_anon.h (original)
+++ sandbox/statistics/support/libs/assign/v2/example/ref_anon.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,22 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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_V2_EXAMPLE_REF_ANON_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_REF_ANON_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_ref_anon{
-
- void run(std::ostream& os);
-
-}// xxx_ref_anon
-}// example_assign_v2
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/src/main.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/src/main.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/src/main.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,110 +1,37 @@
#include <iostream>
+#include <boost/assert.hpp>
-#include <libs/assign/v2/test/type_traits/has_push.h>
-#include <libs/assign/v2/test/type_traits/has_value_type.h>
-#include <libs/assign/v2/test/type_traits/has_static_size.h>
-
-#include <libs/assign/v2/test/detail/functor.h>
-
-#include <libs/assign/v2/test/anon/anon.h>
-
-#include <libs/assign/v2/test/chain/chain.h>
-#include <libs/assign/v2/test/chain/convert.h>
-
-#include <libs/assign/v2/test/put/modulo_op.h>
-#include <libs/assign/v2/test/put/ptr.h>
-#include <libs/assign/v2/test/put/static.h>
-#include <libs/assign/v2/test/put/stl.h>
-#include <libs/assign/v2/test/put/tuple_refs.h>
-
-#include <libs/assign/v2/test/put_range/convert.h>
-
-#include <libs/assign/v2/test/ref/convert_traits.h>
-#include <libs/assign/v2/test/ref/wrapper.h>
-#include <libs/assign/v2/test/ref/fusion.h>
-#include <libs/assign/v2/test/ref/csv_anon.h>
-#include <libs/assign/v2/test/ref/anon.h>
-#include <libs/assign/v2/test/ref/fusion_matrix.h>
-#include <libs/assign/v2/test/put/compose/common/forward_parameter.h>
-#include <libs/assign/v2/test/put/compose/functor/composer.h>
-#include <libs/assign/v2/test/put/compose/functor/forward_args.h>
-#include <libs/assign/v2/test/put/compose/functor/forward_seq_args.h>
-#include <libs/assign/v2/test/put/compose/functor/stl.h>
-#include <libs/assign/v2/test/put/compose/csv/composer.h>
-#include <libs/assign/v2/test/put/compose/csv/stl.h>
-
-#include <libs/assign/v2/example/foo.h>
-#include <libs/assign/v2/example/put_adaptor.h>
-#include <libs/assign/v2/example/ref_anon.h>
-#include <libs/assign/v2/example/anon.h>
-#include <libs/assign/v2/example/put_range.h>
-#include <libs/assign/v2/example/conversion.h>
+/*
+#include <libs/assign/v2/test/chain.h>
+#include <libs/assign/v2/test/detail.h>
+#include <libs/assign/v2/test/type_traits.h>
+#include <libs/assign/v2/test/put.h>
+#include <libs/assign/v2/test/ref.h>
#include <libs/assign/v2/example/chain.h>
-#include <libs/assign/v2/example/fusion.h>
-
-//#include <libs/assign/v2/speed/anon_put_ref.h>
-
-int main (int argc, char * const argv[]) {
-
- // Warning : Do not compile libs/assign/v2/test/unit_testing together with
- // this file.
-
- {
- using namespace test_assign_v2;
-
- std::cout << "** tests:" << std::endl;
- xxx_type_traits::xxx_has_push::test();
- xxx_type_traits::xxx_has_value_type::test();
- xxx_type_traits::xxx_has_static_size::test();
-
- xxx_detail::xxx_functor::test();
-
- xxx_anon::xxx_anon::test();
-
- xxx_chain::xxx_chain::test();
- xxx_chain::xxx_convert::test();
-
- xxx_put::xxx_modulo_op::test();
- xxx_put::xxx_ptr::test();
- xxx_put::xxx_static::test();
- xxx_put::xxx_stl::test();
- xxx_put::xxx_tuple_refs::test();
-
- xxx_put_range::xxx_convert::test();
-
- xxx_ref::xxx_convert_traits::test();
- xxx_ref::xxx_wrapper::test();
- xxx_ref::xxx_fusion::test();
- xxx_ref::xxx_csv_anon::test();
- xxx_ref::xxx_anon::test();
- xxx_ref::xxx_fusion_matrix::test();
-
- xxx_put::xxx_compose::xxx_common::xxx_forward_parameter::test();
- xxx_put::xxx_compose::xxx_csv::xxx_composer::test();
- xxx_put::xxx_compose::xxx_csv::xxx_stl::test();
- xxx_put::xxx_compose::xxx_functor::xxx_composer::test();
- xxx_put::xxx_compose::xxx_functor::xxx_forward_args::test();
- xxx_put::xxx_compose::xxx_functor::xxx_forward_seq_args::test();
- xxx_put::xxx_compose::xxx_functor::xxx_stl::test();
-
+#include <libs/assign/v2/example/ref.h>
+#include <libs/assign/v2/example/put.h>
+*/
+
+int main (int argc, char * const argv[])
+{
+
+ // Warning : Do not put libs/assign/v2/test/unit_testing in this project
+/*
+ {
+ using namespace test_assign_v2;
+ xxx_type_traits::test();
+ xxx_detail::test();
+ xxx_chain::test();
+ xxx_put::test();
+ xxx_ref::test();
}
{
- using namespace example_assign_v2;
- std::cout << "** examples:" << std::endl;
- xxx_put_adaptor::run(std::cout);
- xxx_anon::run(std::cout);
- xxx_put_range::run(std::cout);
- xxx_ref_anon::run(std::cout);
- xxx_conversion::run(std::cout);
- xxx_chain::run(std::cout);
- xxx_fusion::run(std::cout);
+ using namespace example_assign_v2;
+ xxx_chain::run(std::cout);
+ xxx_ref::run(std::cout);
+ xxx_put::run(std::cout);
}
- {
- //using namespace speed_assign_v2;
- //std::cout << "** speed:" << std::endl;
- //xxx_anon_put_ref::run(std::cout);
- }
-
+*/
return 0;
}
Modified: sandbox/statistics/support/libs/assign/v2/test/anon/anon.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/anon/anon.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/anon/anon.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,100 +1 @@
-////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-////////////////////////////////////////////////////////////////////////////
-#include <deque>
-#include <list>
-#include <map>
-#include <queue>
-#include <set>
-#include <stack>
-#include <vector>
-#include <boost/array.hpp>
-#include <boost/typeof/typeof.hpp>
-#include <boost/assign/v2/detail/keyword.hpp>
-#include <boost/assign/v2/detail/checking/container.hpp>
-#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <boost/assign/v2/detail/checking/relational_op.hpp>
-
-#include <boost/assign/v2/anon.hpp>
-
-#include <libs/assign/v2/test/anon/anon.h>
-
-namespace test_assign_v2{
-namespace xxx_anon{
-namespace xxx_anon{
-
- void test()
- {
- using namespace boost::assign::v2;
- {
- // CSV
- using namespace checking::constants;
- using namespace checking::container;
- do_check( csv_anon( a, b, c, d, e, f, g, h ) );
- }
- {
- // Operator%
- BOOST_AUTO(tmp, ( anon<int>( _nil ) % (_repeat = 3) ) );
- tmp( 1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( boost::size( tmp ), 3 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( tmp.front(), 1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( tmp.back(), 1 );
- }
- {
- // Conversion
- typedef result_of::anon<int>::type anon_;
- anon_ from;
- {
- using namespace checking::constants;
- from = csv_anon( a, b, c, d, e, f, g, h );
- }
- using namespace checking::container;
-#define MACRO do_check( from | adaptor::put_convert<to_>() );
- {
- typedef boost::array<int,8> to_;
- MACRO
- }
- {
- typedef std::deque<int> to_;
- MACRO
- }
- {
- typedef std::list<int> to_;
- MACRO
- }
- {
- typedef std::queue<int> to_;
- MACRO
- }
- {
- typedef std::set<int> to_;
- MACRO
- }
- {
- typedef std::stack<int> to_;
- MACRO
- }
- {
- typedef std::vector<int> to_;
- MACRO
- }
-#undef MACRO
- }
- { // Relational
- using namespace checking::constants;
- using namespace checking::relational_op;
- do_check(
- csv_anon( a, b, c, d, e, f, g, h )
- );
- }
- }
-
-}// xxx_anon
-}// xxx_anon
-}// test_assign_v2
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/test/anon/anon.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/anon/anon.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/anon/anon.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,23 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_ANON_ANON_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_ANON_ANON_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_anon{
-namespace xxx_anon{
-
- void test();
-
-}// xxx_anon
-}// xxx_anon
-}// test_assign_v2
-
-#endif
\ No newline at end of file
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/test/chain/chain.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/chain/chain.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/chain/chain.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,30 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <boost/assign/v2/chain/checking/twin_values.hpp>
-#include <boost/assign/v2/chain/checking/distinct_values.hpp>
-#include <libs/assign/v2/test/chain/chain.h>
-
-namespace test_assign_v2{
-namespace xxx_chain{
-namespace xxx_chain{
-
- void test()
- {
- using namespace boost::assign::v2::checking::chain;
- twin_values::do_check<int>();
- distinct_values::do_check<short>();
- distinct_values::do_check<int>();
- distinct_values::do_check<float>();
- distinct_values::do_check<double>();
- }
-
-}// xxx_chain
-}// xxx_chain
-}// test_assign_v2
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/chain/chain.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/chain/chain.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/chain/chain.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,23 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_CHAIN_CHAIN_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_CHAIN_CHAIN_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_chain{
-namespace xxx_chain{
-
- void test();
-
-}// xxx_chain
-}// xxx_chain
-}// test_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/chain/convert.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/chain/convert.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/chain/convert.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,92 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <deque>
-#include <list>
-#include <map>
-#include <queue>
-#include <set>
-#include <stack>
-#include <vector>
-#include <boost/array.hpp>
-#include <boost/typeof/typeof.hpp>
-#include <boost/assign/v2/chain.hpp>
-#include <boost/assign/v2/put/range.hpp>
-#include <boost/assign/v2/detail/checking/container.hpp>
-#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <libs/assign/v2/test/chain/convert.h>
-
-namespace test_assign_v2{
-namespace xxx_chain{
-namespace xxx_convert{
-
- void test()
- {
- using namespace boost::assign::v2;
- {
- typedef std::vector<int> vec_;
- typedef boost::array<int,3> array_;
-
- vec_ cont1, cont3;
- array_ cont2;
- {
- using namespace checking::constants;
- cont1.push_back( a ); cont1.push_back( b );
- cont2[0] = c;
- cont2[1] = d;
- cont2[2] = e;
- cont3.push_back( f );
- cont3.push_back( g );
- cont3.push_back( h );
- }
-
-#define MACRO do_check( from | adaptor::put_convert<to_>() );
-
- BOOST_AUTO(
- from,
- cont1 | adaptor::_chain( cont2 ) | adaptor::_chain(cont3)
- );
- { // Conversion
- using namespace checking::container;
- {
- typedef boost::array<int,8> to_;
- MACRO
- }
- {
- typedef std::deque<int> to_;
- MACRO
- }
- {
- typedef std::list<int> to_;
- MACRO
- }
- {
- typedef std::queue<int> to_;
- MACRO
- }
- {
- typedef std::set<int> to_;
- MACRO
- }
- {
- typedef std::stack<int> to_;
- MACRO
- }
- {
- typedef std::vector<int> to_;
- MACRO
- }
-#undef MACRO
- }
- }
- }
-
-}// xxx_convert
-}// xxx_chain
-}// test_assign_v2
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/chain/convert.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/chain/convert.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/chain/convert.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,23 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_CHAIN_CONVERT_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_CHAIN_CONVERT_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_chain{
-namespace xxx_convert{
-
- void test();
-
-}// xxx_convert
-}// xxx_chain
-}// test_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/detail/functor.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/detail/functor.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/detail/functor.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,150 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <string>
-#include <iostream>
-#include <boost/preprocessor/arithmetic/sub.hpp>
-#include <boost/preprocessor/arithmetic/dec.hpp>
-#include <boost/preprocessor/control/expr_if.hpp>
-#include <boost/preprocessor/control/if.hpp>
-#include <boost/preprocessor/repetition/enum_trailing.hpp>
-#include <boost/preprocessor/repetition/repeat.hpp>
-#include <boost/tuple/tuple.hpp>
-
-#include <boost/assign/v2/detail/config/tuple_limit_arity.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
-#include <boost/assign/v2/detail/functor/constructor.hpp>
-
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-// do nothing
-#else
-#include <boost/assign/v2/detail/config/limit_lvalue_const_arity.hpp>
-#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-
-#include <libs/assign/v2/test/detail/functor.h>
-
-namespace test_assign_v2{
-namespace xxx_detail{
-namespace xxx_functor{
-
- void test()
- {
- using namespace boost::assign::v2;
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#define BOOST_ASSIGN_V2_n BOOST_ASSIGN_V2_CPP03_TUPLE_LIMIT_ARITY
-// That's because we are constructing a boost::tuple<>.
-#else
-#define BOOST_ASSIGN_V2_n BOOST_ASSIGN_V2_LIMIT_LVALUE_CONST_ARITY
-
-#if BOOST_ASSIGN_V2_n > BOOST_ASSIGN_V2_CPP03_TUPLE_LIMIT_ARITY
-#error
-#endif
-
-#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-
- {
- typedef int& x_ref_;
- typedef int const& y_ref_;
- typedef int z_;
-
-#define MACRO(Z, n, data) data
-
- typedef boost::tuple<
- BOOST_PP_EXPR_IF(
- BOOST_ASSIGN_V2_n,
- x_ref_
- )
- BOOST_PP_ENUM_TRAILING(
- BOOST_PP_IF(BOOST_PP_DEC(BOOST_ASSIGN_V2_n),1,0),
- MACRO,
- y_ref_
- )
- BOOST_PP_ENUM_TRAILING(
- BOOST_PP_SUB(BOOST_ASSIGN_V2_n,2),
- MACRO,
- z_
- )
- > t_;
-#undef MACRO
-
- typedef functor_aux::constructor<t_> f_;
- f_ f;
-
- int x = -1;
- int const y = 0;
-
-#define MACRO(z, n, data) data
-
- t_ t = f(
- BOOST_PP_EXPR_IF(
- BOOST_ASSIGN_V2_n,
- x
- )
- BOOST_PP_ENUM_TRAILING(
- BOOST_PP_IF(BOOST_PP_DEC(BOOST_ASSIGN_V2_n),1,0),
- MACRO,
- y
- )
- BOOST_PP_ENUM_TRAILING(
- BOOST_PP_SUB(BOOST_ASSIGN_V2_n, 2),
- MACRO,
- 1
- )
- );
-#undef MACRO
- BOOST_PP_EXPR_IF(
- BOOST_ASSIGN_V2_n,
- BOOST_ASSIGN_V2_CHECK_EQUAL(
- &boost::get<0>( t ),
- &x
- );
- )
- BOOST_PP_EXPR_IF(
- BOOST_PP_DEC(BOOST_ASSIGN_V2_n),
- BOOST_ASSIGN_V2_CHECK_EQUAL(
- &boost::get<1>( t ),
- &y
- );
- )
-
-#define MACRO(z, i, data ) \
- BOOST_ASSIGN_V2_CHECK_EQUAL( \
- boost::get< BOOST_PP_ADD(i,2) >( t ), \
- 1 \
- ); \
-/**/
-
- BOOST_PP_REPEAT(
- BOOST_PP_SUB(BOOST_ASSIGN_V2_n,2),
- MACRO,
- ~
- )
-#undef MACRO
-
- typedef std::string str_;
- const str_ cpp
- = BOOST_ASSIGN_V2_ENABLE_CPP0X ? "C++0x" : "C++03";
- const str_ str = str_("test_assign_v2::xxx_detail::xxx_functor")
- + "{ " + cpp + ", arity = ";
-
- std::cout
- << str
- << BOOST_ASSIGN_V2_n
- << " }"
- << std::endl;
-
-#undef BOOST_ASSIGN_V2_n
- }
- }
-
-}// xxx_functor
-}// xxx_detail
-}// test_assign_v2
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/detail/functor.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/detail/functor.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/detail/functor.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,23 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_DETAIL_FUNCTOR_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_DETAIL_FUNCTOR_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_detail{
-namespace xxx_functor{
-
- void test();
-
-}// xxx_functor
-}// xxx_detail
-}// test_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/common/forward_parameter.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/common/forward_parameter.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/common/forward_parameter.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,59 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <list>
-#include <boost/mpl/vector/vector10.hpp>
-#include <boost/assign/v2/detail/functor/identity.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
-#include <boost/assign/v2/put/modifier/push_front.hpp>
-#include <boost/assign/v2/put/generic.hpp>
-#include <boost/assign/v2/put/sub.hpp>
-#include <boost/assign/v2/put/generic/new_fun.hpp>
-#include <boost/assign/v2/put/generic/new_modifier.hpp>
-#include <boost/assign/v2/put/compose/functor/composer.hpp>
-#include <boost/assign/v2/put/compose/common/forward_parameter.hpp>
-
-#include <libs/assign/v2/test/put/compose/common/forward_parameter.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_common{
-namespace xxx_forward_parameter{
-
- void test()
- {
- using namespace boost::assign::v2;
- typedef std::list<int> cont_;
- cont_ cont;
- using namespace adaptor;
- typedef modifier_tag::push_front modifier_tag_;
- typedef functor_aux::identity identity_;
- typedef put_aux::new_fun<identity_> fun_;
- typedef put_aux::set_modifier<modifier_tag_> modifier_;
- typedef boost::mpl::vector2<
- fun_,
- modifier_
- > pars_;
- put_compose_aux::forward_parameter<pars_>(
- put( cont ),
- _put % ( _fun = _identity ) % ( _modifier = modifier_tag_() )
- )( 1 )( 2 )( 3 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont.size(), 3 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont.front(), 3 ); cont.pop_front();
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont.front(), 2 ); cont.pop_front();
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont.front(), 1 ); cont.pop_front();
- }
-
-}// xxx_forward_parameter
-}// xxx_common
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
-
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/common/forward_parameter.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/common/forward_parameter.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/common/forward_parameter.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_COMMON_FORWARD_PARAMETER_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_COMMON_FORWARD_PARAMETER_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_common{
-namespace xxx_forward_parameter{
-
- void test();
-
-}// xxx_forward_parameter
-}// xxx_common
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/composer.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/composer.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/composer.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,62 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_CSV_COMPOSER_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_CSV_COMPOSER_ER_2010_H
-#include <boost/mpl/int.hpp>
-#include <boost/assign/v2.hpp>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_csv{
-namespace xxx_composer{
-
- void test()
- {
- using namespace boost::assign::v2;
- int a1, b1, c1, d1;//, e1, f1, g1, h1;
- using namespace checking::constants;
- {
- a1 = a; b1 = b; c1 = c; d1 = d;
- }
-
- using namespace adaptor;
- BOOST_AUTO(
- tmp,
- ( _csv_put( a1, b1, c1 ) )
- );
- typedef boost::mpl::int_<0> zero_;
- typedef boost::mpl::int_<1> one_;
- typedef boost::mpl::int_<2> two_;
- {
- int& x = tmp.sequence_arg()[ zero_::value ];
- BOOST_ASSIGN_V2_CHECK_EQUAL( &a1, &x );
- BOOST_ASSIGN_V2_CHECK_EQUAL( a, x );
- }
- {
- int& x = tmp.sequence_arg()[ one_::value ];
- BOOST_ASSIGN_V2_CHECK_EQUAL( &b1, &x );
- BOOST_ASSIGN_V2_CHECK_EQUAL( b, x );
- }
- {
- int& x = tmp.sequence_arg()[ two_::value ];
- BOOST_ASSIGN_V2_CHECK_EQUAL( &c1, &x );
- BOOST_ASSIGN_V2_CHECK_EQUAL( c, x );
- }
-
- }
-
-}// xxx_composer
-}// xxx_csv
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/composer.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/composer.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/composer.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_CSV_COMPOSER_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_CSV_COMPOSER_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_csv{
-namespace xxx_composer{
-
- void test();
-
-}// xxx_composer
-}// xxx_csv
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/stl.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/stl.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/stl.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,136 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <boost/detail/workaround.hpp>
-
-#include <boost/array.hpp>
-#include <deque>
-#include <list>
-#include <map>
-#include <queue>
-#include <set>
-#include <stack>
-#include <vector>
-#include <utility>
-
-#include <boost/assign/v2.hpp>
-
-#include <libs/assign/v2/test/put/compose/csv/stl.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_csv{
-namespace xxx_stl{
-
- void test(){
- using namespace boost::assign::v2;
- using namespace adaptor;
- { // Array
-
- {
- typedef boost::array<int,8> cont_;
- cont_ cont;
- {
- using namespace checking::constants;
- using namespace checking::container;
- do_check(
- cont | _csv_put( a, b, c, d, e, f, g, h )
- );
- }
- }
- }
- { // Associative
-
- {
- typedef std::map<int,int> cont_;
- typedef std::pair<int const, int> pair_;
- cont_ cont;
- {
- using namespace checking::container;
- using namespace checking::constants;
- do_check(
- cont | _csv_put(
- pair_( a, a ), pair_( b, b ), pair_( c, c ),
- pair_( d, d ), pair_( e, e ), pair_( f, f ),
- pair_( g, g ), pair_( h, h )
- )
- );
- }
- }// map
- {
- typedef std::set<int> cont_;
- cont_ cont;
- {
- using namespace checking::container;
- using namespace checking::constants;
- do_check( cont | _csv_put( a, b, c, d, e, f, g, h ) );
- }
- }// map
- }// Associative
- {
- // Sequence
- {
- typedef std::deque<int> cont_;
- cont_ cont;
- {
- using namespace checking::constants;
- using namespace checking::container;
- do_check( cont | _csv_put( a, b, c, d, e, f, g, h ) );
- }
- }// deque
- {
- typedef std::list<int> cont_;
- {
- using namespace checking::constants;
- using namespace checking::container;
- cont_ cont;
- do_check( cont | _csv_put( a, b, c, d, e, f, g, h ) );
- }
- }// list
- {
- typedef std::vector<int> cont_;
- {
- using namespace checking::constants;
- using namespace checking::container;
- cont_ cont;
- do_check( cont | _csv_put( a, b, c, d, e, f, g, h ) );
- }
- }// vector
- } // Sequence
-
- {
- // Push
- {
- typedef std::queue<int> cont_;
- cont_ cont;
- {
- using namespace checking::constants;
- using namespace checking::container;
- do_check( cont | _csv_put( a, b, c, d, e, f, g, h ) );
- }
- }// queue
- // Push
- {
- typedef std::stack<int> cont_;
- cont_ cont;
- {
- using namespace checking::constants;
- using namespace checking::container;
- do_check( cont | _csv_put( a, b, c, d, e, f, g, h ) );
- }
- }// queue
- }// Push
- }// test()
-
-}// xxx_stl
-}// xxx_csv
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/stl.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/stl.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/csv/stl.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_CSV_STL_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_CSV_STL_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_csv{
-namespace xxx_stl{
-
- void test();
-
-}// xxx_stl
-}// xxx_csv
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/composer.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/composer.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/composer.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,104 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <iostream>
-
-#include <boost/typeof/typeof.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
-#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <boost/assign/v2/put/modifier/ext/repeat.hpp>
-#include <boost/assign/v2/put/modifier/ext/incr_lookup.hpp>
-#include <boost/assign/v2/put/compose/functor/composer.hpp>
-
-#include <libs/assign/v2/test/put/compose/functor/composer.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_functor{
-namespace xxx_composer{
-
- void test()
- {
-
- using namespace boost::assign::v2;
- using namespace checking::constants;
- typedef boost::mpl::int_<0> zero_;
- typedef boost::mpl::int_<1> one_;
- typedef boost::mpl::int_<2> two_;
- {
- int x = -1;
- typedef put_compose_aux::composer<> composer_;
-
- BOOST_AUTO(
- tmp,
- ( ( composer_() % ( _repeat = 3 ) )( x ) )
- );
- int n = tmp
- .parameters()
- .static_lookup( zero_() ).get();
- BOOST_ASSIGN_V2_CHECK_EQUAL( n, 3 );
-
- }
- {
- typedef put_compose_aux::composer<> composer_;
- BOOST_AUTO(
- tmp,
- ( composer_() % ( _incr_lookup = 3 ) )
- );
- int n = tmp
- .parameters()
- .static_lookup( zero_() ).get();
- BOOST_ASSIGN_V2_CHECK_EQUAL( n, 3 );
- }
- {
- int a1, b1, c1, d1;//, e1, f1, g1, h1;
- using namespace checking::constants;
- {
- a1 = a; b1 = b; c1 = c; d1 = d;
- }
-
- using namespace adaptor;
- BOOST_AUTO(
- tmp,
- ( _put( a1, b1 )( c1 )() )
- );
- {
- int & x = tmp.sequence_args()
- .static_row( zero_() )
- .static_elem( zero_() );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &a1, &x );
- BOOST_ASSIGN_V2_CHECK_EQUAL( a, x );
- }
- {
- int & x = tmp.sequence_args()
- .static_row( zero_() )
- .static_elem( one_() );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &b1, &x );
- BOOST_ASSIGN_V2_CHECK_EQUAL( b, x );
- }
- {
- int & x = tmp.sequence_args()
- .static_row( one_() )
- .static_elem( zero_() );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &c1, &x );
- BOOST_ASSIGN_V2_CHECK_EQUAL( c, x );
- }
- {
- tmp.sequence_args()
- .static_row( two_() );
- }
- }
- }
-
-}// xxx_composer
-}// xxx_functor
-}// xxx_compose
-}// xxx_put
-}// test_assign_v2
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/composer.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/composer.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/composer.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_FUNCTOR_COMPOSER_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_FUNCTOR_COMPOSER_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_functor{
-namespace xxx_composer{
-
- void test();
-
-}// xxx_composer
-}// xxx_functor
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_args.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_args.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_args.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,88 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <deque>
-#include <vector>
-
-#include <boost/mpl/int.hpp>
-
-#include <boost/typeof/typeof.hpp>
-#include <boost/tuple/tuple.hpp>
-
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
-#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <boost/assign/v2/ref/fusion/assign_copy.hpp>
-#include <boost/assign/v2/ref/fusion_matrix/container.hpp>
-#include <boost/assign/v2/ref/fusion_matrix/nth_result_of.hpp>
-#include <boost/assign/v2/put/compose/functor/forward_args.hpp>
-#include <boost/assign/v2/put/sub.hpp>
-
-#include <libs/assign/v2/test/put/compose/functor/forward_args.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_functor{
-namespace xxx_forward_args{
-
- void test()
- {
-
- using namespace boost::assign::v2;
- int a1, b1, c1, d1;//, e1, f1, g1, h1;
- {
- using namespace checking::constants;
- a1 = a; b1 = b; c1 = c; d1 = d;
- }
- typedef boost::mpl::int_<0> zero_;
- typedef boost::mpl::int_<1> one_;
- typedef boost::mpl::int_<2> two_;
- typedef boost::mpl::int_<3> three_;
- typedef boost::mpl::int_<4> four_;
- typedef ref::fusion_matrix_aux::empty<>::type empty_;
- {
- typedef std::vector<int> cont_;
- cont_ cont;
- BOOST_AUTO( tmp, ( put( cont ) ) );
- empty_ e;
- BOOST_AUTO( mat, e( a1 )( b1 )( c1 )( d1 )() );
- forward_args(
- tmp,
- put_compose_aux::make_args( mat.static_row( zero_() ) )
- );
- forward_args(
- tmp,
- put_compose_aux::make_args( mat.static_row( one_() ) )
- );
- forward_args(
- tmp,
- put_compose_aux::make_args( mat.static_row( two_() ) )
- );
- forward_args(
- tmp,
- put_compose_aux::make_args( mat.static_row( three_() ) )
- );
- forward_args(
- tmp,
- put_compose_aux::make_args( mat.static_row( four_() ) )
- );
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont[0], a1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont[1], b1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont[2], c1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont[3], d1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont.size(), 5 );
-
- }
- }
-
-}// xxx_forward_args
-}// xxx_functor
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_args.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_args.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_args.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_FUNCTOR_FORWARD_ARGS_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_FUNCTOR_FORWARD_ARGS_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_functor{
-namespace xxx_forward_args{
-
- void test();
-
-}// xxx_forward_args
-}// xxx_functor
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_seq_args.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_seq_args.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_seq_args.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,64 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <deque>
-#include <vector>
-
-#include <boost/typeof/typeof.hpp>
-#include <boost/tuple/tuple.hpp>
-
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
-#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <boost/assign/v2/ref/fusion/assign_copy.hpp>
-#include <boost/assign/v2/put/compose/functor/composer.hpp>
-#include <boost/assign/v2/put/compose/functor/forward_seq_args.hpp>
-#include <boost/assign/v2/put/sub.hpp>
-
-#include <libs/assign/v2/test/put/compose/functor/forward_seq_args.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_functor{
-namespace xxx_forward_seq_args{
-
- void test()
- {
-
- using namespace boost::assign::v2;
- int a1, b1, c1, d1;//, e1, f1, g1, h1;
- using namespace checking::constants;
- {
- a1 = a; b1 = b; c1 = c; d1 = d;
- }
- using namespace adaptor;
- {
- typedef boost::tuple<int&, int&> tuple_;
- typedef std::deque<tuple_> cont_;
- cont_ cont;
- forward_seq_args(
- put( cont ),
- _put( a1, b1 )( c1, d1 )
- );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &boost::get<0>( cont[0] ), &a1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( boost::get<0>( cont[0] ), a );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &boost::get<1>( cont[0] ), &b1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( boost::get<1>( cont[0] ), b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &boost::get<0>( cont[1] ), &c1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( boost::get<0>( cont[1] ), c );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &boost::get<1>( cont[1] ), &d1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( boost::get<1>( cont[1] ), d );
- }
- }
-
-}// xxx_forward_seq_args
-}// xxx_functor
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_seq_args.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_seq_args.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/forward_seq_args.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_FUNCTOR_FORWARD_SEQ_ARGS_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_FUNCTOR_FORWARD_SEQ_ARGS_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_functor{
-namespace xxx_forward_seq_args{
-
- void test();
-
-}// xxx_forward_seq_args
-}// xxx_functor
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/stl.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/stl.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/stl.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,151 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <boost/detail/workaround.hpp>
-
-#include <boost/array.hpp>
-#include <deque>
-#include <list>
-#include <map>
-#include <queue>
-#include <set>
-#include <stack>
-#include <vector>
-
-#include <boost/assign/v2.hpp>
-
-#include <libs/assign/v2/test/put/compose/functor/stl.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_functor{
-namespace xxx_stl{
-
- void test(){
- using namespace boost::assign::v2;
- using namespace adaptor;
- { // Array
-
- {
- typedef boost::array<int,8> cont_;
- cont_ cont;
- {
- using namespace checking::constants;
- using namespace checking::container;
- do_check(
- cont | _put( a )( b )( c )( d )( e )( f )( g )( h )
- );
- }
- }
- }
- { // Associative
-
- {
- typedef std::map<int,int> cont_;
- cont_ cont;
- {
- using namespace checking::container;
- using namespace checking::constants;
- do_check(
- cont |
- _put( a, a )( b, b )( c, c )
- ( d, d )( e, e )( f, f )
- ( g, g )( h, h )
- );
- }
- }// map
- {
- typedef std::set<int> cont_;
- cont_ cont;
- {
- using namespace checking::container;
- using namespace checking::constants;
- do_check(
- cont |
- _put( a )( b )( c )
- ( d )( e )( f )
- ( g )( h )
- );
- }
- }// map
- }// Associative
- {
- // Sequence
- {
- typedef std::deque<int> cont_;
- cont_ cont;
- {
- using namespace checking::constants;
- using namespace checking::container;
- do_check(
- cont | _put( a )( b )( c )( d )( e )( f )( g )( h )
- );
- }
- }// deque
- {
- typedef std::list<int> cont_;
- {
- using namespace checking::constants;
- using namespace checking::container;
- cont_ cont;
- do_check(
- cont | _put( a )( b )( c )( d )( e )( f )( g )( h )
- );
- }
- }// list
- {
- typedef std::vector<int> cont_;
- {
- using namespace checking::constants;
- using namespace checking::container;
- cont_ cont;
- do_check(
- cont |
- _put( a )( b )( c )( d )( e )( f )( g )( h )
- );
- }
- }// vector
- } // Sequence
-
- {
- // Push
- {
- typedef std::queue<int> cont_;
- cont_ cont;
- {
- using namespace checking::constants;
- using namespace checking::container;
- do_check(
- cont |
- _put( a )( b )( c )( d )( e )( f )( g )( h )
- );
- }
- }// queue
- // Push
- {
- typedef std::stack<int> cont_;
- cont_ cont;
- {
- using namespace checking::constants;
- using namespace checking::container;
- do_check(
- cont |
- _put( a )( b )( c )( d )( e )( f )( g )( h )
- );
- }
- }// queue
- }// Push
- }// test()
-
-}// xxx_stl
-}// xxx_functor
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/stl.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/stl.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/compose/functor/stl.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_STL_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_COMPOSE_STL_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_compose{
-namespace xxx_functor{
-namespace xxx_stl{
-
- void test();
-
-}// xxx_stl
-}// xxx_functor
-}// xxx_compose
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/modulo_op.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/modulo_op.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/modulo_op.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,55 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <queue>
-#include <map>
-#include <boost/assign/v2/detail/checking/container.hpp>
-#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <boost/assign/v2/put.hpp>
-#include <libs/assign/v2/test/put/modulo_op.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_modulo_op{
-
- void test()
- {
- using namespace boost::assign::v2;
- using namespace checking::constants;
- namespace chk_cont = checking::container;
- { // Queue + Repeat
- typedef std::queue<int> cont_;
- cont_ cont;
- ( put( cont ) % ( _repeat = 3 ) )( -1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont.front(), -1); cont.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont.front(), -1); cont.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont.front(), -1); cont.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( cont.empty(), true);
- }
- { // Map + IncrLookup
- {
- typedef std::map<const char*, int> cont_;
- cont_ cont;
- put( cont )( "x", 2 )( "y", 1 );
- }
- {
- typedef std::map<const char*, int> cont_;
- cont_ cont;
- ( put( cont ) % _incr_lookup)( "x" )( "y" )( "x" );
- BOOST_ASSIGN_V2_CHECK_EQUAL( 2, cont["x"] );
- BOOST_ASSIGN_V2_CHECK_EQUAL( 1, cont["y"] );
- }
- }
- }
-
-}// xxx_modulo_op
-}// xxx_put
-}// test_assign_v2
-
-
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/modulo_op.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/modulo_op.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/modulo_op.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,23 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_CHAIN_TEST_PUT_MODULO_OP_ER_2010_H
-#define LIBS_ASSIGN_V2_CHAIN_TEST_PUT_MODULO_OP_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_modulo_op{
-
- void test();
-
-}// xxx_modulo_op
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put/ptr.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/ptr.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/ptr.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -27,7 +27,7 @@
using namespace boost::assign::v2;
{ // Array
{
- typedef boost::ptr_array<int,8> cont_;
+ typedef boost::ptr_array<int, 8> cont_;
cont_ cont;
{
using namespace checking::constants;
@@ -35,7 +35,7 @@
do_check(
csv_put( cont )
( a , b , c , d , e , f , g , h ).unwrap()
- );
+ );
}
}
}
Modified: sandbox/statistics/support/libs/assign/v2/test/put/ptr.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/ptr.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/ptr.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -7,8 +7,8 @@
// 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 LIBS_ASSIGN_V2_CHAIN_TEST_PUT_PTR_ER_2010_H
-#define LIBS_ASSIGN_V2_CHAIN_TEST_PUT_PTR_ER_2010_H
+#ifndef LIBS_ASSIGN_V2_TEST_PUT_PTR_ER_2010_H
+#define LIBS_ASSIGN_V2_TEST_PUT_PTR_ER_2010_H
namespace test_assign_v2{
namespace xxx_put{
Modified: sandbox/statistics/support/libs/assign/v2/test/put/static.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/static.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/static.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -20,10 +20,6 @@
#include <boost/ptr_container/ptr_deque.hpp>
#include <boost/ptr_container/ptr_list.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
-
-#include <boost/preprocessor/punctuation/comma_if.hpp>
-#include <boost/preprocessor/control/expr_if.hpp>
-#include <boost/assign/v2/detail/checking/assert.hpp>
#include <boost/assign/v2/put/modifier.hpp>
#include <libs/assign/v2/test/put/static.h>
@@ -31,46 +27,36 @@
namespace xxx_put{
namespace xxx_static{
-#define MACRO( V, T0, T1, n )\
- { \
- typedef V< T0 BOOST_PP_COMMA_IF(n) BOOST_PP_EXPR_IF(n, T1) > cont_; \
- typedef put_aux::deduce_modifier<cont_>::type found_; \
- checking::do_assert_is_same<found_,wanted_>(); \
- } \
-/**/
-
void test()
{
- using namespace boost::assign::v2;
- {
- typedef modifier_tag::push_back wanted_;
- MACRO( std::list, int, , 0 )
- MACRO( std::vector, int, , 0 )
- MACRO( std::deque, int, , 0 )
-
- MACRO( boost::ptr_deque, int, , 0 )
- MACRO( boost::ptr_list, int, , 0 )
- MACRO( boost::ptr_vector, int, , 0 )
- }
+ namespace as2 = boost::assign::v2;
{
- typedef modifier_tag::at_next wanted_;
- MACRO( boost::array, int, 1, 1 )
- MACRO( boost::ptr_array, int, 1, 1 )
+ typedef as2::modifier_tag::push_back wanted_;
+ as2::put_aux::check_deduce<std::deque<int>, wanted_>();
+ as2::put_aux::check_deduce<std::list<int>, wanted_>();
+ as2::put_aux::check_deduce<std::vector<int>, wanted_>();
+
+ as2::put_aux::check_deduce<boost::ptr_deque<int>, wanted_>();
+ as2::put_aux::check_deduce<boost::ptr_list<int>, wanted_>();
+ as2::put_aux::check_deduce<boost::ptr_vector<int>, wanted_>();
}
{
- typedef modifier_tag::push wanted_;
- MACRO( std::queue, int, , 0 )
- MACRO( std::stack, int, ,0 )
+ typedef as2::modifier_tag::iterate wanted_;
+ as2::put_aux::check_deduce<boost::array<int, 1>, wanted_>();
+ as2::put_aux::check_deduce<boost::ptr_array<int, 1>, wanted_>();
}
{
- typedef modifier_tag::insert wanted_;
- MACRO( std::set, int, , 0 )
- MACRO( std::map, const char* , int, 1 )
+ typedef as2::modifier_tag::push wanted_;
+ as2::put_aux::check_deduce<std::queue<int>, wanted_>();
+ as2::put_aux::check_deduce<std::stack<int>, wanted_>();
}
-
+ {
+ typedef as2::modifier_tag::insert wanted_;
+ as2::put_aux::check_deduce<std::set<int>, wanted_>();
+ as2::put_aux::check_deduce<std::map<const char*, int>, wanted_>();
+ }
}
-#undef MACRO
}// xxx_static
}// xxx_put
Modified: sandbox/statistics/support/libs/assign/v2/test/put/static.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/static.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/static.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -7,8 +7,8 @@
// 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 LIBS_ASSIGN_V2_CHAIN_TEST_PUT_STATIC_ER_2010_H
-#define LIBS_ASSIGN_V2_CHAIN_TEST_PUT_STATIC_ER_2010_H
+#ifndef LIBS_ASSIGN_V2_TEST_PUT_STATIC_ER_2010_H
+#define LIBS_ASSIGN_V2_TEST_PUT_STATIC_ER_2010_H
namespace test_assign_v2{
namespace xxx_put{
Modified: sandbox/statistics/support/libs/assign/v2/test/put/stl.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/stl.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/stl.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -7,8 +7,8 @@
// 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 LIBS_ASSIGN_V2_CHAIN_TEST_PUT_STL_ER_2010_H
-#define LIBS_ASSIGN_V2_CHAIN_TEST_PUT_STL_ER_2010_H
+#ifndef LIBS_ASSIGN_V2_TEST_PUT_STL_ER_2010_H
+#define LIBS_ASSIGN_V2_TEST_PUT_STL_ER_2010_H
namespace test_assign_v2{
namespace xxx_put{
Modified: sandbox/statistics/support/libs/assign/v2/test/put/tuple_refs.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/tuple_refs.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/tuple_refs.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -9,6 +9,7 @@
//////////////////////////////////////////////////////////////////////////////
#include <deque>
#include <boost/tuple/tuple.hpp>
+#include <boost/assign/v2/detail/checking/check.hpp>
#include <boost/assign/v2/detail/checking/constants.hpp>
#include <boost/assign/v2/put.hpp>
#include <libs/assign/v2/test/put/tuple_refs.h>
@@ -19,8 +20,8 @@
void test()
{
- using namespace boost::assign::v2;
- using namespace checking::constants;
+ namespace as2 = boost::assign::v2;
+ using namespace as2::checking::constants;
{
int a1, b1, c1, d1;//, e1, f1, g1, h1;
{
@@ -31,16 +32,15 @@
typedef boost::tuple<int&, const int&> tuple_;
typedef std::deque<tuple_> cont_;
cont_ cont;
- put( cont )( a1 , b1 )( c1 , d1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &a1, &boost::get<0>( cont[0] ) );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &b1, &boost::get<1>( cont[0] ) );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &c1, &boost::get<0>( cont[1] ) );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &d1, &boost::get<1>( cont[1] ) );
+ as2::put( cont )( a1 , b1 )( c1 , d1 );
+ BOOST_ASSIGN_V2_CHECK( &a1 == &boost::get<0>( cont[0] ) );
+ BOOST_ASSIGN_V2_CHECK( &b1 == &boost::get<1>( cont[0] ) );
+ BOOST_ASSIGN_V2_CHECK( &c1 == &boost::get<0>( cont[1] ) );
+ BOOST_ASSIGN_V2_CHECK( &d1 == &boost::get<1>( cont[1] ) );
}
}
}
-
}// xxx_tuple_refs
}// xxx_put
}// test_assign_v2
Modified: sandbox/statistics/support/libs/assign/v2/test/put/tuple_refs.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/tuple_refs.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/tuple_refs.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -7,8 +7,8 @@
// 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 LIBS_ASSIGN_V2_CHAIN_TEST_PUT_TUPLE_REFS_ER_2010_H
-#define LIBS_ASSIGN_V2_CHAIN_TEST_PUT_TUPLE_REFS_ER_2010_H
+#ifndef LIBS_ASSIGN_V2_TEST_PUT_TUPLE_REFS_ER_2010_H
+#define LIBS_ASSIGN_V2_TEST_PUT_TUPLE_REFS_ER_2010_H
namespace test_assign_v2{
namespace xxx_put{
Modified: sandbox/statistics/support/libs/assign/v2/test/put_range/convert.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put_range/convert.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put_range/convert.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,79 +1 @@
-////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-////////////////////////////////////////////////////////////////////////////
-#include <deque>
-#include <list>
-#include <map>
-#include <queue>
-#include <set>
-#include <stack>
-#include <vector>
-#include <boost/array.hpp>
-
-#include <boost/assign/v2/detail/checking/container.hpp>
-#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <boost/assign/v2/put/range.hpp>
-
-#include <libs/assign/v2/test/put_range/convert.h>
-
-namespace test_assign_v2{
-namespace xxx_put_range{
-namespace xxx_convert{
-
- void test()
- {
- typedef std::vector<int> from_;
- from_ from;
- using namespace boost::assign::v2;
- namespace chk_cont = checking::container;
- {
- using namespace checking::constants;
- from.push_back( a );
- from.push_back( b );
- from.push_back( c );
- from.push_back( d );
- from.push_back( e );
- from.push_back( f );
- from.push_back( g );
- from.push_back( h );
- }
- using namespace adaptor;
- {
- typedef boost::array<int,8> to_;
- chk_cont::do_check( from | put_convert<to_>() );
- }
- {
- typedef std::deque<int> to_;
- chk_cont::do_check( from | put_convert<to_>() );
- }
- {
- typedef std::list<int> to_;
- chk_cont::do_check( from | put_convert<to_>() );
- }
- {
- typedef std::queue<int> to_;
- chk_cont::do_check( from | put_convert<to_>() );
- }
- {
- typedef std::set<int> to_;
- chk_cont::do_check( from | put_convert<to_>() );
- }
- {
- typedef std::stack<int> to_;
- chk_cont::do_check( from | put_convert<to_>() );
- }
- {
- typedef std::vector<int> to_;
- chk_cont::do_check( from | put_convert<to_>() );
- }
- }
-
-}// xxx_convert
-}// xxx_put_range
-}// test_assign_v2
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/put_range/convert.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put_range/convert.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put_range/convert.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,23 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_PUT_RANGE_CONVERT_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_RANGE_CONVERT_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put_range{
-namespace xxx_convert{
-
- void test();
-
-}// xxx_convert
-}// xxx_put_range
-}// test_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/anon.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/anon.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/anon.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,164 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <deque>
-#include <list>
-#include <map>
-#include <queue>
-#include <set>
-#include <stack>
-#include <vector>
-#include <boost/mpl/int.hpp>
-#include <boost/mpl/empty_base.hpp>
-#include <boost/range/begin.hpp>
-#include <boost/range/algorithm/copy.hpp>
-#include <boost/typeof/typeof.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
-#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <boost/assign/v2/detail/checking/container.hpp>
-//#include <boost/assign/v2/detail/checking/check_convert.hpp> // TODO remove
-#include <boost/assign/v2/detail/checking/array.hpp>
-#include <boost/assign/v2/detail/checking/relational_op.hpp>
-#include <boost/assign/v2/put/range.hpp>
-#include <boost/assign/v2/ref/anon/functor.hpp>
-#include <boost/assign/v2/ref/wrapper/copy.hpp>
-#include <libs/assign/v2/test/ref/anon.h>
-
-namespace test_assign_v2{
-namespace xxx_ref{
-namespace xxx_anon{
-
- void test()
- {
- using namespace boost::assign::v2;
- typedef ref::assign_tag::copy copy_;
- {
- // Array
- typedef ref::nth_result_of::anon<
- 8,
- copy_,
- int const
- >::type ar_;
- using namespace checking::constants;
- ar_ ar = ref::anon<copy_>
- ( a )( b )( c )( d )( e )( f )( g )( h );
- {
- using namespace checking;
- typedef container_tag::static_array tag_;
- do_check(tag_(), ar );
- }
- }
- {
- // Assignement of references
- int a1, b1, c1, d1, e1, f1, g1, h1;
- typedef std::vector<int> vec_;
- vec_ vec;
- {
- using namespace checking::constants;
- vec.push_back( a );
- vec.push_back( b );
- vec.push_back( c );
- vec.push_back( d );
- vec.push_back( e );
- vec.push_back( f );
- vec.push_back( g );
- vec.push_back( h );
- }
- boost::copy(
- vec,
- boost::begin( ref::assign_copy::anon
- ( a1 )( b1 )( c1 )( d1 )( e1 )( f1 )( g1 )( h1 )
- )
- );
- {
- using namespace checking::container;
- do_check( ref::assign_copy::anon<int const>
- ( a1 )( b1 )( c1 )( d1 )( e1 )( f1 )( g1 )( h1 )
- );
- }
- }
- {
- // Rebind
- typedef int const& cref_;
- using namespace checking::constants;
- cref_ a1 = a, b1 = b, c1 = c, d1 = d, e1 = e, f1 = f, g1 = g,
- h1 = h;
- BOOST_AUTO(ar, ref::assign_rebind::anon
- ( a1 )( b1 )( c1 )( d1 )( e1 )( f1 )( g1 )( h1 )
- );
- {
- using namespace checking::container;
- do_check( ar );
- }
- ar.assign( b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[0] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[1] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[2] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[3] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[4] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[5] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[6] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[7] , &b );
- }
-#define MACRO do_check( from | adaptor::put_convert<to_>() );
- {
- // Conversion
- typedef ref::assign_copy::nth_result_of::anon<
- 8,int const>::type anon_;
-
- anon_ from;
- {
- using namespace checking::constants;
- from = ref::assign_copy::anon
- ( a )( b )( c )( d )( e )( f )( g )( h );
- }
- using namespace checking::container;
- {
- typedef boost::array<int,8> to_;
- MACRO
- }
- {
- typedef std::deque<int> to_;
- MACRO
- }
- {
- typedef std::list<int> to_;
- MACRO
- }
- {
- typedef std::queue<int> to_;
- MACRO
- }
- {
- typedef std::set<int> to_;
- MACRO
- }
- {
- typedef std::stack<int> to_;
- MACRO
- }
- {
- typedef std::vector<int> to_;
- MACRO
- }
-#undef MACRO
- }
- { // Relational
- using namespace checking::constants;
- using namespace checking::relational_op;
- do_check(
- ref::assign_copy::anon
- ( a )( b )( c )( d )( e )( f )( g )( h )
- );
- }
- }
-
-}// xxx_anon
-}// xxx_ref
-}// test_assign
+// TODO remove file
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/anon.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/anon.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/anon.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,24 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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_V2_CHAIN_TEST_REF_ANON_ER_2010_H
-#define BOOST_ASSIGN_V2_CHAIN_TEST_REF_ANON_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_ref{
-namespace xxx_anon{
-
- void test();
-
-}// xxx_anon
-}// xxx_ref
-}// test_assign
-
-#endif
-
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/convert_traits.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/convert_traits.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/convert_traits.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -16,7 +16,8 @@
void test()
{
- namespace ns = boost::assign::v2::ref::convert_traits::checking;
+ namespace as2 = boost::assign::v2;
+ namespace ns = as2::ref::convert_traits::checking;
{
ns::twin_values::do_check<int>();
}
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/convert_traits.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/convert_traits.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/convert_traits.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -7,8 +7,8 @@
// 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_V2_CHAIN_TEST_REF_CONVERT_TRAITS_ER_2010_H
-#define BOOST_ASSIGN_V2_CHAIN_TEST_REF_CONVERT_TRAITS_ER_2010_H
+#ifndef BOOST_ASSIGN_V2_TEST_REF_CONVERT_TRAITS_ER_2010_H
+#define BOOST_ASSIGN_V2_TEST_REF_CONVERT_TRAITS_ER_2010_H
namespace test_assign_v2{
namespace xxx_ref{
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/csv_anon.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/csv_anon.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/csv_anon.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,106 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <vector>
-#include <boost/mpl/int.hpp>
-#include <boost/mpl/empty_base.hpp>
-#include <boost/range/begin.hpp>
-#include <boost/range/algorithm/copy.hpp>
-#include <boost/typeof/typeof.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
-#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <boost/assign/v2/detail/checking/range.hpp>
-#include <boost/assign/v2/detail/checking/array.hpp>
-#include <boost/assign/v2/ref/anon/csv.hpp>
-#include <libs/assign/v2/test/ref/csv_anon.h>
-
-namespace test_assign_v2{
-namespace xxx_ref{
-namespace xxx_csv_anon{
-
- void test()
- {
- using namespace boost::assign::v2;
- typedef ref::assign_tag::copy copy_;
- {
- typedef ref::nth_result_of::csv_anon<
- 8,
- copy_,
- int const
- >::type ar_;
- using namespace checking::constants;
- ar_ ar = ref::csv_anon<copy_>
- ( a , b , c , d , e , f , g , h );
- using namespace checking;
- {
- typedef container_tag::static_array tag_;
- checking::do_check(tag_(), ar );
- }
- {
- typedef container_tag::range tag_;
- checking::do_check(tag_(), ar );
- }
- }
- {
- int a1, b1, c1, d1, e1, f1, g1, h1;
- typedef std::vector<int> vec_;
- vec_ vec;
- {
- using namespace checking::constants;
- vec.push_back( a );
- vec.push_back( b );
- vec.push_back( c );
- vec.push_back( d );
- vec.push_back( e );
- vec.push_back( f );
- vec.push_back( g );
- vec.push_back( h );
- }
- boost::copy(
- vec,
- boost::begin( ref::assign_copy::csv_anon
- ( a1 , b1 , c1 , d1 , e1 , f1 , g1 , h1 )
- )
- );
- {
- using namespace checking;
- typedef container_tag::static_array tag_;
- do_check( tag_(), ref::assign_copy::csv_anon<int const>
- ( a1 , b1 , c1 , d1 , e1 , f1 , g1 , h1 )
- );
- }
- }
- {
- typedef int const& cref_;
- using namespace checking::constants;
- cref_ a1 = a, b1 = b, c1 = c, d1 = d, e1 = e, f1 = f, g1 = g,
- h1 = h;
- BOOST_AUTO(ar, ref::assign_rebind::csv_anon
- ( a1 , b1 , c1 , d1 , e1 , f1 , g1 , h1 )
- );
- {
- using namespace checking;
- typedef container_tag::static_array tag_;
- do_check( tag_(), ar );
- }
- ar.assign( b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[0] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[1] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[2] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[3] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[4] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[5] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[6] , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar[7] , &b );
- }
- }
-
-}// xxx_csv_anon
-}// xxx_ref
-}// test_assign
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/csv_anon.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/csv_anon.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/csv_anon.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,24 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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_V2_CHAIN_TEST_REF_CSV_ARRAY_ER_2010_H
-#define BOOST_ASSIGN_V2_CHAIN_TEST_REF_CSV_ARRAY_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_ref{
-namespace xxx_csv_anon{
-
- void test();
-
-}// xxx_csv_anon
-}// xxx_ref
-}// test_assign
-
-#endif
-
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/fusion.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/fusion.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/fusion.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -12,8 +12,7 @@
#include <boost/mpl/vector/vector0.hpp>
#include <boost/mpl/vector/vector10.hpp>
#include <boost/array.hpp>
-#include <boost/tuple/tuple.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
+#include <boost/assign/v2/detail/checking/check.hpp>
#include <boost/assign/v2/ref/wrapper/copy.hpp>
#include <boost/assign/v2/ref/fusion.hpp>
#include <libs/assign/v2/test/ref/fusion.h>
@@ -23,7 +22,7 @@
namespace xxx_fusion{
void test()
- {
+ {
using namespace boost::assign::v2;
using namespace ref;
typedef assign_tag::copy tag1_;
@@ -32,70 +31,58 @@
typedef boost::mpl::int_<1> i1_;
typedef boost::mpl::int_<2> i2_;
{
- typedef int t0_;
- typedef int const t1_;
- typedef const char* t2_;
- t0_ a = 0;
- t1_ b = 1;
+ typedef int t0_;
+ typedef int const t1_;
+ typedef const char* t2_;
+ t0_ a = 0;
+#define B 2
t2_ c = "c";
- typedef nth_result_of::fusion<tag1_, tag2_> result_;
- typedef boost::mpl::apply1<result_,
- boost::mpl::vector<t0_,t1_,t2_>
+ typedef nth_result_of::fusion<tag1_, tag2_> result_;
+ typedef boost::mpl::apply1<result_,
+ boost::mpl::vector<t0_,t1_,t2_>
>::type ar_;
- ar_ ar = fusion<tag1_, tag2_>( _nil )( a )( b )( c );
+ ar_ ar = fusion<tag1_, tag2_>( _nil )( a )( B )( c );
ar.static_lookup( i0_() );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar.static_lookup( i0_() ), &a );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar.static_lookup( i1_() ), &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar.static_lookup( i2_() ), &c );
- {
- typedef boost::mpl::apply1<result_,
- boost::mpl::vector<t0_,t1_>
+ BOOST_ASSIGN_V2_CHECK( &ar.static_lookup( i0_() ) == &a );
+ BOOST_ASSIGN_V2_CHECK( ar.static_lookup( i1_() ) == B );
+ BOOST_ASSIGN_V2_CHECK( &ar.static_lookup( i2_() ) == &c );
+ {
+ typedef boost::mpl::apply1<result_,
+ boost::mpl::vector<t0_,t1_>
>::type ar2_;
- ar2_ ar2 = ar.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar2.back(), &b );
- typedef boost::mpl::apply1<result_,
- boost::mpl::vector<t0_>
+ ar2_ ar2 = ar.pop();
+ BOOST_ASSIGN_V2_CHECK( ar2.back() == B );
+ typedef boost::mpl::apply1<result_,
+ boost::mpl::vector<t0_>
>::type ar1_;
- ar1_ ar1 = ar2.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( &ar1.back(), &a );
- typedef boost::mpl::apply1<
- result_,
- boost::mpl::vector0<>
+ ar1_ ar1 = ar2.pop();
+ BOOST_ASSIGN_V2_CHECK( &ar1.back() == &a );
+ typedef boost::mpl::apply1<
+ result_,
+ boost::mpl::vector0<>
>::type ar0_;
- ar0_ ar0 = ar1.pop();
+ ar0_ ar0 = ar1.pop();
}
+#undef B
}
{
- typedef int t_;
- t_ a = 0;
- t_ b = 1;
+ typedef int t_;
+ t_ a = 0;
+ t_ b = 1;
t_ c = 2;
- typedef wrapper<tag1_,t_> w_;
- typedef boost::array<w_,3> arw_;
- typedef nth_result_of::fusion<tag1_, tag2_> result_;
- typedef boost::mpl::apply1<result_,
+ typedef wrapper<tag1_,t_> w_;
+ typedef boost::array<w_,3> arw_;
+ typedef nth_result_of::fusion<tag1_, tag2_> result_;
+ typedef boost::mpl::apply1<result_,
boost::mpl::vector<t_,t_,t_>
>::type ar_;
- ar_ ar = fusion<tag1_, tag2_>( _nil )( a )( b )( c );
+ ar_ ar = fusion<tag1_, tag2_>( _nil )( a )( b )( c );
arw_ arw;
assign_array( arw, ar );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &arw[ 0 ].unwrap() , &a );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &arw[ 1 ].unwrap() , &b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &arw[ 2 ].unwrap() , &c );
- }
- {
- typedef int t_;
- t_ a = 0;
- t_ b = 1;
- t_ c = 2;
- typedef boost::tuple<t_ const&> tuple_;
- typedef nth_result_of::fusion<tag1_,tag2_> result_;
- typedef boost::mpl::apply1<result_,
- boost::mpl::vector<t_,t_,t_>
- >::type ar_;
- fusion<tag1_, tag2_>( _nil )
- ( tuple_( a ) )( tuple_( b ) )( tuple_( c ) );
+ BOOST_ASSIGN_V2_CHECK( &arw[ 0 ].unwrap() == &a );
+ BOOST_ASSIGN_V2_CHECK( &arw[ 1 ].unwrap() == &b );
+ BOOST_ASSIGN_V2_CHECK( &arw[ 2 ].unwrap() == &c );
}
}
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/fusion_matrix.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/fusion_matrix.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/fusion_matrix.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,130 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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) //
-//////////////////////////////////////////////////////////////////////////////
-#include <boost/mpl/vector/vector0.hpp>
-#include <boost/mpl/vector/vector10.hpp>
-#include <boost/mpl/vector.hpp>
-#include <boost/mpl/assert.hpp>
-
-#include <boost/type_traits/is_same.hpp>
-#include <boost/typeof/typeof.hpp>
-
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
-#include <boost/assign/v2/ref/fusion_matrix/container.hpp>
-#include <boost/assign/v2/ref/fusion_matrix/nth_result_of.hpp>
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#else
-#include <boost/assign/v2/detail/config/limit_lvalue_const_arity.hpp>
-#if BOOST_ASSIGN_V2_LIMIT_LVALUE_CONST_ARITY < 2
-#error
-#endif
-#endif
-
-#include <libs/assign/v2/test/ref/fusion_matrix.h>
-
-namespace test_assign_v2{
-namespace xxx_ref{
-namespace xxx_fusion_matrix{
-
- void test()
- {
- using namespace boost::assign::v2;
- typedef ref::fusion_matrix_aux::empty<>::type empty_;
- typedef int value_; typedef value_ const cvalue_;
- typedef value_ a_; typedef cvalue_ b_;
- typedef ref::nth_result_of::fusion_matrix<> meta_result_;
- typedef boost::mpl::vector0<> v0_;
- typedef boost::mpl::vector1<a_> v1_a_;
- typedef boost::mpl::vector1<b_> v1_b_;
- typedef boost::mpl::vector2<a_, a_> v2_a_a_;
- typedef boost::mpl::vector2<a_, b_> v2_a_b_;
- typedef boost::mpl::vector2<b_, b_> v2_b_b_;
-#define MACRO(i, j, t)\
- {\
- typedef result_::static_row_result<i>::type row_;\
- row_ row = result.static_row( boost::mpl::int_<i>() );\
- BOOST_ASSIGN_V2_CHECK_EQUAL(\
- row.static_elem(boost::mpl::int_<j>() ), \
- t\
- );\
- }\
-/**/
- int a = 1;
- #define B 2
- {
-
- typedef boost::mpl::apply1<
- meta_result_,
- boost::mpl::vector<
- v1_a_,
- v1_b_,
- v0_,
- v2_a_a_,
- v2_a_b_,
- v2_b_b_
- >
- >::type result_;
- {
- // b passed as const lvalue
- cvalue_ b = B;
-
- empty_ e;
- result_ result = e // i k
- ( a ) // 0 1
- ( b ) // 1 1
- ( ) // 2 0
- ( a, a ) // 3 2
- ( a, b ) // 4 2
- ( b, b ); // 5 2
-
- MACRO(0, 0, a)
- MACRO(1, 0, b)
- typedef result_::static_row_result<3>::type row_;
- row_ row = result.static_row( boost::mpl::int_<3>() );
- MACRO(3, 0, a)
- MACRO(3, 1, a)
- MACRO(4, 0, a)
- MACRO(4, 1, b)
- MACRO(5, 0, b)
- MACRO(5, 1, b)
- }
- {
- // b passed as rvalue
- empty_ e;
- result_ result = e // i k
- ( a ) // 0 1
- ( B ) // 1 1
- ( ) // 2 0
- ( a, a ) // 3 2
- ( a, B ) // 4 2
- ( B, B ); // 5 2
-
- MACRO(0, 0, a)
- MACRO(1, 0, B)
- typedef result_::static_row_result<3>::type row_;
- row_ row = result.static_row( boost::mpl::int_<3>() );
-
- MACRO(3, 0, a)
- MACRO(3, 1, a)
- MACRO(4, 0, a)
- MACRO(4, 1, B)
- MACRO(5, 0, B)
- MACRO(5, 1, B)
- }
-
- #undef B
- }
-#undef MACRO
-
- }
-
-}// xxx_fusion_matrix
-}// xxx_ref
-}// test_assign
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/fusion_matrix.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/fusion_matrix.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/fusion_matrix.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,23 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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_V2_TEST_REF_FUSION_MATRIX_ER_2010_H
-#define BOOST_ASSIGN_V2_TEST_REF_FUSION_MATRIX_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_ref{
-namespace xxx_fusion_matrix{
-
- void test();
-
-}// xxx_fusion_matrix
-}// xxx_ref
-}// test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/wrapper.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/wrapper.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/wrapper.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -9,7 +9,7 @@
//////////////////////////////////////////////////////////////////////////////
#include <boost/mpl/assert.hpp>
#include <boost/assign/v2/ref/wrapper.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
+#include <boost/assign/v2/detail/checking/check.hpp>
#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
#include <libs/assign/v2/test/ref/wrapper.h>
@@ -25,27 +25,15 @@
typedef ref::type_traits::copy_wrapper<val_>::type w_;
w_ w;
val_ a = 1, b = 2, c = 3;
- w.rebind( a ); BOOST_ASSIGN_V2_CHECK_EQUAL( &w.unwrap(), &a );
- w.assign( b ); BOOST_ASSIGN_V2_CHECK_EQUAL( a, b );
- w = c; BOOST_ASSIGN_V2_CHECK_EQUAL( a, c );
+ w.rebind( a ); BOOST_ASSIGN_V2_CHECK( &w.unwrap() == &a );
+ w.assign( b ); BOOST_ASSIGN_V2_CHECK( a == b );
+ w = c; BOOST_ASSIGN_V2_CHECK( a == c );
}
{
typedef ref::type_traits::copy_wrapper<val_ const>::type w_;
w_ w;
val_ a = 1;
- w.rebind( a ); BOOST_ASSIGN_V2_CHECK_EQUAL( &w.unwrap(), &a );
- }
- {
- typedef ref::type_traits::rebind_wrapper<val_>::type w_;
- w_ w;
- val_ a = 1;
- w = a; BOOST_ASSIGN_V2_CHECK_EQUAL( &w.unwrap(), &a );
- }
- {
- typedef ref::type_traits::rebind_wrapper<val_ const>::type w_;
- w_ w;
- val_ const a = 1;
- w = a; BOOST_ASSIGN_V2_CHECK_EQUAL( &w.unwrap(), &a );
+ w.rebind( a ); BOOST_ASSIGN_V2_CHECK( &w.unwrap() == &a );
}
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
{
@@ -56,12 +44,12 @@
{
val_&& a = 1;
w_ w( a );
- BOOST_ASSIGN_V2_CHECK_EQUAL( &w.unwrap(), &a );
+ BOOST_ASSIGN_V2_CHECK( &w.unwrap() == &a );
}
{
cval_ a = 1;
w_ w = w_( 1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( w.unwrap(), a );
+ BOOST_ASSIGN_V2_CHECK( w.unwrap() == a );
}
}
#endif
Modified: sandbox/statistics/support/libs/assign/v2/test/ref/wrapper.h
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/ref/wrapper.h (original)
+++ sandbox/statistics/support/libs/assign/v2/test/ref/wrapper.h 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -7,8 +7,8 @@
// 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_V2_CHAIN_TEST_REF_WRAPPER_ER_2010_H
-#define BOOST_ASSIGN_V2_CHAIN_TEST_REF_WRAPPER_ER_2010_H
+#ifndef BOOST_ASSIGN_V2_TEST_REF_WRAPPER_ER_2010_H
+#define BOOST_ASSIGN_V2_TEST_REF_WRAPPER_ER_2010_H
namespace test_assign_v2{
namespace xxx_ref{
Modified: sandbox/statistics/support/libs/assign/v2/test/type_traits/has_push.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/type_traits/has_push.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/type_traits/has_push.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -20,20 +20,17 @@
void test()
{
- namespace ns = boost::assign::v2::container_type_traits;
+ namespace as2 = boost::assign::v2;
+ namespace ns = as2::container_type_traits;
{
- typedef std::queue<int> v_;
- typedef ns::has_push<v_> has_push_;
-
- //typedef void (v_::*fp_)(int const&) ;
- //fp_ fp = &v_::push; v_ v; ((v).*fp)( 1 );
- //BOOST_ASSERT(v.front() == 1);
- BOOST_STATIC_ASSERT( has_push_::value );
+ typedef std::queue<int> v_;
+ typedef ns::has_push<v_> has_push_;
+ BOOST_STATIC_ASSERT( has_push_::value );
}
{
- typedef std::stack<int> v_;
- typedef ns::has_push<v_> has_push_;
- BOOST_STATIC_ASSERT( has_push_::value );
+ typedef std::stack<int> v_;
+ typedef ns::has_push<v_> has_push_;
+ BOOST_STATIC_ASSERT( has_push_::value );
}
{
typedef std::vector<int> v_;
Modified: sandbox/statistics/support/libs/assign/v2/test/type_traits/has_static_size.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/type_traits/has_static_size.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/type_traits/has_static_size.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -7,13 +7,14 @@
// Boost Software License, Version 1.0. (See accompanying file //
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
//////////////////////////////////////////////////////////////////////////////
+#include <cstddef>
#include <boost/array.hpp>
#include <boost/static_assert.hpp>
#include <boost/assign/v2/detail/type_traits/container/has_static_size.hpp>
-#include <boost/assign/v2/ref/anon/functor/assign_copy.hpp>
+#include <boost/assign/v2/ref/array/functor.hpp>
#include <libs/assign/v2/test/type_traits/has_static_size.h>
-struct foo{
+struct my_cont{
typedef std::size_t size_type;
};
@@ -23,21 +24,20 @@
void test()
{
- using namespace boost::assign::v2;
+ namespace as2 = boost::assign::v2;
{
typedef boost::array<int,1> cont_;
- typedef container_type_traits::has_static_size<cont_> pred_;
+ typedef as2::container_type_traits::has_static_size<cont_> pred_;
BOOST_STATIC_ASSERT( pred_::value );
}
{
- typedef ref::assign_copy::result_of::empty_anon<
- int>::type cont_;
- typedef container_type_traits::has_static_size<cont_> pred_;
+ typedef as2::ref::result_of::empty_array<int>::type cont_;
+ typedef as2::container_type_traits::has_static_size<cont_> pred_;
BOOST_STATIC_ASSERT( pred_::value );
}
{
- typedef foo cont_;
- typedef container_type_traits::has_static_size<cont_> pred_;
+ typedef my_cont cont_;
+ typedef as2::container_type_traits::has_static_size<cont_> pred_;
BOOST_STATIC_ASSERT( !pred_::value );
}
}
Modified: sandbox/statistics/support/libs/assign/v2/test/type_traits/has_value_type.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/type_traits/has_value_type.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/type_traits/has_value_type.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -8,6 +8,7 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
//////////////////////////////////////////////////////////////////////////////
#include <vector>
+#include <cstddef>
#include <boost/static_assert.hpp>
#include <boost/assign/v2/detail/type_traits/has_value_type.hpp>
#include <libs/assign/v2/test/type_traits/has_value_type.h>
@@ -18,15 +19,15 @@
void test(){
- using namespace boost::assign::v2;
+ namespace as2 = boost::assign::v2;
{
typedef std::vector<int> inp_;
- typedef type_traits::has_value_type<inp_>::type pred_;
+ typedef as2::type_traits::has_value_type<inp_>::type pred_;
BOOST_STATIC_ASSERT(pred_::value);
}
{
typedef int inp_;
- typedef type_traits::has_value_type<inp_>::type pred_;
+ typedef as2::type_traits::has_value_type<inp_>::type pred_;
BOOST_STATIC_ASSERT(!pred_::value);
}
}
Modified: sandbox/statistics/support/libs/assign/v2/test/unit_testing/Jamfile.v2
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/unit_testing/Jamfile.v2 (original)
+++ sandbox/statistics/support/libs/assign/v2/test/unit_testing/Jamfile.v2 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -18,11 +18,8 @@
test-suite assign :
[ assign-test type_traits ]
[ assign-test detail ]
- [ assign-test anon ]
[ assign-test chain ]
[ assign-test put ]
- [ assign-test put_compose ]
- [ assign-test put_range ]
[ assign-test ref ]
;
Modified: sandbox/statistics/support/libs/assign/v2/test/unit_testing/anon.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/unit_testing/anon.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/unit_testing/anon.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,32 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_UNIT_TEST_ANON_ER_2010_CPP
-#define LIBS_ASSIGN_V2_TEST_UNIT_TEST_ANON_ER_2010_CPP
-
-#include <iostream> // needed?
-
-#include <boost/test/test_tools.hpp>
-#define BOOST_ASSIGN_CHECK_EQUAL(a,b) BOOST_CHECK_EQUAL(a,b)
-#include <libs/assign/v2/test/anon/anon.cpp>
-
-#include <boost/test/unit_test.hpp>
-using boost::unit_test::test_suite;
-test_suite* init_unit_test_suite( int argc, char* argv[] )
-{
- test_suite* test = BOOST_TEST_SUITE( "BOOST_ASSIGN_V2" );
- using namespace test_assign_v2;
- {
- namespace ns = xxx_anon;
- test->add( BOOST_TEST_CASE( &ns::xxx_anon::test ) );
- }
- return test;
-}
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/unit_testing/chain.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/unit_testing/chain.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/unit_testing/chain.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -13,21 +13,15 @@
#include <iostream> // needed?
#include <boost/test/test_tools.hpp>
-#define BOOST_ASSIGN_CHECK_EQUAL(a,b) BOOST_CHECK_EQUAL(a,b)
-#include <libs/assign/v2/test/chain/convert.cpp>
-#include <libs/assign/v2/test/chain/chain.cpp>
-
+#define BOOST_ASSIGN_V2_CHECK( p ) BOOST_CHECK( p )
+#include <libs/assign/v2/test/chain.cpp>
#include <boost/test/unit_test.hpp>
using boost::unit_test::test_suite;
test_suite* init_unit_test_suite( int argc, char* argv[] )
{
test_suite* test = BOOST_TEST_SUITE( "BOOST_ASSIGN_V2" );
using namespace test_assign_v2;
- {
- namespace ns = xxx_chain;
- test->add( BOOST_TEST_CASE( &ns::xxx_convert::test ) );
- test->add( BOOST_TEST_CASE( &ns::xxx_chain::test ) );
- }
+ test->add( BOOST_TEST_CASE( &xxx_chain::test ) );
return test;
}
Modified: sandbox/statistics/support/libs/assign/v2/test/unit_testing/detail.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/unit_testing/detail.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/unit_testing/detail.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -13,8 +13,8 @@
#include <iostream> // needed?
#include <boost/test/test_tools.hpp>
-#define BOOST_ASSIGN_CHECK_EQUAL(a,b) BOOST_CHECK_EQUAL(a,b)
-#include <libs/assign/v2/test/detail/functor.cpp>
+#define BOOST_ASSIGN_V2_CHECK( p ) BOOST_CHECK( p )
+#include <libs/assign/v2/test/detail.cpp>
#include <boost/test/unit_test.hpp>
using boost::unit_test::test_suite;
@@ -23,8 +23,7 @@
test_suite* test = BOOST_TEST_SUITE( "BOOST_ASSIGN_V2" );
using namespace test_assign_v2;
{
- using namespace xxx_detail;
- test->add( BOOST_TEST_CASE( &xxx_functor::test ) );
+ test->add( BOOST_TEST_CASE( &xxx_detail::test ) );
}
return test;
}
Modified: sandbox/statistics/support/libs/assign/v2/test/unit_testing/put.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/unit_testing/put.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/unit_testing/put.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -13,13 +13,21 @@
#include <iostream> // needed?
#include <boost/test/test_tools.hpp>
-#define BOOST_ASSIGN_CHECK_EQUAL(a,b) BOOST_CHECK_EQUAL(a,b)
-#include <libs/assign/v2/test/put/modulo_op.cpp>
-#include <libs/assign/v2/test/put/ptr.cpp>
+#define BOOST_ASSIGN_V2_CHECK( p ) BOOST_CHECK( p )
+
#include <libs/assign/v2/test/put/static.cpp>
#include <libs/assign/v2/test/put/stl.cpp>
#include <libs/assign/v2/test/put/tuple_refs.cpp>
-
+#include <libs/assign/v2/test/put/convert.cpp>
+#include <libs/assign/v2/test/put/deque.cpp>
+#include <libs/assign/v2/test/put/modulo.cpp>
+#include <libs/assign/v2/test/put/ptr.cpp>
+#include <libs/assign/v2/test/put/pipe/forward_pars.cpp>
+#include <libs/assign/v2/test/put/pipe/functor/container.cpp>
+#include <libs/assign/v2/test/put/pipe/functor/forward.cpp>
+#include <libs/assign/v2/test/put/pipe/csv.cpp>
+#include <libs/assign/v2/test/put/pipe/ext.cpp>
+#include <libs/assign/v2/test/put/pipe/stl.cpp>
#include <boost/test/unit_test.hpp>
using boost::unit_test::test_suite;
test_suite* init_unit_test_suite( int argc, char* argv[] )
@@ -27,12 +35,20 @@
test_suite* test = BOOST_TEST_SUITE( "BOOST_ASSIGN_V2" );
using namespace test_assign_v2;
{
- using namespace xxx_put;
- test->add( BOOST_TEST_CASE( &xxx_modulo_op::test ) );
- test->add( BOOST_TEST_CASE( &xxx_ptr::test ) );
- test->add( BOOST_TEST_CASE( &xxx_static::test ) );
- test->add( BOOST_TEST_CASE( &xxx_stl::test ) );
- test->add( BOOST_TEST_CASE( &xxx_tuple_refs::test ) );
+ namespace ns = xxx_put;
+ test->add( BOOST_TEST_CASE( &ns::xxx_static::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_stl::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_tuple_refs::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_convert::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_deque::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_modulo::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_ptr::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_pipe::xxx_forward_pars::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_pipe::xxx_functor::xxx_container::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_pipe::xxx_functor::xxx_forward::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_pipe::xxx_csv::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_pipe::xxx_ext::test ) );
+ test->add( BOOST_TEST_CASE( &ns::xxx_pipe::xxx_stl::test ) );
}
return test;
}
Modified: sandbox/statistics/support/libs/assign/v2/test/unit_testing/put_compose.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/unit_testing/put_compose.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/unit_testing/put_compose.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,53 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_UNIT_TEST_PUT_COMPOSE_ER_2010_CPP
-#define LIBS_ASSIGN_V2_TEST_UNIT_TEST_PUT_COMPOSE_ER_2010_CPP
-
-#include <iostream> // needed?
-
-#include <boost/test/test_tools.hpp>
-#define BOOST_ASSIGN_CHECK_EQUAL(a,b) BOOST_CHECK_EQUAL(a,b)
-#include <libs/assign/v2/test/put/compose/common/forward_parameter.cpp>
-#include <libs/assign/v2/test/put/compose/csv/composer.cpp>
-#include <libs/assign/v2/test/put/compose/csv/stl.cpp>
-#include <libs/assign/v2/test/put/compose/functor/composer.cpp>
-#include <libs/assign/v2/test/put/compose/functor/forward_args.cpp>
-#include <libs/assign/v2/test/put/compose/functor/forward_seq_args.cpp>
-#include <libs/assign/v2/test/put/compose/functor/stl.cpp>
-
-#include <boost/test/unit_test.hpp>
-using boost::unit_test::test_suite;
-test_suite* init_unit_test_suite( int argc, char* argv[] )
-{
- test_suite* test = BOOST_TEST_SUITE( "BOOST_ASSIGN_V2" );
- using namespace test_assign_v2;
- {
- using namespace xxx_put::xxx_compose;
- {
- using namespace xxx_common;
- test->add( BOOST_TEST_CASE( &xxx_forward_parameter::test ) );
- }
- {
- using namespace xxx_csv;
- test->add( BOOST_TEST_CASE( &xxx_composer::test ) );
- test->add( BOOST_TEST_CASE( &xxx_stl::test ) );
- }
- {
- using namespace xxx_functor;
- test->add( BOOST_TEST_CASE( &xxx_composer::test ) );
- test->add( BOOST_TEST_CASE( &xxx_forward_args::test ) );
- test->add( BOOST_TEST_CASE( &xxx_forward_seq_args::test ) );
- test->add( BOOST_TEST_CASE( &xxx_stl::test ) );
- }
- }
- return test;
-}
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/unit_testing/put_range.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/unit_testing/put_range.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/unit_testing/put_range.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -1,32 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 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 LIBS_ASSIGN_V2_TEST_UNIT_TEST_PUT_RANGE_ER_2010_CPP
-#define LIBS_ASSIGN_V2_TEST_UNIT_TEST_PUT_RANGE_ER_2010_CPP
-
-#include <iostream> // needed?
-
-#include <boost/test/test_tools.hpp>
-#define BOOST_ASSIGN_CHECK_EQUAL(a,b) BOOST_CHECK_EQUAL(a,b)
-#include <libs/assign/v2/test/put_range/convert.cpp>
-
-#include <boost/test/unit_test.hpp>
-using boost::unit_test::test_suite;
-test_suite* init_unit_test_suite( int argc, char* argv[] )
-{
- test_suite* test = BOOST_TEST_SUITE( "BOOST_ASSIGN_V2" );
- using namespace test_assign_v2;
- {
- using namespace xxx_put_range;
- test->add( BOOST_TEST_CASE( &xxx_convert::test ) );
- }
- return test;
-}
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/libs/assign/v2/test/unit_testing/ref.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/unit_testing/ref.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/unit_testing/ref.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -13,13 +13,13 @@
#include <iostream> // needed?
#include <boost/test/test_tools.hpp>
-#define BOOST_ASSIGN_CHECK_EQUAL(a,b) BOOST_CHECK_EQUAL(a,b)
+#define BOOST_ASSIGN_V2_CHECK( p ) BOOST_CHECK( p )
#include <libs/assign/v2/test/ref/convert_traits.cpp>
#include <libs/assign/v2/test/ref/wrapper.cpp>
#include <libs/assign/v2/test/ref/fusion.cpp>
-#include <libs/assign/v2/test/ref/fusion_matrix.cpp>
-#include <libs/assign/v2/test/ref/csv_anon.cpp>
-#include <libs/assign/v2/test/ref/anon.cpp>
+#include <libs/assign/v2/test/ref/list_tuple.cpp>
+#include <libs/assign/v2/test/ref/array.cpp>
+#include <libs/assign/v2/test/ref/csv_array.cpp>
#include <boost/test/unit_test.hpp>
using boost::unit_test::test_suite;
@@ -32,9 +32,9 @@
test->add( BOOST_TEST_CASE( &xxx_convert_traits::test ) );
test->add( BOOST_TEST_CASE( &xxx_wrapper::test ) );
test->add( BOOST_TEST_CASE( &xxx_fusion::test ) );
- test->add( BOOST_TEST_CASE( &xxx_fusion_matrix::test ) );
- test->add( BOOST_TEST_CASE( &xxx_anon::test ) );
- test->add( BOOST_TEST_CASE( &xxx_csv_anon::test ) );
+ test->add( BOOST_TEST_CASE( &xxx_list_tuple::test ) );
+ test->add( BOOST_TEST_CASE( &xxx_array::test ) );
+ test->add( BOOST_TEST_CASE( &xxx_csv_array::test ) );
}
return test;
}
Modified: sandbox/statistics/support/libs/assign/v2/test/unit_testing/type_traits.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/unit_testing/type_traits.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/unit_testing/type_traits.cpp 2011-01-08 17:48:34 EST (Sat, 08 Jan 2011)
@@ -13,7 +13,7 @@
#include <iostream> // needed?
#include <boost/test/test_tools.hpp>
-#define BOOST_ASSIGN_CHECK_EQUAL(a,b) BOOST_CHECK_EQUAL(a,b)
+#define BOOST_ASSIGN_V2_CHECK( p ) BOOST_CHECK( p )
#include <libs/assign/v2/test/type_traits/has_push.cpp>
#include <libs/assign/v2/test/type_traits/has_value_type.cpp>
#include <libs/assign/v2/test/type_traits/has_static_size.cpp>
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