summaryrefslogtreecommitdiffstats
path: root/lib/antlr/antlr/BitSet.hpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-17 20:50:19 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-17 23:50:37 +0900
commit3e3d9eda9d1dd8c67c1c27c6a9bdc68bdecfcc30 (patch)
tree6af0b8ba2786060423ba143e894bf9529d351f8d /lib/antlr/antlr/BitSet.hpp
parentf08b30edb9f422128083050320681b6bacd06d1d (diff)
downloadtdevelop-3e3d9eda9d1dd8c67c1c27c6a9bdc68bdecfcc30.tar.gz
tdevelop-3e3d9eda9d1dd8c67c1c27c6a9bdc68bdecfcc30.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/antlr/antlr/BitSet.hpp')
-rw-r--r--lib/antlr/antlr/BitSet.hpp60
1 files changed, 0 insertions, 60 deletions
diff --git a/lib/antlr/antlr/BitSet.hpp b/lib/antlr/antlr/BitSet.hpp
deleted file mode 100644
index f7619232..00000000
--- a/lib/antlr/antlr/BitSet.hpp
+++ /dev/null
@@ -1,60 +0,0 @@
-#ifndef INC_BitSet_hpp__
-#define INC_BitSet_hpp__
-
-/* ANTLR Translator Generator
- * Project led by Terence Parr at http://www.jGuru.com
- * Software rights: http://www.antlr.org/license.html
- *
- * $Id$
- */
-
-#include <antlr/config.hpp>
-#include <vector>
-#include <stdexcept>
-
-#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
-namespace antlr {
-#endif
-
-/** A BitSet to replace java.util.BitSet.
- * Primary differences are that most set operators return new sets
- * as opposed to oring and anding "in place". Further, a number of
- * operations were added. I cannot contain a BitSet because there
- * is no way to access the internal bits (which I need for speed)
- * and, because it is final, I cannot subclass to add functionality.
- * Consider defining set degree. Without access to the bits, I must
- * call a method n times to test the ith bit...ack!
- *
- * Also seems like or() from util is wrong when size of incoming set is bigger
- * than this.length.
- *
- * This is a C++ version of the Java class described above, with only
- * a handful of the methods implemented, because we don't need the
- * others at runtime. It's really just a wrapper around vector<bool>,
- * which should probably be changed to a wrapper around bitset, once
- * bitset is more widely available.
- *
- * @author Terence Parr, MageLang Institute
- * @author <br><a href="mailto:pete@yamuna.demon.co.uk">Pete Wells</a>
- */
-class ANTLR_API BitSet {
-private:
- ANTLR_USE_NAMESPACE(std)vector<bool> storage;
-
-public:
- BitSet( unsigned int nbits=64 );
- BitSet( const unsigned long* bits_, unsigned int nlongs);
- ~BitSet();
-
- void add( unsigned int el );
-
- bool member( unsigned int el ) const;
-
- ANTLR_USE_NAMESPACE(std)vector<unsigned int> toArray() const;
-};
-
-#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
-}
-#endif
-
-#endif //INC_BitSet_hpp__