bitfield.hh (4274:638f735c9bc7) | bitfield.hh (4275:8a37341c7507) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 143 unchanged lines hidden (view full) --- 152 protected: 153 Data __data; 154 155 //This function returns a range of bits from the underlying storage. 156 //It relies on the "bits" function above. It's the user's 157 //responsibility to make sure that there is a properly overloaded 158 //version of this function for whatever type they want to overlay. 159 inline uint64_t | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 143 unchanged lines hidden (view full) --- 152 protected: 153 Data __data; 154 155 //This function returns a range of bits from the underlying storage. 156 //It relies on the "bits" function above. It's the user's 157 //responsibility to make sure that there is a properly overloaded 158 //version of this function for whatever type they want to overlay. 159 inline uint64_t |
160 getBits(int first, int last) | 160 getBits(int first, int last) const |
161 { 162 return bits(__data, first, last); 163 } 164 165 //Similar to the above, but for settings bits with replaceBits. 166 inline void 167 setBits(int first, int last, uint64_t val) 168 { --- 234 unchanged lines hidden --- | 161 { 162 return bits(__data, first, last); 163 } 164 165 //Similar to the above, but for settings bits with replaceBits. 166 inline void 167 setBits(int first, int last, uint64_t val) 168 { --- 234 unchanged lines hidden --- |