Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63848 - in sandbox/SOC/2010/bit_masks/boost/integer: . bitfield_tuple detail detail/bft
From: bbartmanboost_at_[hidden]
Date: 2010-07-11 08:07:30


Author: bbartman
Date: 2010-07-11 08:07:29 EDT (Sun, 11 Jul 2010)
New Revision: 63848
URL: http://svn.boost.org/trac/boost/changeset/63848

Log:
re organizing my code so that header fiels are were they should be
Added:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple/align.hpp
      - copied unchanged from r63847, /sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/align.hpp
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple/filler.hpp
      - copied unchanged from r63847, /sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/filler.hpp
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple/flag.hpp
      - copied unchanged from r63847, /sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/flag.hpp
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple/member.hpp
      - copied unchanged from r63847, /sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/member.hpp
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple/storage.hpp
      - copied unchanged from r63847, /sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/storage.hpp
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/bitfield_tuple_impl.hpp
      - copied unchanged from r63847, /sandbox/SOC/2010/bit_masks/boost/integer/detail/bitfield_tuple_impl.hpp
Removed:
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/align.hpp
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/filler.hpp
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/flag.hpp
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/member.hpp
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/storage.hpp
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bitfield_tuple_impl.hpp
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp | 2 +-
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/arg_parse_impl.hpp | 12 ++++++------
   2 files changed, 7 insertions(+), 7 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-07-11 08:07:29 EDT (Sun, 11 Jul 2010)
@@ -7,7 +7,7 @@
 #ifndef BOOST_BITFIELD_TUPLE_HPP
 #define BOOST_BITFIELD_TUPLE_HPP
 #include <boost/integer/detail/bft/template_expansion_macros.hpp>
-#include <boost/integer/detail/bitfield_tuple_impl.hpp>
+#include <boost/integer/detail/bft/bitfield_tuple_impl.hpp>
 #include <boost/bitfield/bitfield.hpp>
 #include <boost/integer/detail/bft/name_lookup.hpp>
 #include <boost/mpl/not.hpp>

Deleted: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/align.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/align.hpp 2010-07-11 08:07:29 EDT (Sun, 11 Jul 2010)
+++ (empty file)
@@ -1,21 +0,0 @@
-// Copyright 2010 Brian Bartman.
-// 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)
-
-
-#ifndef BOOST_BITFIELD_TUPLE_ALIGNED_HPP
-#define BOOST_BITFIELD_TUPLE_ALIGNED_HPP
-#include <cstddef>
-
-namespace boost {
-
-namespace bitfields {
-/** Allows the alignment to be set to the next bit which has the same alignment
- * as the as AlignTo specifies relative to the current offset in bits.
- */
-template <std::size_t AlignTo>
-struct bit_align;
-}} // end boost::bitfields
-
-#endif

Modified: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/arg_parse_impl.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/arg_parse_impl.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/arg_parse_impl.hpp 2010-07-11 08:07:29 EDT (Sun, 11 Jul 2010)
@@ -14,14 +14,14 @@
 #include <boost/mpl/arithmetic.hpp>
 #include <boost/mpl/find_if.hpp>
 
-#include <boost/integer/detail/bft/storage.hpp>
-#include <boost/integer/detail/bft/member.hpp>
-#include <boost/integer/detail/bft/name_lookup.hpp>
-#include <boost/integer/detail/bft/flag.hpp>
-#include <boost/integer/detail/bft/filler.hpp>
-#include <boost/integer/detail/bft/align.hpp>
 
+#include <boost/integer/bitfield_tuple/storage.hpp>
+#include <boost/integer/bitfield_tuple/member.hpp>
+#include <boost/integer/bitfield_tuple/flag.hpp>
+#include <boost/integer/bitfield_tuple/filler.hpp>
+#include <boost/integer/bitfield_tuple/align.hpp>
 
+#include <boost/integer/detail/bft/name_lookup.hpp>
 
 namespace boost { namespace detail {
 

Deleted: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/filler.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/filler.hpp 2010-07-11 08:07:29 EDT (Sun, 11 Jul 2010)
+++ (empty file)
@@ -1,21 +0,0 @@
-// Copyright 2010 Brian Bartman.
-// 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)
-
-
-#ifndef BOOST_BITFIELD_TUPLE_FILLER_HPP
-#define BOOST_BITFIELD_TUPLE_FILLER_HPP
-#include <cstddef>
-
-namespace boost {
-namespace bitfields {
-/** Template is used to specify a size or ammound of bits which is
- * not to be used but instead to be filled with padding or unused bits.
- */
-template < std::size_t N>
-struct filler;
-
-}} // end boost::bitfields
-
-#endif

Deleted: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/flag.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/flag.hpp 2010-07-11 08:07:29 EDT (Sun, 11 Jul 2010)
+++ (empty file)
@@ -1,25 +0,0 @@
-// Copyright 2010 Brian Bartman.
-// 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)
-
-
-#ifndef BOOST_FLAG_FIELD_HPP
-#define BOOST_FLAG_FIELD_HPP
-
-
-
-namespace boost {
-namespace bitfields {
-/** Allows the user to simplify the creation of a bool member by simply
- * requiring that they specify a name and assuming that if the flag is used
- * that the underlying type's width is going to be 1.
- */
-template <typename ReturnType>
-struct flag;
-
-
-
-}} // end boost::bitfields
-
-#endif

Deleted: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/member.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/member.hpp 2010-07-11 08:07:29 EDT (Sun, 11 Jul 2010)
+++ (empty file)
@@ -1,30 +0,0 @@
-// Copyright 2010 Brian Bartman.
-// 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)
-
-
-#ifndef BOOST_MEMBER_FIELD_HPP
-#define BOOST_MEMBER_FIELD_HPP
-#include <cstddef>
-#include <boost/type_traits.hpp>
-#include <boost/static_assert.hpp>
-#include <boost/mpl/size_t.hpp>
-#include <boost/integer/bit_width.hpp>
-
-
-namespace boost {
-namespace bitfields {
-
-/** The purpose of the member struct is to provide a simple way of passing
- * parameters into a bitfield_tuple or bit_mask_tuple. The use of this is
- * specifically to associate a group of parameters to gather within a type
- * and make it easier for the data structure to figure out what to do with
- * those parameter.
- */
-template <typename ReturnType, typename Name, std::size_t FieldWidth>
-struct member;
-
-}} // end boost::bitfields
-
-#endif

Deleted: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/storage.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/storage.hpp 2010-07-11 08:07:29 EDT (Sun, 11 Jul 2010)
+++ (empty file)
@@ -1,21 +0,0 @@
-// Copyright 2010 Brian Bartman.
-// 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)
-
-
-#ifndef BOOST_BIT_MASKS_TAGGED_HPP
-#define BOOST_BIT_MASKS_TAGGED_HPP
-
-namespace boost {
-namespace bitfields {
-
-/** Storage type used for moving the type to be used for interenal storage
- * around within the template parameters of a bitfield_tuple.
- */
-template < typename StorageType>
-struct storage;
-
-}} // end boost::bitfields
-
-#endif

Deleted: sandbox/SOC/2010/bit_masks/boost/integer/detail/bitfield_tuple_impl.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bitfield_tuple_impl.hpp 2010-07-11 08:07:29 EDT (Sun, 11 Jul 2010)
+++ (empty file)
@@ -1,93 +0,0 @@
-// Copyright 2010 Brian Bartman.
-// 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)
-
-
-#ifndef BOOST_BITFIELD_TUPLE_IMPL_HPP
-#define BOOST_BITFIELD_TUPLE_IMPL_HPP
-
-// Integer Includes.
-#include <boost/integer/bits_mask.hpp>
-#include <boost/integer/bit_width.hpp>
-
-// std includes
-#include <cstddef>
-
-// Other boost includes.
-#include <boost/type_traits.hpp>
-#include <boost/static_assert.hpp>
-
-// implementation header files.
-#include <boost/integer/detail/bft/bft_element.hpp>
-#include <boost/integer/detail/bft/arg_parse_impl.hpp>
-#include <boost/integer/detail/bft/deduce_storage.hpp>
-
-namespace boost { namespace detail {
-
-// The following preprocessor MACRO only used for writing clarity, it's only
-// used once and then undef'ed before the end of this file.
-#define BOOST_BFT_ARG_PROCESSING \
- detail::bft_arg_parse_impl<\
- T0, \
- mpl::void_,\
- mpl::vector<>,\
- mpl::size_t<0u>\
- >\
- BOOST_BFT_UNPACK_PARAMS()
-
-/** bitfield_tuple base class
- * The bitfield_tuple_base class is responsible for preforming static assertions on some
- * preconditions and dealing with the parsed arguments. This is the base class
- * for bitfield_tuple.
- *
- *
- * Base Class preconditions.
- *
- *
- *
- * 1) The bitfields specified must not exceed the bitwidth of the storage type.
- * Enforced. Not going any where, but may be redefined or altered based
- * on if I allow the supplied storage type to be an array.
- */
-template < BOOST_BFT_BASE_TEMPLATE_PARAMS() >
-struct bitfield_tuple_base {
-
-
- typedef typename BOOST_BFT_ARG_PROCESSING processed_args;
-
- // extracting te Arguments from processed_args relating to
- // the storage policy. Also preforming static assertios
- // where they can be done.
- typedef typename processed_args::storage_policy processed_storage_type;
- typedef typename processed_args::field_vector field_vector;
- typedef typename processed_args::offset offset;
-
- // deducing storage type
- typedef typename mpl::if_<
- is_same<
- processed_storage_type,
- mpl::void_
- >,
- typename detail::deduce_storage_type<offset>::type,
- processed_storage_type
- >::type storage_type;
-
-
-
-
- // Precondition: the offet at the end of everything must be the
- // the same as or less then the bit_width of the storage type.
- BOOST_STATIC_ASSERT((
- offset::value
- <=
- bit_width< storage_type >::value
- ));
-
-};
-
-}} // end boost::detail
-
-#undef BOOST_BFT_ARG_PROCESSING
-
-#endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk