Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67499 - in sandbox/SOC/2010/bit_masks: boost/integer boost/integer/detail/packet boost/integer/packet lib/integer/test/bitfield_vector_testing lib/integer/test/packet
From: bbartmanboost_at_[hidden]
Date: 2010-12-30 12:33:47


Author: bbartman
Date: 2010-12-30 12:33:44 EST (Thu, 30 Dec 2010)
New Revision: 67499
URL: http://svn.boost.org/trac/boost/changeset/67499

Log:
working on creating a packet creation and decoding facility
Added:
   sandbox/SOC/2010/bit_masks/boost/integer/detail/packet/
   sandbox/SOC/2010/bit_masks/boost/integer/packet/
   sandbox/SOC/2010/bit_masks/boost/integer/packet.hpp (contents, props changed)
   sandbox/SOC/2010/bit_masks/lib/integer/test/packet/
   sandbox/SOC/2010/bit_masks/lib/integer/test/packet/packet_test.cpp (contents, props changed)
   sandbox/SOC/2010/bit_masks/lib/integer/test/packet/packet_test_utility.hpp (contents, props changed)
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_vector.hpp | 13 ++++++++++++-
   sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_test.cpp | 1 +
   2 files changed, 13 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-12-30 12:33:44 EST (Thu, 30 Dec 2010)
@@ -468,6 +468,7 @@
 //@}
 
 /// TODO: Fix reverse iterator!!!!!!!
+/// TODO: Add exception safty to operations which cause allocation.
 template < typename T,
             std::size_t Width,
             typename Allocator = std::allocator<unsigned char>
@@ -795,7 +796,17 @@
         }
     }
 
- iterator insert(iterator position, value_type const& x);
+ iterator insert(iterator position, value_type const& x) {
+ /*
+ if(position == end()) {
+ push_back(x);
+ }
+ temp
+ value_type temp_value = *position;
+ while(
+ */
+ }
+
     void insert(iterator position, size_type n, value_type const& x);
 
     template <class InputIterator>

Added: sandbox/SOC/2010/bit_masks/boost/integer/packet.hpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/bit_masks/boost/integer/packet.hpp 2010-12-30 12:33:44 EST (Thu, 30 Dec 2010)
@@ -0,0 +1,14 @@
+// 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_INTEGER_BITFIELD_PACKET_HPP
+#define BOOST_INTEGER_BITFIELD_PACKET_HPP
+
+namespace boost {
+
+
+} // end boost
+
+#endif

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/bitfield_vector_test.cpp 2010-12-30 12:33:44 EST (Thu, 30 Dec 2010)
@@ -7,6 +7,7 @@
 #include <boost/integer/bitfield_vector.hpp>
 #include "test_utility.hpp"
 #include <vector>
+
 using namespace boost;
 
 /** This is done so that I can inherit from bitfield_vector and have access

Added: sandbox/SOC/2010/bit_masks/lib/integer/test/packet/packet_test.cpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/packet/packet_test.cpp 2010-12-30 12:33:44 EST (Thu, 30 Dec 2010)
@@ -0,0 +1,9 @@
+// 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/integet/packet.hpp>
+
+
+

Added: sandbox/SOC/2010/bit_masks/lib/integer/test/packet/packet_test_utility.hpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/packet/packet_test_utility.hpp 2010-12-30 12:33:44 EST (Thu, 30 Dec 2010)
@@ -0,0 +1,24 @@
+// 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_INTEGER_PACKET_TEST_UTILITY_HPP
+#define BOOST_INTEGER_PACKET_TEST_UTILITY_HPP
+
+#include <boost/detail/lightweight_test.hpp>
+#include <iostream>
+#include <iomanip>
+#include <string>
+#include <typeinfo>
+#include <cstring>
+#include <bitset>
+#include <boost/integer/bit_width.hpp>
+#include <sstream>
+#include <boost/type_traits/is_same.hpp>
+
+#if defined(__GNUC__)
+#include <cxxabi.h>
+#endif
+
+#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