|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63059 - in sandbox/SOC/2010/bit_masks: boost/integer boost/integer/details/bft/ext boost/integer/details/bft/ext/fusion lib/integer/test/bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-06-17 15:40:06
Author: bbartman
Date: 2010-06-17 15:40:06 EDT (Thu, 17 Jun 2010)
New Revision: 63059
URL: http://svn.boost.org/trac/boost/changeset/63059
Log:
completed fusion integration for bitfield_tuple
Text files modified:
sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp | 18 ++++++++++++++++++
sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/bitfield_tuple_fusion_includes.hpp | 4 ++--
sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/fusion/has_key_impl.hpp | 2 ++
sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/fusion/value_at_impl.hpp | 2 ++
sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/fusion_integration_testing.cpp | 4 ++--
5 files changed, 26 insertions(+), 4 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp 2010-06-17 15:40:06 EDT (Thu, 17 Jun 2010)
@@ -234,6 +234,24 @@
std::string to_string() const;
//@}
+ template <typename Name>
+ struct name_exists {
+ typedef typename mpl::not_<
+ is_same <
+ typename ::boost::mpl::find_if<
+ members,
+ details::match_name<
+ mpl::_1,
+ Name
+ >
+ >::type,
+ typename mpl::end<
+ members
+ >::type
+ >
+ >::type type;
+ };
+
/** Get function interfaces.
* These provide access into the tuple via "reference".
Modified: sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/bitfield_tuple_fusion_includes.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/bitfield_tuple_fusion_includes.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/bitfield_tuple_fusion_includes.hpp 2010-06-17 15:40:06 EDT (Thu, 17 Jun 2010)
@@ -21,7 +21,7 @@
#include "fusion/end_impl.hpp"
#include "fusion/at_key_impl.hpp"
#include "fusion/has_key_impl.hpp"
-#include "fusion/value_at_impl.hpp"
-#include "fusion/value_at_key_impl.hpp"
+// #include "fusion/value_at_impl.hpp"
+// #include "fusion/value_at_key_impl.hpp"
#endif
Modified: sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/fusion/has_key_impl.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/fusion/has_key_impl.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/fusion/has_key_impl.hpp 2010-06-17 15:40:06 EDT (Thu, 17 Jun 2010)
@@ -2,3 +2,5 @@
// Distributed under 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)
+
+// this is taken care of by intrinsic stuff from fusion.
Modified: sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/fusion/value_at_impl.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/fusion/value_at_impl.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/fusion/value_at_impl.hpp 2010-06-17 15:40:06 EDT (Thu, 17 Jun 2010)
@@ -2,3 +2,5 @@
// Distributed under 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)
+
+// can't find documentation for this and can't find a way to include it.
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/fusion_integration_testing.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/fusion_integration_testing.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/fusion_integration_testing.cpp 2010-06-17 15:40:06 EDT (Thu, 17 Jun 2010)
@@ -83,17 +83,17 @@
BOOST_ASSERT(( fusion::deref(fusion::prior(fusion::end(temp))) == 3 ));
}
- // at_key
+ // at_key testing
{
test_tuple temp;
temp.get<salmon>() = 3;
-
BOOST_ASSERT(( fusion::at_key<salmon>( temp ) == 3));
fusion::at_key<salmon>(temp) = 4;
BOOST_ASSERT(( fusion::at_key<salmon>( temp ) == 4));
BOOST_ASSERT(( temp.get<salmon>() == 4));
BOOST_ASSERT(( fusion::at_key<green>( temp ) == 0));
}
+
/*
bmg_t bmg;
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