ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/antlr/CharBuffer.hpp
Revision: 1969
Committed: Wed Feb 26 14:14:50 2014 UTC (11 years, 2 months ago) by gezelter
File size: 1391 byte(s)
Log Message:
Fixes to deal with deprecation of MPI C++ bindings.  We've reverted back to the
C calls.

File Contents

# User Rev Content
1 tim 770 #ifndef INC_CharBuffer_hpp__
2     #define INC_CharBuffer_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 gezelter 1442 * $Id$
9 tim 770 */
10    
11 gezelter 1558 #include <antlr/config.hpp>
12    
13 tim 770 #include <istream>
14    
15     #include <antlr/InputBuffer.hpp>
16    
17     #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
18     namespace antlr {
19     #endif
20    
21     /**A Stream of characters fed to the lexer from a InputStream that can
22     * be rewound via mark()/rewind() methods.
23     * <p>
24     * A dynamic array is used to buffer up all the input characters. Normally,
25     * "k" characters are stored in the buffer. More characters may be stored
26     * during guess mode (testing syntactic predicate), or when LT(i>k) is
27     * referenced.
28     * Consumption of characters is deferred. In other words, reading the next
29     * character is not done by consume(), but deferred until needed by LA or LT.
30     * <p>
31     *
32     * @see antlr.CharQueue
33     */
34    
35     class ANTLR_API CharBuffer : public InputBuffer {
36     public:
37     /// Create a character buffer
38     CharBuffer( ANTLR_USE_NAMESPACE(std)istream& input );
39     /// Get the next character from the stream
40     int getChar();
41    
42     protected:
43 gezelter 1969
44     private:
45 tim 770 // character source
46     ANTLR_USE_NAMESPACE(std)istream& input;
47    
48     // NOTE: Unimplemented
49     CharBuffer(const CharBuffer& other);
50     CharBuffer& operator=(const CharBuffer& other);
51     };
52    
53     #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
54     }
55     #endif
56    
57     #endif //INC_CharBuffer_hpp__

Properties

Name Value
svn:keywords Author Id Revision Date