Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63121 - in sandbox/SOC/2010/bit_masks: boost/integer lib/integer/test/bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-06-19 16:46:14


Author: bbartman
Date: 2010-06-19 16:46:13 EDT (Sat, 19 Jun 2010)
New Revision: 63121
URL: http://svn.boost.org/trac/boost/changeset/63121

Log:
working on creating some documentattion for my project cleaning up my header files to make them look more presentible.
Added:
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/to_string_testing.cpp (contents, props changed)
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp | 20 +++++++++++++-------
   1 files changed, 13 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-06-19 16:46:13 EDT (Sat, 19 Jun 2010)
@@ -22,7 +22,11 @@
 
 namespace boost {
 
+// TODO Move documentation into the correct place and redo with boostbook
+// formatting.
+
 /** bitfield_tuple
+ *
  * Description
  * This is a type which provides access to bitfields stored within integers
  * or other integral types (see future work, for extensions). This is a pseudo
@@ -294,13 +298,20 @@
  * 2) Switch the internal storage to an array which will allow the user
  * to store as many fields as the which to, with out the constraint of
  * being limited to an integral type.
- * 3) Complete the two string member function.
+ * 3) Complete to_string member function.
+ * I don't think I need this function.
  * 4) the type restrictions on storage may need to be relaxed.
  * 5) The if the storage type is a reference then possible allow for this type
  * to behave as reference to a bitfield_tuple instead of a bitfield type.
  * This would mean disabling the default constructor.
  *
- *
+ * 6) For second draft I would like to restructure the way the parsed
+ * arguments are stored. Change from bitfield_elements to a pair
+ * the first item being the key/name the second item being a bitfield.
+ * Instead of returning a bit_ref class return a bitfield class.
+ * this may be slightly more difficult then needed, because I need to store
+ * both a const and non const version of a bitfield. But even I don't do
+ * that I would like to change the way the reference class works.
  */
 template < typename T0,
             typename T1 = mpl::void_,
@@ -502,11 +513,6 @@
     }
     //@}
 
- /** Returns a string with the bits from the internal storage within it. */
- //@{
- std::string to_string() const;
- //@}
-
 
     /** Meta-member-function
      * searches within member for a bft_element with name_type the same as Name

Added: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/to_string_testing.cpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/to_string_testing.cpp 2010-06-19 16:46:13 EDT (Sat, 19 Jun 2010)
@@ -0,0 +1,22 @@
+// 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)
+
+
+#include <boost/integer/bitfield_tuple.hpp>
+#include <boost/assert.hpp>
+
+
+using namespace boost;
+struct red;
+struct green;
+struct pink;
+struct blue;
+struct salmon;
+
+
+int main() {
+
+ return 0;
+}


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