KDevelop API Documentation

lib/antlr/antlr/BitSet.hpp

Go to the documentation of this file.
00001 #ifndef INC_BitSet_hpp__ 00002 #define INC_BitSet_hpp__ 00003 00004 /* ANTLR Translator Generator 00005 * Project led by Terence Parr at http://www.jGuru.com 00006 * Software rights: http://www.antlr.org/RIGHTS.html 00007 * 00008 * $Id: BitSet.hpp,v 1.2 2003/05/02 00:36:19 okellogg Exp $ 00009 */ 00010 00011 #include <antlr/config.hpp> 00012 #include <vector> 00013 #include <stdexcept> 00014 00015 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00016 namespace antlr { 00017 #endif 00018 00019 #if defined(_MSC_VER) && !defined(__ICL) // Microsoft Visual C++ 00020 extern template class ANTLR_API ANTLR_USE_NAMESPACE(std)vector<unsigned int>; 00021 extern template class ANTLR_API ANTLR_USE_NAMESPACE(std)vector<bool>; 00022 #endif 00023 00045 class ANTLR_API BitSet { 00046 private: 00047 ANTLR_USE_NAMESPACE(std)vector<bool> storage; 00048 00049 public: 00050 BitSet( unsigned int nbits=64 ); 00051 BitSet( const unsigned long* bits_, unsigned int nlongs); 00052 ~BitSet(); 00053 00054 void add( unsigned int el ); 00055 00056 bool member( unsigned int el ) const; 00057 00058 ANTLR_USE_NAMESPACE(std)vector<unsigned int> toArray() const; 00059 }; 00060 00061 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00062 } 00063 #endif 00064 00065 #endif //INC_BitSet_hpp__
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:06 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003