Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64518 - in sandbox/SOC/2010/bit_masks/boost/integer: . detail/bitfield_vector
From: bbartmanboost_at_[hidden]
Date: 2010-08-01 08:47:39


Author: bbartman
Date: 2010-08-01 08:47:38 EDT (Sun, 01 Aug 2010)
New Revision: 64518
URL: http://svn.boost.org/trac/boost/changeset/64518

Log:
committing a file so that I can change its name without conflict
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_vector.hpp | 2
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bitfield_vector/bitfield_vector_memeber_impl.hpp | 59 ++++++++++++++++++++++++++++++++++++++++
   2 files changed, 60 insertions(+), 1 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/boost/integer/bitfield_vector.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/bitfield_vector.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/bitfield_vector.hpp 2010-08-01 08:47:38 EDT (Sun, 01 Aug 2010)
@@ -6,7 +6,7 @@
 #ifndef BOOST_BITFIELD_VECTOR_HPP
 #define BOOST_BITFIELD_VECTOR_HPP
 #include <memory>
-#include <boost/integer/detail/bitfield_vector/bitfield_vector_base.hpp>
+#include <boost/integer/detail/bitfield_vector/bitfield_vector_member_impl.hpp>
 
 namespace boost {
 

Modified: sandbox/SOC/2010/bit_masks/boost/integer/detail/bitfield_vector/bitfield_vector_memeber_impl.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bitfield_vector/bitfield_vector_memeber_impl.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/detail/bitfield_vector/bitfield_vector_memeber_impl.hpp 2010-08-01 08:47:38 EDT (Sun, 01 Aug 2010)
@@ -0,0 +1,59 @@
+// 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_MEMBER_IMPL_HPP
+#define BOOST_BITFIELD_MEMBER_IMPL_HPP
+#include "bitfield_vector_base.hpp"
+
+
+namespace boost { namespace detail {
+
+/** bitfield_vector_member_impl
+ * This implements the members basic member functions so that they can be
+ * tested outside of the bitfield_vector it self and the used to implement
+ * the rest of the functionalility of the bitfield_vector with out as much
+ * trouble.
+ *
+ *
+ * This level of the data structures deals with constructing the object
+ * correctly and the implementing a lot of details related to the
+ * bitfeild_vector which would other wise be private.
+ *
+ */
+template <typename T, typename Alloc>
+struct bitfield_vector_member_impl
+ :bitfield_vector_base<T,Alloc>
+{
+
+ /** Base class of the bitfield_vector_impl. */
+ typedef bitfield_vector_base<T,Alloc> _base;
+
+ /** Default Constructor. */
+ bitfield_vector_member_impl()
+ :_base()
+ { }
+
+ /** Constructor over an allocator. */
+ bitfield_vector_member_impl(typename _base::allocator const& alloc)
+ :_base(alloc)
+ { }
+
+ /** Array Constructor. */
+ bitfield_vector_member_impl(std::size_t n)
+ :_base(n)
+ { }
+
+ /** Array + Allocator Constructor. */
+ bitfield_vector_member_impl(std::size_t n,
+ typename _base::allocator const& alloc)
+ :_base(n,alloc)
+ { }
+
+};
+
+}} // end boost::detail
+
+
+#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