Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61907 - sandbox/SOC/2010/bit_masks
From: bbartmanboost_at_[hidden]
Date: 2010-05-11 09:34:20


Author: bbartman
Date: 2010-05-11 09:34:19 EDT (Tue, 11 May 2010)
New Revision: 61907
URL: http://svn.boost.org/trac/boost/changeset/61907

Log:
writing out notes for project so I can organize my ideas in to something to show to my mentors.
Text files modified:
   sandbox/SOC/2010/bit_masks/notes.txt | 10 ++++++++--
   1 files changed, 8 insertions(+), 2 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/notes.txt
==============================================================================
--- sandbox/SOC/2010/bit_masks/notes.txt (original)
+++ sandbox/SOC/2010/bit_masks/notes.txt 2010-05-11 09:34:19 EDT (Tue, 11 May 2010)
@@ -1,5 +1,5 @@
 This is used for keeping track of different ideas about different possible
-interfaces or implementations of bit masks.
+interfaces or implementation of bit masks.
 
 
 
@@ -67,11 +67,14 @@
 
 
 Interface Idea:
-All interface ideas need to be able to work with recursive templates.
+All interface idea's need to be able to work with recursive templates.
 Also note that Andrew says that the beginning of this function is not
 actually going to be a meta function so don't try to make it one.
 
 
+Referencing bits inside a mask is right to left where right starts at 0 and left
+is the last index
+
 Simple interface:
 
 specify width of mask or type which the mask is going to be applied to,
@@ -80,6 +83,9 @@
 E.x. if some one would want to use the bit masks to specify a sub net mask
 this would be ideal for doing that.
 
+// starting at the 8th bit so picking done by index similar to an array.
+bit_mask<int, 7, 24>
+
 
 Integral Constant Specialization:
 


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