OpenMD
3.1
Molecular Dynamics in the Open
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
b
c
d
e
f
g
h
i
l
m
n
o
r
s
t
u
v
Functions
c
d
e
f
g
i
l
m
n
o
r
t
u
v
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Related Symbols
Files
File List
File Members
All
c
g
Functions
c
Variables
c
g
Macros
c
▼
OpenMD
Todo List
Deprecated List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
antlr
ANTLRException.hpp
ANTLRUtil.cpp
ANTLRUtil.hpp
AST.hpp
ASTArray.hpp
ASTFactory.cpp
ASTFactory.hpp
ASTNULLType.cpp
ASTNULLType.hpp
ASTPair.hpp
ASTRefCount.cpp
ASTRefCount.hpp
BaseAST.cpp
BaseAST.hpp
BitSet.cpp
BitSet.hpp
CharBuffer.cpp
CharBuffer.hpp
CharInputBuffer.hpp
CharScanner.cpp
CharScanner.hpp
CharStreamException.hpp
CharStreamIOException.hpp
CircularQueue.hpp
CommonAST.cpp
CommonAST.hpp
CommonASTWithHiddenTokens.cpp
CommonASTWithHiddenTokens.hpp
CommonHiddenStreamToken.cpp
CommonHiddenStreamToken.hpp
CommonToken.cpp
CommonToken.hpp
config.hpp
InputBuffer.cpp
InputBuffer.hpp
IOException.hpp
LexerSharedInputState.hpp
LLkParser.cpp
LLkParser.hpp
MismatchedCharException.cpp
MismatchedCharException.hpp
MismatchedTokenException.cpp
MismatchedTokenException.hpp
NoViableAltException.cpp
NoViableAltException.hpp
NoViableAltForCharException.cpp
NoViableAltForCharException.hpp
Parser.cpp
Parser.hpp
ParserSharedInputState.hpp
RecognitionException.cpp
RecognitionException.hpp
RefCount.hpp
SemanticException.hpp
String.cpp
String.hpp
Token.cpp
Token.hpp
TokenBuffer.cpp
TokenBuffer.hpp
TokenRefCount.cpp
TokenRefCount.hpp
TokenStream.hpp
TokenStreamBasicFilter.cpp
TokenStreamBasicFilter.hpp
TokenStreamException.hpp
TokenStreamHiddenTokenFilter.cpp
TokenStreamHiddenTokenFilter.hpp
TokenStreamIOException.hpp
TokenStreamRecognitionException.hpp
TokenStreamRetryException.hpp
TokenStreamRewriteEngine.cpp
TokenStreamRewriteEngine.hpp
TokenStreamSelector.cpp
TokenStreamSelector.hpp
TokenWithIndex.hpp
TreeParser.cpp
TreeParser.hpp
TreeParserSharedInputState.hpp
►
applications
►
brains
►
clusters
►
constraints
►
flucq
►
forcefields
►
hydrodynamics
►
integrators
►
io
►
lattice
►
math
►
mdParser
►
nonbonded
►
optimization
►
parallel
►
perturbations
►
primitives
►
restraints
►
rnemd
►
selection
►
types
►
utils
►
visitors
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
BitSet.hpp
1
#ifndef INC_BitSet_hpp__
2
#define INC_BitSet_hpp__
3
4
/* ANTLR Translator Generator
5
* Project led by Terence Parr at http://www.jGuru.com
6
* Software rights: http://www.antlr.org/license.html
7
*
8
* $Id$
9
*/
10
11
#include <antlr/config.hpp>
12
#include <vector>
13
#include <stdexcept>
14
15
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
16
namespace
antlr {
17
#endif
18
19
/** A BitSet to replace java.util.BitSet.
20
* Primary differences are that most set operators return new sets
21
* as opposed to oring and anding "in place". Further, a number of
22
* operations were added. I cannot contain a BitSet because there
23
* is no way to access the internal bits (which I need for speed)
24
* and, because it is final, I cannot subclass to add functionality.
25
* Consider defining set degree. Without access to the bits, I must
26
* call a method n times to test the ith bit...ack!
27
*
28
* Also seems like or() from util is wrong when size of incoming set is bigger
29
* than this.length.
30
*
31
* This is a C++ version of the Java class described above, with only
32
* a handful of the methods implemented, because we don't need the
33
* others at runtime. It's really just a wrapper around vector<bool>,
34
* which should probably be changed to a wrapper around bitset, once
35
* bitset is more widely available.
36
*
37
* @author Terence Parr, MageLang Institute
38
* @author <br><a href="mailto:pete@yamuna.demon.co.uk">Pete Wells</a>
39
*/
40
class
ANTLR_API
BitSet
{
41
private
:
42
ANTLR_USE_NAMESPACE(std)vector<bool> storage;
43
44
public
:
45
BitSet
(
unsigned
int
nbits=64 );
46
BitSet
(
const
unsigned
long
* bits_,
unsigned
int
nlongs);
47
~BitSet
();
48
49
void
add(
unsigned
int
el );
50
51
bool
member(
unsigned
int
el )
const
;
52
53
ANTLR_USE_NAMESPACE(std)vector<unsigned int> toArray()
const
;
54
};
40
class
ANTLR_API
BitSet
{
…
};
55
56
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
57
}
58
#endif
59
60
#endif
//INC_BitSet_hpp__
antlr::BitSet
A BitSet to replace java.util.BitSet.
Definition
BitSet.hpp:40
antlr
BitSet.hpp
Generated on Wed Jun 26 2024 13:56:38 for OpenMD by
1.11.0