Set.hh (8650:33a48f15e94a) | Set.hh (10348:c91b23c72d5e) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 73 unchanged lines hidden (view full) --- 82 void 83 add(NodeID index) 84 { 85 m_p_nArray[index >> INDEX_SHIFT] |= 86 (((unsigned long) 1) << (index & INDEX_MASK)); 87 } 88 89 void addSet(const Set& set); | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 73 unchanged lines hidden (view full) --- 82 void 83 add(NodeID index) 84 { 85 m_p_nArray[index >> INDEX_SHIFT] |= 86 (((unsigned long) 1) << (index & INDEX_MASK)); 87 } 88 89 void addSet(const Set& set); |
90 void addRandom(); | |
91 92 void 93 remove(NodeID index) 94 { 95 m_p_nArray[index >> INDEX_SHIFT] &= 96 ~(((unsigned long)1) << (index & INDEX_MASK)); 97 } 98 --- 69 unchanged lines hidden --- | 90 91 void 92 remove(NodeID index) 93 { 94 m_p_nArray[index >> INDEX_SHIFT] &= 95 ~(((unsigned long)1) << (index & INDEX_MASK)); 96 } 97 --- 69 unchanged lines hidden --- |